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

[Workspace] Update workspace list page table #7640

Merged
merged 18 commits into from
Aug 20, 2024

Conversation

Qxisylolo
Copy link
Contributor

@Qxisylolo Qxisylolo commented Aug 7, 2024

Description

In this pr, I refractor the workList table by adding 2 new fields, integrating 3 actions[delete, copyId, edit] , utilizing the Use Case selector, creating an empty state and enabling multiple deletion.

New update:
save a new field Use Case which is extracted from field features.
Add multiple deletion

Screenshot

Screenshot 2024-08-16 at 09 33 19

When hovering over the description, you will see the tool tip.
Screenshot 2024-08-16 at 09 33 54

Perform filtering by Use case
Screenshot 2024-08-16 at 09 34 19
Screenshot 2024-08-16 at 09 34 40

Integrating 3 actions
Screenshot 2024-08-09 at 09 43 17

Performing search
Screenshot 2024-08-16 at 09 35 03

Empty state
Screenshot 2024-08-08 at 09 45 12

Enable multiple deletion
Screenshot 2024-08-08 at 21 39 35

Screenshot 2024-08-08 at 21 39 41

Changelog

  • feat: [Workspace] Update workspace list page table

Check List

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

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
…s table

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
…s table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
…s table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
… add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 67.10526% with 25 lines in your changes missing coverage. Please review.

Project coverage is 63.76%. Comparing base (36af5e7) to head (94703a0).
Report is 15 commits behind head on main.

Files Patch % Lines
...rkspace/public/components/workspace_list/index.tsx 64.91% 16 Missing and 4 partials ⚠️
.../delete_workspace_modal/delete_workspace_modal.tsx 73.68% 0 Missing and 5 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7640   +/-   ##
=======================================
  Coverage   63.75%   63.76%           
=======================================
  Files        3639     3639           
  Lines       80461    80491   +30     
  Branches    12800    12804    +4     
=======================================
+ Hits        51297    51323   +26     
  Misses      26028    26028           
- Partials     3136     3140    +4     
Flag Coverage Δ
Linux_1 29.85% <67.10%> (+<0.01%) ⬆️
Linux_2 55.82% <ø> (ø)
Linux_3 40.39% <ø> (ø)
Linux_4 31.30% <ø> (ø)
Windows_1 29.88% <67.10%> (+0.02%) ⬆️
Windows_2 55.77% <ø> (ø)
Windows_3 40.39% <ø> (ø)
Windows_4 31.30% <ø> (ø)

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.

…, add tests, and refine based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
…, add tests, and update based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
…, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
…, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
return workspaceList.map(
(workspace): WorkspaceAttributeWithUseCaseID => ({
...workspace,
useCase: [...(workspace.features || [])],
Copy link
Member

Choose a reason for hiding this comment

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

We can make it a string instead of array, then you don't need to call getFirstUseCaseOfFeatureConfigs many times

Suggested change
useCase: [...(workspace.features || [])],
useCase: getFirstUseCaseOfFeatureConfigs(workspace.features || []) ?? ''

Copy link
Member

Choose a reason for hiding this comment

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

Seems there is bug when it's an array, see my screenshot
image

Copy link
Contributor Author

@Qxisylolo Qxisylolo Aug 9, 2024

Choose a reason for hiding this comment

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

Thank you for all your comments. I have updated the array to a string and addressed the other issues mentioned. Could you please help me review the changes and let me know if the bug still persists? Thank you!

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
@SuZhou-Joe SuZhou-Joe merged commit e70bfad into opensearch-project:main Aug 20, 2024
69 of 70 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 20, 2024
* the table basically works

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* the table basically works new

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the workLists table, and add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Changeset file for PR #7640 created/updated

* Changeset file for PR #7640 created/updated

* Changeset file for PR #7640 created/updated

* Achieve the functionality and apprearence of the work List table page, add tests, and refine based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Enable multiple deletion and correct the code based on comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Enable multiple deletion and correct the code based on comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* set the advanced date format

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* set advanced time format and tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

---------

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit e70bfad)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Qxisylolo added a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Aug 20, 2024
* the table basically works

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* the table basically works new

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the workLists table, and add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Changeset file for PR opensearch-project#7640 created/updated

* Changeset file for PR opensearch-project#7640 created/updated

* Changeset file for PR opensearch-project#7640 created/updated

* Achieve the functionality and apprearence of the work List table page, add tests, and refine based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Enable multiple deletion and correct the code based on comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Enable multiple deletion and correct the code based on comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* set the advanced date format

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* set advanced time format and tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

---------

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Aug 26, 2024
* the table basically works

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* the table basically works new

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* This time I achieve the functionality and apprearence of the workLists table, add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the workLists table, and add tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Changeset file for PR #7640 created/updated

* Changeset file for PR #7640 created/updated

* Changeset file for PR #7640 created/updated

* Achieve the functionality and apprearence of the work List table page, add tests, and refine based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Enable multiple deletion and correct the code based on comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* Enable multiple deletion and correct the code based on comments

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* set the advanced date format

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

* set advanced time format and tests

Signed-off-by: Qxisylolo <qianxisy@amazon.com>

---------

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit e70bfad)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ruanyl pushed a commit that referenced this pull request Aug 26, 2024
* the table basically works



* the table basically works new



* This time I achieve the functionality and apprearence of the workLists table



* This time I achieve the functionality and apprearence of the workLists table, add tests



* This time I achieve the functionality and apprearence of the workLists table, add tests



* Achieve the functionality and apprearence of the workLists table, and add tests



* Changeset file for PR #7640 created/updated

* Changeset file for PR #7640 created/updated

* Changeset file for PR #7640 created/updated

* Achieve the functionality and apprearence of the work List table page, add tests, and refine based the comments



* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comments



* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1



* Achieve the functionality and apprearence of the work List table page, add tests, and update based the comment-1



* Enable multiple deletion and correct the code based on comments



* Enable multiple deletion and correct the code based on comments



* set the advanced date format



* set advanced time format and tests



---------



(cherry picked from commit e70bfad)

Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
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.

6 participants