-
Notifications
You must be signed in to change notification settings - Fork 43
feat(ws): Add Empty State to Workspace list #268
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
base: notebooks-v2
Are you sure you want to change the base?
Conversation
…tate kubeflow#259 Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
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.
Hi @liavweiss , thanks for the PR. Please consider extracting the empty state from the WorkspaceKinds.tsx
file as a reusable component and use it here, also including the CLEAR ALL FILTERS
button.
))} | ||
{sortedWorkspaces.length === 0 && ( | ||
<Tr> | ||
<Td colSpan={11} id="empty-state"> |
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.
<Td colSpan={11} id="empty-state"> | |
<Td colSpan={12} id="empty-state"> |
The table has 12 columns including the columnNames
and the two actions columns.
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.
Thanks for implementing the empty state in the workspace table @liavweiss! Great work.
A couple of suggestions for improvement:
-
I agree with @paulovmr - we should extract the empty state component into a dedicated reusable component to ensure consistency when we need similar empty states elsewhere.
-
Can we also include a "Clear all filters" button in the empty state so the users can easily click the action button to recover from the empty state? https://www.patternfly.org/components/empty-state/#no-match-found is a good example of this in action.
/retitle feat(ws): Add Empty State to Workspace list |
fix #259
