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

[Manual backport 2.x] Introduce the redesign page and applications headers behind a switch (#7637) #7692

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

AMoo-Miki
Copy link
Collaborator

Cherry picked commit 265a176 from #7637

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

…pensearch-project#7637)

* Bump OUI to 1.9.0

Signed-off-by: Miki <[email protected]>

* Introduce the redesigned page header

Signed-off-by: Miki <[email protected]>

Update UX of breadcrumbs, menu toggle, and the new contribution points

Signed-off-by: Miki <[email protected]>

Add renderElement option in HeaderControls

Signed-off-by: Shenoy Pratik <[email protected]>

Update application mocks and rearrange header layout

Signed-off-by: Shenoy Pratik <[email protected]>

Break and restyle breadcrumb

Signed-off-by: Zhongnan Su <[email protected]>

Implement header updates

Signed-off-by: Miki <[email protected]>

* Introduce HeaderVariant

Signed-off-by: Miki <[email protected]>

* Organize Header's layout

Signed-off-by: Miki <[email protected]>

* Fix header control spacing

Signed-off-by: Miki <[email protected]>

* Conditionally append breadcrumb to recent popover
Fix mock for recent items

Co-authored-by: Zhongnan Su <[email protected]>
Co-authored-by: Shenoy Pratik <[email protected]>

* Update top nav render and add app header
Use ScreenTitle instead of appname from topnav menu

Signed-off-by: Shenoy Pratik <[email protected]>

* Compress QueryStringInput appearance

Signed-off-by: Miki <[email protected]>

* Update header for applications

Signed-off-by: Miki <[email protected]>

* Eliminate colors from the borders of grouped action menu items

Signed-off-by: Miki <[email protected]>

* Update TopNavControl*Data type to controlType for consistency

Signed-off-by: Miki <[email protected]>

* Add tests for chrome Header

Signed-off-by: Shenoy Pratik <[email protected]>

* Update Breadcrumbs tests

Signed-off-by: Shenoy Pratik <[email protected]>

* Add tests for HeaderControlsContainer

Signed-off-by: Miki <[email protected]>

* Add tests for TopNavControls and TopNavControlItem

Signed-off-by: Shenoy Pratik <[email protected]>

* Updated tests for TopNavMenu and TopNavMenuItem

Signed-off-by: Shenoy Pratik <[email protected]>

* Fix `uiSettingsServiceMock` missing `start`

Signed-off-by: Miki <[email protected]>

* Add the `target` property to TopNavControlItem

Signed-off-by: Miki <[email protected]>

* Update Navigation mock and start contract

Signed-off-by: Miki <[email protected]>

* Add createGetterSetter mock in dashboards app state

Signed-off-by: Shenoy Pratik <[email protected]>

* Add tests for setting and unsetting header variant

Signed-off-by: Miki <[email protected]>

* Add tests for setting header controls

Signed-off-by: Miki <[email protected]>

* Re-skin DataSource selection's trigger button

Signed-off-by: Miki <[email protected]>

* Conditionally change where theme management menu item shows up

Signed-off-by: Miki <[email protected]>

* Conditionally change where the help menu items shows up

Signed-off-by: Miki <[email protected]>

* Make IndexPatternTable page conditionally use the new page header

Signed-off-by: Miki <[email protected]>

* Make Discover conditionally use the new application header

Signed-off-by: Miki <[email protected]>

* Make Dashboards conditionally use the new application header

Signed-off-by: Miki <[email protected]>

* Add changelog fragment

Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Miki <[email protected]>

* Add tracking issue for empty label for DataSourceMenuPopoverButton

Signed-off-by: Miki <[email protected]>

* Use EUI aliases in CSS variables

Signed-off-by: Miki <[email protected]>

* Remove TopNavMenuLink

Signed-off-by: Miki <[email protected]>

* Make sure OuiHeader doesn't contribute to the background

Also:
* Remove unused code

Signed-off-by: Miki <[email protected]>

* Better border hiding for DSM popover button

Signed-off-by: Miki <[email protected]>

* Make popover button overflow later

Signed-off-by: Miki <[email protected]>

---------

Signed-off-by: Miki <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Co-authored-by: Zhongnan Su <[email protected]>
Co-authored-by: Shenoy Pratik <[email protected]>

(cherry picked from commit 265a176)
Signed-off-by: Miki <[email protected]>
Copy link
Contributor

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

@AMoo-Miki AMoo-Miki changed the title [Manual backport 2.z] Introduce the redesign page and applications headers behind a switch (#7637) [Manual backport 2.x] Introduce the redesign page and applications headers behind a switch (#7637) Aug 13, 2024
Copy link
Contributor

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

Copy link

codecov bot commented Aug 13, 2024

Codecov Report

Attention: Patch coverage is 76.19048% with 65 lines in your changes missing coverage. Please review.

Project coverage is 63.83%. Comparing base (3fad78c) to head (bfe424c).

Files Patch % Lines
...ts/dashboard_top_nav/top_nav/get_top_nav_config.ts 0.00% 15 Missing ⚠️
...public/application/components/dashboard_editor.tsx 0.00% 7 Missing ⚠️
...ation/public/top_nav_menu/top_nav_control_item.tsx 75.00% 0 Missing and 7 partials ⚠️
src/core/public/application/ui/app_container.tsx 0.00% 6 Missing ⚠️
src/core/public/chrome/chrome_service.tsx 70.58% 4 Missing and 1 partial ⚠️
...vigation/public/top_nav_menu/top_nav_menu_item.tsx 75.00% 1 Missing and 4 partials ⚠️
...components/dashboard_top_nav/dashboard_top_nav.tsx 66.66% 1 Missing and 3 partials ⚠️
src/core/public/chrome/ui/header/header.tsx 94.00% 0 Missing and 3 partials ⚠️
src/core/public/core_system.ts 25.00% 2 Missing and 1 partial ⚠️
.../core/public/chrome/ui/header/header_help_menu.tsx 0.00% 0 Missing and 2 partials ⚠️
... and 5 more
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #7692      +/-   ##
==========================================
+ Coverage   63.79%   63.83%   +0.03%     
==========================================
  Files        3634     3637       +3     
  Lines       80209    80464     +255     
  Branches    12703    12777      +74     
==========================================
+ Hits        51171    51364     +193     
- Misses      25933    25973      +40     
- Partials     3105     3127      +22     
Flag Coverage Δ
Linux_1 29.87% <0.73%> (-0.78%) ⬇️
Linux_2 55.94% <87.19%> (+0.19%) ⬆️
Linux_3 40.44% <5.49%> (-0.20%) ⬇️
Linux_4 31.46% <21.40%> (-0.01%) ⬇️
Windows_1 29.89% <0.73%> (-0.78%) ⬇️
Windows_2 55.89% <87.19%> (+0.19%) ⬆️
Windows_3 40.44% <5.49%> (-0.20%) ⬇️
Windows_4 31.46% <21.40%> (-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
Copy link
Member

CI result looks good to me and we'd better merge this huge backport PR as soon as possible.

@AMoo-Miki AMoo-Miki merged commit 9320b9e into opensearch-project:2.x Aug 13, 2024
65 of 68 checks passed
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.

3 participants