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

[Look&Feel] Use semantic headers for page, modal, & flyouts across the board #7616

Merged

Conversation

danieldong51
Copy link
Contributor

@danieldong51 danieldong51 commented Aug 2, 2024

Description

This PR updates headers to be within small OuiText in pages, modals, and flyouts across OSD experiences.

Screenshot

Index Patterns

Scope Before (Inspect) After (Inspect) After
Create Create Before Create Post 1 Create Post 2
Page Index Pattern Page Before Index Pattern Page Post 1 Index Pattern Page Post 2
Table Index Patterns Table Before Table Post 1 Table Post 2

Data Sources

Scope Before (Inspect) After (Inspect) After
Accelerate Accelerate Data Before Accelerate Data Post 1 Accelerate Data Post 2
Connection Connection Before Connection Post 1 Connection Post 2
Connection: Create Create connection Before Create connection Post 1 Create connection Post 2
Create Data Source Create Before Create Post 1 Create Post 2
Direct Direct Before Direct Post 1 Direct Post 2
Home Home Before Home Post 1 Home Post 2
S3 S3 Before Inspect S3 Post Inspect S3 Post
Prometheus: Configure Prometheus Configure Before Prometheus Configure Post 1 Prometheus Configure Post 2
Prometheus: Review Prometheus Review Before Prometheus Review Post 1 Prometheus Review Post 2

Saved Objects

Scope Before (Inspect) After (Inspect) After
Import Import Before Inspect Import Post Inspect Import Post
Export Export Before Export Post 1 Export Post 2
Flyout Flyout Before Flyout Post 1 Flyout Post 2

Other

Scope Before (Inspect) After (Inspect) After
Overview Overview Before Overview Post 1 Overview Post 2
Settings Settings Before Inspect Settings Post Inspect Settings Post
Sample Data Sample Data Before Sample Data Post 1 Sample Data Post 2

Changelog

  • Refactor: [Look&Feel] Use semantic headers for page, modal, & flyouts across the board

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

github-actions bot commented Aug 2, 2024

❌ 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
Contributor

github-actions bot commented Aug 2, 2024

❌ 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 Aug 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.66%. Comparing base (352d2e9) to head (56a91ee).
Report is 225 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7616   +/-   ##
=======================================
  Coverage   63.65%   63.66%           
=======================================
  Files        3632     3632           
  Lines       80060    80060           
  Branches    12683    12683           
=======================================
+ Hits        50965    50969    +4     
+ Misses      25990    25986    -4     
  Partials     3105     3105           
Flag Coverage Δ
Linux_1 30.55% <ø> (ø)
Linux_2 55.58% <ø> (ø)
Linux_3 40.56% <ø> (ø)
Linux_4 31.30% <ø> (ø)
Windows_1 30.57% <ø> (ø)
Windows_2 55.53% <ø> (ø)
Windows_3 40.57% <ø> (+0.01%) ⬆️
Windows_4 31.30% <ø> (ø)

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.

Copy link
Contributor

github-actions bot commented Aug 2, 2024

❌ 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.

1 similar comment
Copy link
Contributor

github-actions bot commented Aug 2, 2024

❌ 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
Contributor

github-actions bot commented Aug 3, 2024

❌ 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
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.

Think all my comments were basically validating that increasing sizes were because they were page headers but we weren't using h1s.

Also, if this is a page header, why is it an h2?
image

<EuiTitle>
<h2>
<EuiText size="s">
<h1>
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did this change to an h1? is this the title of the page?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's the create data source page :
Screenshot 2024-08-05 at 2 52 10 PM
Screenshot 2024-08-05 at 2 52 38 PM

<EuiTitle>
<h2>
<EuiText size="s">
<h1>
Copy link
Collaborator

Choose a reason for hiding this comment

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

same for this one (assuming its just the page title)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, also the title of Data Sources page
Screenshot 2024-08-05 at 2 53 23 PM

<h4>{`Configure Prometheus data source`}</h4>
</EuiTitle>
<EuiText size="s">
<h1>{`Configure Prometheus data source`}</h1>
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this a page title?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's the title of this page for creating a Prometheus data source:
Screenshot 2024-08-05 at 2 53 47 PM

Signed-off-by: Dan Dong <[email protected]>
@danieldong51
Copy link
Contributor Author

Think all my comments were basically validating that increasing sizes were because they were page headers but we weren't using h1s.

Also, if this is a page header, why is it an h2? image

My bad, that was the old screenshot before I started updating the header tags. Updated with the correct screenshot now:
Screenshot 2024-08-05 at 2 58 24 PM

Signed-off-by: Dan Dong <[email protected]>
@virajsanghvi virajsanghvi added backport 2.x v2.17.0 look & feel Look and Feel Improvements labels Aug 8, 2024
@virajsanghvi virajsanghvi merged commit 873c79e into opensearch-project:main Aug 8, 2024
73 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 8, 2024
…e board (#7616)

---------

Signed-off-by: Dan Dong <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 873c79e)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AMoo-Miki pushed a commit that referenced this pull request Aug 13, 2024
…e board (#7616) (#7665)

---------



(cherry picked from commit 873c79e)

Signed-off-by: Dan Dong <[email protected]>
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>
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