-
Notifications
You must be signed in to change notification settings - Fork 46
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
[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 |
…tate kubeflow#259 Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
…tate kubeflow#259 Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
…tate kubeflow#259 Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
e4f41e5
to
da2506e
Compare
…tate kubeflow#259 Signed-off-by: Liav Weiss (EXT-Nokia) <liav.weiss.ext@nokia.com>
Hey @jenny-s51 and @paulovmr, I made the suggested changes. |
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.
Thank you @liavweiss ! New extracted component looks good.
We will have to apply your extracted component in the Workspace Creation Wizard steps as well - the components would be:
- WorkspaceCreationKindList.tsx
- WorkspaceCreationImageList.tsx
- WorkspaceCreationPodConfigList.tsx
It's fine to do that in a separate PR if this is out of scope here, would you mind opening a follow-up issue to address those remaining instances above? Thank you!
))} | ||
{sortedWorkspaces.length === 0 && ( | ||
<Tr> | ||
<Td colSpan={11} id="empty-state-cell"> |
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-cell"> | |
<Td colSpan={12} id="empty-state-cell"> |
fix #259
