-
Notifications
You must be signed in to change notification settings - Fork 968
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
[Workspace] Update workspace list page table #7640
Conversation
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>
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…, 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>
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
return workspaceList.map( | ||
(workspace): WorkspaceAttributeWithUseCaseID => ({ | ||
...workspace, | ||
useCase: [...(workspace.features || [])], |
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.
We can make it a string instead of array, then you don't need to call getFirstUseCaseOfFeatureConfigs
many times
useCase: [...(workspace.features || [])], | |
useCase: getFirstUseCaseOfFeatureConfigs(workspace.features || []) ?? '' |
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.
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 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!
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
src/plugins/workspace/public/components/workspace_list/index.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
* 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>
* 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>
* 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>
* 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>
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
When hovering over the description, you will see the tool tip.

Perform filtering by Use case


Integrating 3 actions

Performing search

Empty state

Enable multiple deletion

Changelog
Check List
yarn test:jest
yarn test:jest_integration