-
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
Model Registry: Initial content of model details tab with stub editable fields and tab navigation handling #2760
Model Registry: Initial content of model details tab with stub editable fields and tab navigation handling #2760
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so far it's working great, this is going really great 👌
29a10b7
to
45bd9c5
Compare
…b navigation handling Signed-off-by: Mike Turley <[email protected]>
45bd9c5
to
ea23ed0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
const [unsavedLabels, setUnsavedLabels] = React.useState(labels); | ||
const [isSavingEdits, setIsSavingEdits] = React.useState(false); | ||
|
||
const editUnsavedLabel = (newText: string, index: number) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel that if this is gonna be reused in the details view we can move it into a utils right?
Not needed right now, can be refactor on @dpanshug pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolving conversation it can be done in another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole EditableLabelsDescriptionListGroup
is already ready to be reused anywhere in the UI, will just drop it in for version details
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lucferbux 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 |
Ok, so far it's going great! This might unblock the rest of the work! |
Part of RHOAIENG-2235
Description
Implements most of the "Details" tab of the registered model page. Note that the "Properties" section is not functional and will be implemented in a followup PR. Also note that while the Description and Labels sections have editable functionality implemented, the actual last step of persisting the edits to the API is a stub promise that simply waits 2 seconds in order to show the "saving" state (edits are not allowed while saving). Implementing the real API patch requests will be in a separate PR.
Model details tab:
Description field in edit mode:
Description field disabled while saving (currently a stub 2-second-delay promise):
Labels in edit mode:
Editing an existing label:
Add label modal:
Label editing disabled while saving (currently a stub 2-second-delay promise):
How Has This Been Tested?
Model Registry
tabRegistered Models
table and then click theDetails
tab, or click the kebab menu at the right of a registered model and clickView details
/details
and/versions
subpathsTest Impact
Will be added shortly.
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main