-
Notifications
You must be signed in to change notification settings - Fork 983
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] refactor: update workspace collaborator table UI #8543
Conversation
❌ Changelog Entry Missing HyphenChangelog entries must begin with a hyphen (-). |
❌ Changelog Entry Missing HyphenChangelog entries must begin with a hyphen (-). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8543 +/- ##
=======================================
Coverage 60.95% 60.95%
=======================================
Files 3776 3777 +1
Lines 89638 89641 +3
Branches 14045 14046 +1
=======================================
+ Hits 54639 54645 +6
+ Misses 31587 31583 -4
- Partials 3412 3413 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
actions={ | ||
<AddCollaboratorButton | ||
displayedTypes={displayedCollaboratorTypes} | ||
permissionSettings={permissionSettings} | ||
handleSubmitPermissionSettings={handleSubmitPermissionSettings} | ||
/> | ||
} | ||
/> |
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.
The link is still missing, so we can ignore it for now.
if (result?.success) { | ||
setPermissionSettings(settings); | ||
} | ||
}; |
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.
nit: could simplified to check result only, as success
is always true based on its definition
Promise<{ result: boolean; success: true } | undefined>;
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.
Updated. Thanks.
src/plugins/workspace/public/components/workspace_form/workspace_collaborator_table.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_form/use_workspace_form.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
dc8b857
to
cefb90b
Compare
* update workspace collaborator table UI Signed-off-by: tygao <tygao@amazon.com> * Changeset file for PR #8543 created/updated * test: add tests Signed-off-by: tygao <tygao@amazon.com> * update Signed-off-by: tygao <tygao@amazon.com> --------- Signed-off-by: tygao <tygao@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 794757d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…8559) * update workspace collaborator table UI * Changeset file for PR #8543 created/updated * test: add tests * update --------- (cherry picked from commit 794757d) Signed-off-by: tygao <tygao@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>
…rch-project#8543) * update workspace collaborator table UI Signed-off-by: tygao <tygao@amazon.com> * Changeset file for PR opensearch-project#8543 created/updated * test: add tests Signed-off-by: tygao <tygao@amazon.com> * update Signed-off-by: tygao <tygao@amazon.com> --------- Signed-off-by: tygao <tygao@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
refactor: update workspace collaborator table UI
Screenshot
Testing the changes
Go to workspace settings page and see the changes.
Changelog
Check List
yarn test:jest
yarn test:jest_integration