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] refactor: update workspace collaborator table UI #8543

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

raintygao
Copy link
Contributor

@raintygao raintygao commented Oct 10, 2024

Description

refactor: update workspace collaborator table UI

Screenshot

image

  1. Update table empty state.
  2. Update add collaborator button.

Testing the changes

Go to workspace settings page and see the changes.

Changelog

  • refactor: Update workspace collaborator table UI

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
Contributor

❌ Changelog Entry Missing Hyphen

Changelog entries must begin with a hyphen (-).

Copy link
Contributor

❌ Changelog Entry Missing Hyphen

Changelog entries must begin with a hyphen (-).

opensearch-changeset-bot bot added a commit to raintygao/OpenSearch-Dashboards that referenced this pull request Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 60.95%. Comparing base (615d7d4) to head (cefb90b).
Report is 83 commits behind head on main.

Files with missing lines Patch % Lines
...ic/components/workspace_form/use_workspace_form.ts 75.00% 0 Missing and 1 partial ⚠️
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     
Flag Coverage Δ
Linux_1 29.08% <75.00%> (+<0.01%) ⬆️
Linux_2 56.27% <ø> (ø)
Linux_3 37.75% <ø> (ø)
Linux_4 29.92% <ø> (ø)
Windows_1 29.10% <75.00%> (+<0.01%) ⬆️
Windows_2 56.23% <ø> (ø)
Windows_3 37.75% <ø> (+<0.01%) ⬆️
Windows_4 29.92% <ø> (ø)

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.

Hailong-am
Hailong-am previously approved these changes Oct 10, 2024
Comment on lines 101 to 108
actions={
<AddCollaboratorButton
displayedTypes={displayedCollaboratorTypes}
permissionSettings={permissionSettings}
handleSubmitPermissionSettings={handleSubmitPermissionSettings}
/>
}
/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Learn more in documentation link is missing?

image

Copy link
Contributor Author

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.

Comment on lines 151 to 154
if (result?.success) {
setPermissionSettings(settings);
}
};
Copy link
Collaborator

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>;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. Thanks.

raintygao and others added 4 commits October 11, 2024 14:15
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 merged commit 794757d into opensearch-project:main Oct 11, 2024
71 of 72 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 11, 2024
* 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>
SuZhou-Joe pushed a commit that referenced this pull request Oct 11, 2024
…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>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Oct 30, 2024
…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>
@ananzh ananzh added the v2.18.0 label Oct 30, 2024
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