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 collaborators panel at workspace create #8382

Conversation

Kapian1234
Copy link
Contributor

@Kapian1234 Kapian1234 commented Sep 30, 2024

Description

Refactor collaborators panel at workspace create

Issues Resolved

Screenshot

before
Screenshot 2024-09-30 at 12 59 23

after
Screenshot 2024-09-30 at 16 16 13

Testing the changes

Changelog

  • feat: Refactor collaborators panel at workspace create

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: Kapian1234 <wanjinch@amazon.com>
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 (a663a84) to head (dd34f7e).
Report is 150 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8382      +/-   ##
==========================================
- Coverage   60.92%   60.92%   -0.01%     
==========================================
  Files        3750     3750              
  Lines       89103    89104       +1     
  Branches    13925    13926       +1     
==========================================
- Hits        54285    54284       -1     
- Misses      31442    31443       +1     
- Partials     3376     3377       +1     
Flag Coverage Δ
Linux_1 28.83% <100.00%> (+<0.01%) ⬆️
Linux_2 56.35% <ø> (ø)
Linux_3 37.72% <ø> (-0.01%) ⬇️
Linux_4 29.96% <ø> (ø)
Windows_1 28.84% <100.00%> (+<0.01%) ⬆️
Windows_2 56.30% <ø> (ø)
Windows_3 37.72% <ø> (ø)
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.

</>
<EuiSplitPanel.Outer direction="column">
<EuiSplitPanel.Inner>
<EuiTitle
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use EuiTitle + h2 as panel title like this to align with the guidance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

data-test-subj={`workspaceForm-permissionSettingPanel`}
/>
</>
<EuiSplitPanel.Outer direction="column">
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to use SplitPanel? Can we use EuiPanel instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No particular reason, I just happened to see that SplitPanel can achieve this effect. I'll change it to EuiPanel then.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems there will be a 32px gap between SplitPanel.Inner. Let use EuiPanel with EuiSpacer instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
@ruanyl
Copy link
Member

ruanyl commented Sep 30, 2024

@Kapian1234 could you resolve the conflict please

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

ruanyl commented Sep 30, 2024

@Kapian1234 Could you resolve the conflicts

…aborator_refactor

Signed-off-by: Lin Wang <wonglam@amazon.com>
@wanglam
Copy link
Contributor

wanglam commented Oct 1, 2024

@ruanyl The conflicts has been resolved, could you help me take a look?

Comment on lines +163 to +170
<EuiFlexItem grow={false}>
<EuiButtonIcon
color="text"
iconType="trash"
size="xs"
style={{ visibility: 'hidden' }}
/>
</EuiFlexItem>
Copy link
Member

Choose a reason for hiding this comment

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

I am a little bit confused on this element, it contains a hidden element. Could you please elaborate more here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a placeholder to align column label with inputs. I think we can change to fixed width div.

Copy link
Member

Choose a reason for hiding this comment

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

I c, thanks. A comment here would be preferred.

Copy link
Contributor

@wanglam wanglam Oct 1, 2024

Choose a reason for hiding this comment

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

Sure. Will add some comments above.

SuZhou-Joe
SuZhou-Joe previously approved these changes Oct 1, 2024
Signed-off-by: Lin Wang <wonglam@amazon.com>
@SuZhou-Joe SuZhou-Joe merged commit 4b56be5 into opensearch-project:main Oct 1, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 1, 2024
* refactor collaborators panel

Signed-off-by: Kapian1234 <wanjinch@amazon.com>

* Changeset file for PR #8382 created/updated

* update title style

Signed-off-by: Kapian1234 <wanjinch@amazon.com>

* Modify panel and update title style

Signed-off-by: Kapian1234 <wanjinch@amazon.com>

* update placeholder

Signed-off-by: Kapian1234 <wanjinch@amazon.com>

* update placeholder

Signed-off-by: Kapian1234 <wanjinch@amazon.com>

* Add comments for placeholder in permission setting panel

Signed-off-by: Lin Wang <wonglam@amazon.com>

---------

Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Lin Wang <wonglam@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Co-authored-by: Lin Wang <wonglam@amazon.com>
(cherry picked from commit 4b56be5)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
SuZhou-Joe pushed a commit that referenced this pull request Oct 2, 2024
…8420)

* refactor collaborators panel



* Changeset file for PR #8382 created/updated

* update title style



* Modify panel and update title style



* update placeholder



* update placeholder



* Add comments for placeholder in permission setting panel



---------





(cherry picked from commit 4b56be5)

Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Lin Wang <wonglam@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>
Co-authored-by: Lin Wang <wonglam@amazon.com>
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Oct 3, 2024
…rch-project#8382) (opensearch-project#8420)

* refactor collaborators panel



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

* update title style



* Modify panel and update title style



* update placeholder



* update placeholder



* Add comments for placeholder in permission setting panel



---------





(cherry picked from commit 4b56be5)

Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Lin Wang <wonglam@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>
Co-authored-by: Lin Wang <wonglam@amazon.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.

5 participants