-
Notifications
You must be signed in to change notification settings - Fork 920
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] feat: add workspace collaborators page #8594
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8594 +/- ##
=======================================
Coverage 60.94% 60.95%
=======================================
Files 3790 3792 +2
Lines 90306 90355 +49
Branches 14154 14170 +16
=======================================
+ Hits 55034 55072 +38
- Misses 31815 31822 +7
- Partials 3457 3461 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/plugins/workspace/public/components/workspace_collaborators/workspace_collaborators.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_collaborators/workspace_collaborators.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_form/add_collaborator_button.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_form/workspace_collaborator_table.tsx
Outdated
Show resolved
Hide resolved
@@ -309,20 +327,25 @@ export const WorkspaceCollaboratorTable = ({ | |||
{ | |||
field: 'primaryId', | |||
name: 'ID', | |||
width: '30%', | |||
}, | |||
{ | |||
field: 'displayedType', | |||
name: 'Type', |
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.
i18 for name and other columns
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
Signed-off-by: tygao <tygao@amazon.com>
const result = await handleSubmitPermissionSettings( | ||
newSettings as WorkspacePermissionSetting[] | ||
); | ||
if (result?.success) { |
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.
Do we need to show error toast if result.success is false?
* init collaborator page Signed-off-by: tygao <tygao@amazon.com> * not register when permission is disabled Signed-off-by: tygao <tygao@amazon.com> * Changeset file for PR #8594 created/updated * Changeset file for PR #8594 created/updated * use select in i18n statement Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * add partial test cases Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * use i18n to wrap Signed-off-by: tygao <tygao@amazon.com> * update button style 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 4a2416f) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* init collaborator page * not register when permission is disabled * Changeset file for PR #8594 created/updated * Changeset file for PR #8594 created/updated * use select in i18n statement * test: update tests * add partial test cases * test: update tests * use i18n to wrap * update button style --------- (cherry picked from commit 4a2416f) 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>
…t#8594) * init collaborator page Signed-off-by: tygao <tygao@amazon.com> * not register when permission is disabled Signed-off-by: tygao <tygao@amazon.com> * Changeset file for PR opensearch-project#8594 created/updated * Changeset file for PR opensearch-project#8594 created/updated * use select in i18n statement Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * add partial test cases Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * use i18n to wrap Signed-off-by: tygao <tygao@amazon.com> * update button style 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>
…t#8594) * init collaborator page Signed-off-by: tygao <tygao@amazon.com> * not register when permission is disabled Signed-off-by: tygao <tygao@amazon.com> * Changeset file for PR opensearch-project#8594 created/updated * Changeset file for PR opensearch-project#8594 created/updated * use select in i18n statement Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * add partial test cases Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * use i18n to wrap Signed-off-by: tygao <tygao@amazon.com> * update button style 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>
…t#8594) * init collaborator page Signed-off-by: tygao <tygao@amazon.com> * not register when permission is disabled Signed-off-by: tygao <tygao@amazon.com> * Changeset file for PR opensearch-project#8594 created/updated * Changeset file for PR opensearch-project#8594 created/updated * use select in i18n statement Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * add partial test cases Signed-off-by: tygao <tygao@amazon.com> * test: update tests Signed-off-by: tygao <tygao@amazon.com> * use i18n to wrap Signed-off-by: tygao <tygao@amazon.com> * update button style 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
feat: add workspace collaborators page
Screenshot
Testing the changes
Go to workspace collaborator page(http://localhost:6601/w/{workspace_id}/app/collaborators) then see the changes.
Changelog
Check List
yarn test:jest
yarn test:jest_integration