-
Notifications
You must be signed in to change notification settings - Fork 894
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
[navigation] feat: Render dev tools inside a modal #7938
[navigation] feat: Render dev tools inside a modal #7938
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7938 +/- ##
==========================================
+ Coverage 60.92% 60.93% +0.01%
==========================================
Files 3750 3751 +1
Lines 89103 89164 +61
Branches 13925 13937 +12
==========================================
+ Hits 54285 54334 +49
- Misses 31442 31450 +8
- Partials 3376 3380 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
d26b7cc
to
f6cdf5d
Compare
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
|
||
export interface TopNavMenuItem { | ||
id: string; | ||
label: string; | ||
description: string; | ||
onClick: () => void; | ||
testId: string; | ||
render?: (commonProps: CommonProps) => React.JSX.Element; | ||
position: MenuItemPosition; |
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.
maybe add order for the item?
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.
May not because we are adding these items in an array and all the items come from a single file, not a registration placeholder for other plugins to insert.
> | ||
<EuiFlexGroup direction="column" className="eui-fullHeight devToolsModalContent"> | ||
<EuiFlexItem grow={false}> | ||
<EuiSpacer /> |
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.
nit: the default size for Spacer is large, should we changed to m?
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, updated.
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@ruanyl @Hailong-am Thanks for the comment, all addressed. |
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
* feat: render the content inside a modal Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * Changeset file for PR #7938 created/updated * feat: use memory router when opened in modal Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update buttons Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: optimize layout Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: optimize layout Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * fix: vertical scrollbar issue Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update test Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * feat: update order Signed-off-by: SuZhou-Joe <suzhou@amazon.com> * fix: update snapshot Signed-off-by: SuZhou-Joe <suzhou@amazon.com> --------- Signed-off-by: SuZhou-Joe <suzhou@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit baccf53) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: render the content inside a modal * Changeset file for PR #7938 created/updated * feat: use memory router when opened in modal * feat: update * feat: update buttons * feat: update * feat: optimize layout * feat: optimize layout * fix: vertical scrollbar issue * feat: update test * feat: update * feat: update * feat: update order * fix: update snapshot --------- (cherry picked from commit baccf53) Signed-off-by: SuZhou-Joe <suzhou@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>
…t#7938) (opensearch-project#8434) * feat: render the content inside a modal * Changeset file for PR opensearch-project#7938 created/updated * feat: use memory router when opened in modal * feat: update * feat: update buttons * feat: update * feat: optimize layout * feat: optimize layout * fix: vertical scrollbar issue * feat: update test * feat: update * feat: update * feat: update order * fix: update snapshot --------- (cherry picked from commit baccf53) Signed-off-by: SuZhou-Joe <suzhou@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>
Description
Change dev tools to a full page modal.
Issues Resolved
Screenshot
20240830181306154.mp4
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration