Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(settings): set unmountOnExit behaviour for setting groups #1004

Merged
merged 1 commit into from
May 2, 2023

Conversation

tthvo
Copy link
Member

@tthvo tthvo commented May 1, 2023

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed the last commit: git commit --amend --signoff

Related to #793

Description of the change:

Unmount setting tab content that is not selected. This helps avoid situation where AA configurations cause the Auth modal to appear when first visiting /settings (users might wonder why this opens as they don't see the AA config). This also allows faster load as React only needs to build 1 tab content at a time.

Extend the min height for local target select to show more targets (currently it looks like, without scrolling, there is a single target).

Motivation for the change:

AA configurations causes the setting page to show Auth modal even if the AA configuration is not visible (i.e. Dashboard tab not selected).

@tthvo tthvo added chore Refactor, rename, cleanup, etc. fix backport labels May 1, 2023
@tthvo tthvo requested review from andrewazores and maxcao13 May 1, 2023 23:55
@mergify mergify bot added the safe-to-test label May 1, 2023
@github-actions
Copy link

github-actions bot commented May 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1004-8765cb776fc89a786742326404c1330a8bee8a1d sh smoketest.sh

maxcao13
maxcao13 previously approved these changes May 2, 2023
@andrewazores
Copy link
Member

In both Firefox and Chrome this change seems to just break the Settings view for me:

image

Every tab selection is just empty. The DOM elements are there, but they have css display: none:

image

If I use the inspector to remove that css property then it's fine.

image

@tthvo
Copy link
Member Author

tthvo commented May 2, 2023

Ohh thanks that should not be there. Interesting that it was working for me with that css in place (maybe I was messing around with browser inspector at the time).

@tthvo tthvo force-pushed the settings branch 2 times, most recently from d5ca360 to b1b4fd4 Compare May 2, 2023 15:12
@github-actions
Copy link

github-actions bot commented May 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1004-d5ca36093678036889a4ed02d9b3f3eb9963af0c sh smoketest.sh

@andrewazores
Copy link
Member

CI checks seem to be stuck due to a GH infra problem earlier in the day. I can't cancel the queued jobs nor restart them. Seems like the best thing is to wait for another PR like #1008 to go in first, then rebase this and allow that to trigger the CI to run again.

@github-actions
Copy link

github-actions bot commented May 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1004-5a59fbe1751b4b695abaa14350a531dd1fa943f9 sh smoketest.sh

@github-actions
Copy link

github-actions bot commented May 2, 2023

Test image available:

CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat-web:pr-1004-42a726451b57d96db8cb9804834ba688f6ec78fa sh smoketest.sh

@andrewazores andrewazores merged commit ed1f37c into cryostatio:main May 2, 2023
mergify bot pushed a commit that referenced this pull request May 2, 2023
andrewazores pushed a commit that referenced this pull request May 2, 2023
…#1011)

(cherry picked from commit ed1f37c)

Co-authored-by: Thuan Vo <thvo@redhat.com>
@tthvo tthvo deleted the settings branch May 3, 2023 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport chore Refactor, rename, cleanup, etc. fix safe-to-test
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants