-
Notifications
You must be signed in to change notification settings - Fork 953
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
[Workspace] Refactor collaborators panel at workspace create #8382
Conversation
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
</> | ||
<EuiSplitPanel.Outer direction="column"> | ||
<EuiSplitPanel.Inner> | ||
<EuiTitle |
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.
Can we use EuiTitle + h2
as panel title like this to align with the guidance.
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.
ok
data-test-subj={`workspaceForm-permissionSettingPanel`} | ||
/> | ||
</> | ||
<EuiSplitPanel.Outer direction="column"> |
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.
Any reason to use SplitPanel? Can we use EuiPanel
instead?
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.
No particular reason, I just happened to see that SplitPanel can achieve this effect. I'll change it to EuiPanel then.
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.
It seems there will be a 32px gap between SplitPanel.Inner
. Let use EuiPanel
with EuiSpacer
instead.
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.
ok
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
@Kapian1234 could you resolve the conflict please |
Signed-off-by: Kapian1234 <wanjinch@amazon.com>
@Kapian1234 Could you resolve the conflicts |
…aborator_refactor Signed-off-by: Lin Wang <wonglam@amazon.com>
@ruanyl The conflicts has been resolved, could you help me take a look? |
<EuiFlexItem grow={false}> | ||
<EuiButtonIcon | ||
color="text" | ||
iconType="trash" | ||
size="xs" | ||
style={{ visibility: 'hidden' }} | ||
/> | ||
</EuiFlexItem> |
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.
I am a little bit confused on this element, it contains a hidden element. Could you please elaborate more here?
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.
I think this is a placeholder to align column label with inputs. I think we can change to fixed width div.
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.
I c, thanks. A comment here would be preferred.
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.
Sure. Will add some comments above.
Signed-off-by: Lin Wang <wonglam@amazon.com>
* 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>
…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>
…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>
Description
Refactor collaborators panel at workspace create
Issues Resolved
Screenshot
before
![Screenshot 2024-09-30 at 12 59 23](https://private-user-images.githubusercontent.com/45655760/371952235-12e5018b-7245-49ff-9356-aeeb21fbc97e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzkxMzEsIm5iZiI6MTczOTU3ODgzMSwicGF0aCI6Ii80NTY1NTc2MC8zNzE5NTIyMzUtMTJlNTAxOGItNzI0NS00OWZmLTkzNTYtYWVlYjIxZmJjOTdlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmZTcxNDk2OThjMzhhY2EyMmM0YzllZjI0YzM2YjEzNTBmZTBkNGQ5NGZlMmZhMGQ5ZWQwODA5NTk0MGVjZjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.r6-u1MOzFXAuULk9gWRKzCiK_0iqJICJ7iTMF37qWv4)
after
![Screenshot 2024-09-30 at 16 16 13](https://private-user-images.githubusercontent.com/45655760/372002091-56fe1923-3900-4f2e-9fc5-eed2134bd57e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NzkxMzEsIm5iZiI6MTczOTU3ODgzMSwicGF0aCI6Ii80NTY1NTc2MC8zNzIwMDIwOTEtNTZmZTE5MjMtMzkwMC00ZjJlLTlmYzUtZWVkMjEzNGJkNTdlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkZDRkZThkYjkyMDEzYzBiYmE2NDcyMDRiMTMxNThhZDJlMmZlNzExMzI0M2U0ZWM4MzU4NmU5NjIzZTVmOWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.fM43n2BN1Io6crcgeMEzFxq7O-ro8hV1Svt-0V5djjQ)
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration