-
Notifications
You must be signed in to change notification settings - Fork 167
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
Conditionally render modals #3308
Merged
openshift-merge-bot
merged 1 commit into
opendatahub-io:main
from
jeff-phillips-18:conditionally-render-modals
Oct 10, 2024
Merged
Conditionally render modals #3308
openshift-merge-bot
merged 1 commit into
opendatahub-io:main
from
jeff-phillips-18:conditionally-render-modals
Oct 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jeff-phillips-18
force-pushed
the
conditionally-render-modals
branch
from
October 9, 2024 20:38
656ce88
to
e177116
Compare
jeff-phillips-18
changed the title
[WIP] Conditionally render modals
Conditionally render modals
Oct 9, 2024
openshift-ci
bot
removed
the
do-not-merge/work-in-progress
This PR is in WIP state
label
Oct 9, 2024
jeff-phillips-18
force-pushed
the
conditionally-render-modals
branch
from
October 10, 2024 17:11
e177116
to
dcf71cc
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes RHOAIENG-12117
Description
Adds an eslint rule to not allow rendering modals that are not visible. Updates remaining modal usages to only render modals that are open.
How Has This Been Tested?
Run thru the UI and check that then modals are shown only when they should be shown.
In the UI, add
?devFeatureFlags
to the URLoverridden
linkFeature flags
modal is shownFrom the
Model Registry
pageEdit
labelsAdd label
labelAdd label
modal is shownFrom the Setting ->
Accelerator profiles
pageEnable
switch for an enabled profileDisable accelerator profile
modal is shownFrom the Setting ->
Accelerator profiles
pageEdit
Edit accelerator profile
page, click theAdd toleration
buttonAdd toleration
modal is shownEdit
Edit toleration
modal is shownFrom the Settings ->
Notebook images
pageImport new image
Import notebook image
modal is shownFrom the Settings ->
Notebook images
pageEdit
Update notebook image
modal is shownFrom the Settings ->
Connection types
pageCreate connection type
Create connection type
page, selectAdd section heading
Add section heading
modal is shownFrom the Settings ->
Connection types
pageCreate connection type
Create connection type
page, selectAdd field
Add field
modal is shownWith a notebook server running, go to the
Data Science Projects
pageLaunch standalone notebook server
Stop notebook server
Stop server
modal is shownFrom the Settings ->
Storage classes
pageEdit
Edit storage class details
modal is shown.From the
Model Serving
pageEdit
Edit model
modal is shownOn a cluster with no model registries (shared Model Serving cluster), from the
Model registry settings
pageCreate model registry
buttonCreate model registry
modal is shownOn a cluster with model registries (shared Model Registry cluster), from the
Model registry settings
pageView database configuration
View database configuration
modal is shownOn a cluster with model registries (shared Model Registry cluster), from the
Model registry settings
pageDelete model registry
Delete model registry?
modal is shownOn a cluster with model registries (shared Model Registry cluster), from the
Model registry settings
pageCreate model registry
buttonCreate model registry
modal is shownFor a project with model serving type not selected, navigate to the project details page and chose the
Models
tabDeploy model
from theSingle-model serving platform
cardDeploy model
modal is shownFor a project with model serving type not selected, navigate to the project details page and chose the
Models
tabAdd model server
from theMulti-model serving platform
cardAdd model server
modal is shownTest Impact
Current tests already test these modals.
Request review criteria:
Self checklist (all need to be checked):