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 summary panel in workspace create page #8381

Merged

Conversation

yubonluo
Copy link
Contributor

Description

Refactor summary panel in workspace create page

Issues Resolved

Screenshot

2024-09-29.18.23.49.mp4

Testing the changes

Changelog

  • refactor: [Workspace] Refactor summary panel in workspace create 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

Signed-off-by: yubonluo <yubonluo@amazon.com>
ruanyl
ruanyl previously approved these changes Sep 30, 2024
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.92%. Comparing base (b8b563d) to head (eec8de3).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8381   +/-   ##
=======================================
  Coverage   60.92%   60.92%           
=======================================
  Files        3750     3749    -1     
  Lines       89054    89055    +1     
  Branches    13910    13911    +1     
=======================================
+ Hits        54257    54260    +3     
+ Misses      31433    31432    -1     
+ Partials     3364     3363    -1     
Flag Coverage Δ
Linux_1 28.86% <100.00%> (+<0.01%) ⬆️
Linux_2 56.35% <ø> (ø)
Linux_3 37.75% <ø> (+<0.01%) ⬆️
Linux_4 29.96% <ø> (ø)
Windows_1 28.87% <100.00%> (+<0.01%) ⬆️
Windows_2 56.30% <ø> (ø)
Windows_3 37.76% <ø> (+<0.01%) ⬆️
Windows_4 29.96% <ø> (ø)

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.

SuZhou-Joe
SuZhou-Joe previously approved these changes Sep 30, 2024
)}
</FieldSummaryItem>
<FieldSummaryItem field={RightSidebarScrollField.Name}>{formData.name}</FieldSummaryItem>
<FieldSummaryItem field={RightSidebarScrollField.Description}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems this description summary has been removed, can we added it back?

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

@@ -122,3 +122,33 @@ export const DetailTabTitles: { [key in DetailTab]: string } = {
export const PERMISSION_TYPE_LABEL_ID = 'workspace-form-permission-type-label';
export const PERMISSION_COLLABORATOR_LABEL_ID = 'workspace-form-permission-collaborator-label';
export const PERMISSION_ACCESS_LEVEL_LABEL_ID = 'workspace-form-permission-access-level-label';

export const permissionModeOptions = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice refactor for reusing the permissionModeOptions.

Signed-off-by: yubonluo <yubonluo@amazon.com>
@yubonluo yubonluo dismissed stale reviews from SuZhou-Joe and ruanyl via eec8de3 September 30, 2024 06:28
Copy link
Contributor

@wanglam wanglam left a comment

Choose a reason for hiding this comment

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

LGTM

@ruanyl ruanyl merged commit f9b8c8a into opensearch-project:main Sep 30, 2024
66 of 67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 30, 2024
* Refactor summary panel in workspace create page

Signed-off-by: yubonluo <yubonluo@amazon.com>

* Changeset file for PR #8381 created/updated

* add description

Signed-off-by: yubonluo <yubonluo@amazon.com>

---------

Signed-off-by: yubonluo <yubonluo@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit f9b8c8a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Sep 30, 2024
…8388)

* Refactor summary panel in workspace create page



* Changeset file for PR #8381 created/updated

* add description



---------



(cherry picked from commit f9b8c8a)

Signed-off-by: yubonluo <yubonluo@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>
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Oct 3, 2024
…ch-project#8381) (opensearch-project#8388)

* Refactor summary panel in workspace create page



* Changeset file for PR opensearch-project#8381 created/updated

* add description



---------



(cherry picked from commit f9b8c8a)

Signed-off-by: yubonluo <yubonluo@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>
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