-
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
visually represent InferenceService resources marked for deletion #2054
visually represent InferenceService resources marked for deletion #2054
Conversation
@vconzola Please have a look at this visual representation of a resource marked for deletion and make any other suggestions. What I've done is simply changed the opacity of the row to |
The half opacity is pretty cool, I think if this design is approved, we might also apply this style to |
@christianvogt @DaoDaoNoCode Since this change might be broader in scope than just inference services, I'd like @kywalker-rh to weigh in on if this is an acceptable pattern to use. Or there might be something else already being done in OpenShift or other products with similar use cases. |
This is half of what OpenShift Console already does... when you delete say a project, it has a lot to clean up. It doesn't really do a lot to reveal that. Projects luckily have a status so it's in "terminating" -- but the visual state of the row is the same. The kebeb hover shows the tooltip Christian used. I like the fading aspect because it really shows it's on the way out more than resources in OpenShift console (especially ones who don't have a status field like Projects). Look forward to seeing what @kywalker-rh has to say. |
/hold for UX review as this is proposing an new pattern |
I really like this! It would be super-cool if we could animate the fade to 50%, and then fade it out when its fully deleted too, but understand if that's too resource intensive. Taking the tooltip from OpenShift makes sense too. I'll do a quick check with others in Patternfly, just to see if there is already another pattern in use, but I am a proponent of this. |
@kywalker-rh OpenShift console shows the tooltip text |
f6b7b96
to
51a6415
Compare
.odh-resource-tr--deleting { | ||
opacity: 0.5; | ||
transition: var(--pf-global-Transition); | ||
transition-property: opacity; | ||
} |
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.
@kywalker-rh just for you I've added a transition on the opacity. This uses PFs default of 250ms transition with timing function ease-in-out. When the resource is first marked for deletion, the row will transition to 50% opacity. However once the resource is gone, the row will be removed immediately with no transition.
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'll take it... thanks for adding it!
I haven't received any feedback from Patternfly, so let's go with this as implemented. Thanks @christianvogt! |
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
I've added some thoughts about the custom component, but for the scope of this PR this is perfect
resource: K8sResourceCommon; | ||
}; | ||
|
||
const ResourceActionsColumn: React.FC<Props> = ({ resource, ...props }) => |
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 think we should have a storybook component with our own table and this components, not only targeting this to kserve only (not saying this for this PR, i was thinking that if we want this implementation in other pages, I think storybook could be great for our custom components)
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
06266ca
into
opendatahub-io:f/model-serving
Closes: #2052
Description
When we delete an
InferenceService
it may take some time for the finalizers to complete the deletion. At deletion time, the resource will be marked with adeletionTimestamp
. We can visually represent the deletion state in the UI when this timestamp is present.Row items that are marked for deletion take on a 50% opacity and kebab menu is replaced with a
Ban
icon along with a tooltip. The components are made generically and can apply to other tables in the application at a later date.Project details view:
Global model serving:
How Has This Been Tested?
Test Impact
Added integration test.
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main
cc @vconzola