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

[Page Header] Add responsiveness for page header #8171

Merged

Conversation

zhongnansu
Copy link
Member

@zhongnansu zhongnansu commented Sep 12, 2024

Description

  • Add responsiveness for page header
  • Stop converting data source picker actions to popover

Issues Resolved

Screenshot

iShot_2024-09-17_01.01.08.mp4

Testing the changes

Changelog

  • skip

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

Copy link
Contributor

❌ Empty Changelog Section

The Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section.

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 79.41176% with 14 lines in your changes missing coverage. Please review.

Project coverage is 64.05%. Comparing base (9ab4377) to head (f5fba22).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
src/core/public/chrome/ui/header/header.tsx 79.41% 0 Missing and 14 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8171      +/-   ##
==========================================
+ Coverage   63.89%   64.05%   +0.16%     
==========================================
  Files        3739     3741       +2     
  Lines       88762    88683      -79     
  Branches    13814    13817       +3     
==========================================
+ Hits        56718    56810      +92     
+ Misses      31446    31261     -185     
- Partials      598      612      +14     
Flag Coverage Δ
Linux_1 30.05% <1.47%> (+0.08%) ⬆️
Linux_2 58.85% <79.41%> (+0.06%) ⬆️
Linux_3 40.34% <1.47%> (+0.08%) ⬆️
Linux_4 31.43% <1.47%> (+0.06%) ⬆️
Windows_1 30.06% <1.47%> (+0.08%) ⬆️
Windows_2 58.80% <79.41%> (+0.06%) ⬆️
Windows_3 40.34% <1.47%> (+0.08%) ⬆️
Windows_4 31.43% <1.47%> (+0.06%) ⬆️

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.

@github-actions github-actions bot added the Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry label Sep 12, 2024
@virajsanghvi
Copy link
Collaborator

Just to confirm, the additional whitespace after removing the popover behavior will be addressed separately?

@zhongnansu
Copy link
Member Author

Just to confirm, the additional whitespace after removing the popover behavior will be addressed separately?
@virajsanghvi What's the whitespace you are referring to? Is it the one from this screenshot?
image

@virajsanghvi
Copy link
Collaborator

Just to confirm, the additional whitespace after removing the popover behavior will be addressed separately?
@virajsanghvi What's the whitespace you are referring to? Is it the one from this screenshot?
image

Sorry, the space I'm referring to is the whitespace above the area selected in your screenshot.

@zhongnansu zhongnansu force-pushed the responsiveness-header branch 2 times, most recently from e61ab07 to a0ba3a9 Compare September 17, 2024 08:04
@zhongnansu
Copy link
Member Author

@virajsanghvi Fixed the spacing issue, and updated the attached video, could you re-review?

Copy link
Collaborator

@virajsanghvi virajsanghvi left a comment

Choose a reason for hiding this comment

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

I think we will want to address vertical padding between items but can be done after this cr:
image

src/core/public/chrome/ui/header/header.tsx Outdated Show resolved Hide resolved
src/core/public/chrome/ui/header/header.tsx Outdated Show resolved Hide resolved
src/core/public/chrome/utils.ts Outdated Show resolved Hide resolved
src/core/public/chrome/ui/header/header.tsx Show resolved Hide resolved
@zhongnansu
Copy link
Member Author

I think we will want to address vertical padding between items but can be done after this cr: image

@virajsanghvi This comes with the default EuiFlexItem, to fix it, we need to update in OUI

@virajsanghvi
Copy link
Collaborator

I think we will want to address vertical padding between items but can be done after this cr: image

@virajsanghvi This comes with the default EuiFlexItem, to fix it, we need to update in OUI

Can we not address with using smaller padding sizes on the elements or a css override? Anyways, may be easier to identify options once its pushed.

Signed-off-by: Zhongnan Su <szhongna@amazon.com>
Copy link
Collaborator

@virajsanghvi virajsanghvi left a comment

Choose a reason for hiding this comment

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

Change looks good assuming checks pass

@@ -110,3 +110,11 @@
#globalHeaderBars:has(.primaryApplicationHeader) {
border-bottom: 1px solid $euiColorLightShade;
}

/* Control flex items to wrap when the viewport is less than the medium size */
@media (max-width: 768px) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: are $euiBreakpoints available here? If so, could use $euiBreakpoints['m'] instead of the hard coded value

@zhongnansu zhongnansu merged commit 636f399 into opensearch-project:main Sep 18, 2024
69 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 18, 2024
Signed-off-by: Zhongnan Su <szhongna@amazon.com>
(cherry picked from commit 636f399)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 18, 2024
Signed-off-by: Zhongnan Su <szhongna@amazon.com>
(cherry picked from commit 636f399)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
virajsanghvi pushed a commit that referenced this pull request Sep 19, 2024
(cherry picked from commit 636f399)

Signed-off-by: Zhongnan Su <szhongna@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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.17.1 backport 2.x backport 2.17 look & feel Look and Feel Improvements Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants