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] feat: add workspace collaborators page #8594

Merged
merged 10 commits into from
Oct 17, 2024

Conversation

raintygao
Copy link
Contributor

@raintygao raintygao commented Oct 15, 2024

Description

feat: add workspace collaborators page

Screenshot

image

Testing the changes

Go to workspace collaborator page(http://localhost:6601/w/{workspace_id}/app/collaborators) then see the changes.

Changelog

  • feat: Add workspace collaborators page

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

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 62.71186% with 22 lines in your changes missing coverage. Please review.

Project coverage is 60.95%. Comparing base (5c8b2e3) to head (4d9b19b).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...ts/workspace_form/workspace_collaborator_table.tsx 28.57% 9 Missing and 1 partial ⚠️
...orkspace_collaborators/workspace_collaborators.tsx 78.26% 3 Missing and 2 partials ⚠️
...ponents/workspace_form/add_collaborator_button.tsx 50.00% 2 Missing and 1 partial ⚠️
src/plugins/workspace/public/plugin.ts 62.50% 3 Missing ⚠️
...gins/workspace/public/services/use_case_service.ts 50.00% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
Linux_1 29.32% <62.71%> (+0.03%) ⬆️
Linux_2 56.39% <ø> (ø)
Linux_3 37.71% <ø> (+<0.01%) ⬆️
Linux_4 29.91% <ø> (ø)
Windows_1 29.34% <62.71%> (+0.03%) ⬆️
Windows_2 56.34% <ø> (ø)
Windows_3 37.71% <ø> (ø)
Windows_4 29.91% <ø> (ø)

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 pushed a commit to raintygao/OpenSearch-Dashboards that referenced this pull request Oct 16, 2024
raintygao pushed a commit to raintygao/OpenSearch-Dashboards that referenced this pull request Oct 16, 2024
@Hailong-am
Copy link
Collaborator

image

buttons on both left and right are larger than search bar

@@ -309,20 +327,25 @@ export const WorkspaceCollaboratorTable = ({
{
field: 'primaryId',
name: 'ID',
width: '30%',
},
{
field: 'displayedType',
name: 'Type',
Copy link
Collaborator

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

raintygao and others added 9 commits October 17, 2024 13:41
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>
Hailong-am
Hailong-am previously approved these changes Oct 17, 2024
const result = await handleSubmitPermissionSettings(
newSettings as WorkspacePermissionSetting[]
);
if (result?.success) {
Copy link
Member

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?

@SuZhou-Joe SuZhou-Joe merged commit 4a2416f into opensearch-project:main Oct 17, 2024
68 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 17, 2024
* 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>
SuZhou-Joe pushed a commit that referenced this pull request Oct 17, 2024
* 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>
amsiglan pushed a commit to amsiglan/OpenSearch-Dashboards that referenced this pull request Oct 19, 2024
…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>
sejli pushed a commit to sejli/OpenSearch-Dashboards that referenced this pull request Oct 21, 2024
…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>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Oct 30, 2024
…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>
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.

4 participants