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

[navigation] feat: Render dev tools inside a modal #7938

Merged

Conversation

SuZhou-Joe
Copy link
Member

@SuZhou-Joe SuZhou-Joe commented Aug 30, 2024

Description

Change dev tools to a full page modal.

Issues Resolved

Screenshot

20240830181306154.mp4

Testing the changes

Changelog

  • feat: change dev tools to a modal

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

opensearch-changeset-bot bot added a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Aug 30, 2024
Copy link

codecov bot commented Aug 30, 2024

Codecov Report

Attention: Patch coverage is 85.18519% with 4 lines in your changes missing coverage. Please review.

Project coverage is 60.93%. Comparing base (a663a84) to head (fcf2c23).
Report is 149 commits behind head on main.

Files with missing lines Patch % Lines
src/plugins/dev_tools/public/dev_tools_icon.tsx 75.00% 4 Missing ⚠️
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     
Flag Coverage Δ
Linux_1 28.85% <ø> (+0.02%) ⬆️
Linux_2 56.35% <ø> (-0.01%) ⬇️
Linux_3 37.75% <85.18%> (+0.02%) ⬆️
Linux_4 29.96% <ø> (+<0.01%) ⬆️
Windows_1 28.87% <ø> (+0.02%) ⬆️
Windows_2 56.30% <ø> (-0.01%) ⬇️
Windows_3 37.75% <85.18%> (+0.02%) ⬆️
Windows_4 29.96% <ø> (+<0.01%) ⬆️

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 and others added 6 commits September 10, 2024 18:34
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>
@SuZhou-Joe SuZhou-Joe force-pushed the feature/change-devtool-to-modal branch from d26b7cc to f6cdf5d Compare September 10, 2024 10:34
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>
@SuZhou-Joe SuZhou-Joe changed the title feat: render the content inside a modal [navigation] feat: Render dev tools inside a modal Sep 30, 2024
@ruanyl
Copy link
Member

ruanyl commented Sep 30, 2024

image Nit: the spacing between the buttons seems larger then it should be?

ruanyl
ruanyl previously approved these changes Sep 30, 2024

export interface TopNavMenuItem {
id: string;
label: string;
description: string;
onClick: () => void;
testId: string;
render?: (commonProps: CommonProps) => React.JSX.Element;
position: MenuItemPosition;
Copy link
Collaborator

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?

Copy link
Member Author

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 />
Copy link
Collaborator

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, updated.

@Hailong-am
Copy link
Collaborator

image Nit: the spacing between the buttons seems larger then it should be?

the order of help and settings is not match with mock
image

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@SuZhou-Joe
Copy link
Member Author

@ruanyl @Hailong-am Thanks for the comment, all addressed.

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
@SuZhou-Joe SuZhou-Joe removed the 2.17.1 label Oct 2, 2024
@SuZhou-Joe SuZhou-Joe merged commit baccf53 into opensearch-project:main Oct 2, 2024
67 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 2, 2024
* 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>
SuZhou-Joe pushed a commit that referenced this pull request Oct 2, 2024
* 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>
SuZhou-Joe pushed a commit to SuZhou-Joe/OpenSearch-Dashboards that referenced this pull request Oct 3, 2024
…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>
@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