Skip to content
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

update workspace list #259

Merged
merged 8 commits into from
Mar 5, 2024
Merged

Conversation

raintygao
Copy link
Collaborator

Description

update workspace list

Issues Resolved

Screenshot

Testing the changes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 24 lines in your changes are missing coverage. Please review.

Project coverage is 66.73%. Comparing base (4eb3548) to head (ec9b97f).
Report is 7 commits behind head on workspace.

❗ Current head ec9b97f differs from pull request most recent head b83d28e. Consider uploading reports for the commit b83d28e to get more accurate results

Files Patch % Lines
.../delete_workspace_modal/delete_workspace_modal.tsx 0.00% 18 Missing ⚠️
...rkspace/public/components/workspace_list/index.tsx 33.33% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           workspace     #259       +/-   ##
==============================================
+ Coverage      55.60%   66.73%   +11.12%     
==============================================
  Files           2260     3341     +1081     
  Lines          42470    64888    +22418     
  Branches        7539    10473     +2934     
==============================================
+ Hits           23616    43300    +19684     
- Misses         17394    18997     +1603     
- Partials        1460     2591     +1131     
Flag Coverage Δ
Linux_1 31.42% <15.15%> (?)
Linux_2 55.24% <100.00%> (+0.06%) ⬆️
Linux_3 41.73% <16.66%> (?)
Linux_4 34.87% <16.66%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@raintygao raintygao marked this pull request as ready for review March 4, 2024 02:47
@raintygao raintygao requested a review from SuZhou-Joe as a code owner March 4, 2024 02:47
onClose: () => void;
onConfirm: () => void;
selectedWorkspace?: WorkspaceAttribute | null;
ifNavigate: boolean;
Copy link
Collaborator

@Hailong-am Hailong-am Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does ifNavigate used for? Only workspace list page have delete functionality, maybe we can remove this property as don't need to do direct after deleting.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workspace creator page will also use delete workspace model. And it will navigate after deleting in workspace creator page.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about renaming to shouldNavigate? ifNavigate seems not a good naming.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe returnToHome to make it clear where will it redirect to?

onClose: () => void;
onConfirm: () => void;
selectedWorkspace?: WorkspaceAttribute | null;
ifNavigate: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about renaming to shouldNavigate? ifNavigate seems not a good naming.

search={search}
/>
</EuiPageContent>
</EuiPageBody>
{delectedWorkspace && (
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

return (
<EuiPage paddingSize="none">
<EuiPageBody panelled>
<EuiPageHeader
restrictWidth
pageTitle="Workspaces"
description={WORKSPACE_LIST_PAGE_DESCRIPTIOIN}
style={{ paddingBottom: 0, borderBottom: 0 }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we control the style with paddingSize and bottomBorder props of EuiPageHeader?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to use bottomBorder before but it doesn't work.

@raintygao raintygao merged commit 0923437 into ruanyl:workspace Mar 5, 2024
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants