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] Consistency and density improvements #836

Merged
merged 9 commits into from
Aug 21, 2024

Conversation

danieldong51
Copy link
Contributor

@danieldong51 danieldong51 commented Aug 9, 2024

Description

This PR makes consistency and density improvements, including:

  1. Using small context menus
  2. Using small tabs: <EuiTabs size="s">
  3. Using small font size as normal paragraph font size through <EuiText size="s">
  4. Using semantic headers (H1s on main pages, H2s on modals/flyouts) wrapped under <EuiText size="s">
  5. Only using primary buttons for primary calls to action.

Screenshots

All screenshots are in the v8 Next Dark theme.

Small Context Menus

Note that because the context menu items are not passed as an attribute, each individual context menu item was modified to be size="s".

Scope Before After
Detector: Actions Detectors Actions Before Detectors Actions Post
Detector: Controls Detectors Controls Before Detectors Controls Post

Small Tabs

Scope Before After
Detector: Anomaly History Anomaly History Before Anomaly History Post
Detector: Config Detector Config Before Detector Config Post

Paragraph font size

Scope Before After
Get Started Overview Before Overview Post
Get Started: Description Overview-New Before Overview-New Post
Get Started: Sample Overview-Sample Before Overview-Sample Post
Get Started: Link Overview-Link Before Overview-Link Post
Create Detector: Configure Configure-Model Before Configure-Model Post
Create Detector: Configure Callout Configure-Model-Callout Before Configure-Model-Callout Post
Dashboard: Empty No Dashboard Before No Dashboard Post
Dashboard: No Result No Result Before No Result Post
Detectors: Empty Empty List Before Empty List Post
Detector Details: Attempting Attempting Results Before Attempting Results Post
Detector Details: Features Features Before Features Post
Detector Details: No Anomalies No-Anomalies Before No-Anomalies Post
Detector Details: Not Available Not-Available Before Not-Available Post
Detector Details: Start Start Before Start Post
Detector Details: Historical Historical-Empty Before Historical-Empty Post
Feature Anywhere: Empty Empty Before Empty Post
Feature Anywhere: Add Add-Detector-Details Before Add-Detector-Details Post
Feature Anywhere: Successful Successful Before Successful Post
Modals: Confirm Confirm Modal Before Confirm Modal Post
Modals: Delete Detail-Delete-Modal Before Detail-Delete-Modal Post
Modals: Confirm Start Confirm Start Before Screenshot 2024-08-08 at 6 33 18 PM
Modals: Confirm Stop Confirm Stop Before Confirm Stop Post
Modals: Confirm Delete Confirm Delete Before Confirm Delete Post
Modals: Unlink Unlink-Modal Before Unlink-Modal Post

Semantic Headers

Scope Before After
Create Inspector: Define Define Before Define Post
Create Inspector: Configure Configure Before Configure Post
Create Inspector: Jobs Jobs Before Jobs Post
Create Inspector: Review Review Before Review Post
Dashboards Overview Before Overview Post
Detector Name Detector Name Before Detector Name Post
Get Started Overview Before Overview Post
Modals: Code Code Modal Before Code Modal Post
Modals: Feature Code Code Modal Before Code Modal Post
Modals: Confirm Stop Confirm Modal Before Confirm Modal Post
Modals: Confirm Start Confirm Start Before Confirm Start Post
Modals: Confirm Stop Confirm Stop Before Confirm Stop Post
Modals: Confirm Delete Confirm Delete Before Confirm Delete Post
Modals: Remove Association Remove Association Before Remove Association Post
Modals: Set Up Set Up Before Set Up Post
Flyouts: Associated Detectors Associated Before Associated Post
Flyouts: Add Detectors Flyout Before Flyout Post
Flyouts: Sample Sample Before Sample Post

Buttons

Note that the below page has another primary button at the bottom.

Scope Before After
Refresh Preview Refresh Preview Before Refresh Preview Post

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jackiehanyang
Copy link
Collaborator

@danieldong51 what's the purpose of having this change? Is it part of the header redesign project?

@danieldong51
Copy link
Contributor Author

danieldong51 commented Aug 9, 2024

@danieldong51 what's the purpose of having this change? Is it part of the header redesign project?

This is part of the density and consistency improvements for Look & Feel

Copy link

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

Minor comment, changes look good, but likely want to check test failure

@@ -55,6 +55,7 @@ export const DetectorControls = (props: DetectorControls) => {
key="editDetector"
data-test-subj="editDetectorSettingsItem"
onClick={props.onEditDetector}
size="s"

Choose a reason for hiding this comment

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

Can you make the EuiContextMenuPanel small instead? may just make it easier to add stuff in the future (not sure if this is possible)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the EuiContextMenu items weren't passed in as items, setting the size attribute for EuiContextMenuPanel didn't change the size of the context menu

@virajsanghvi
Copy link

virajsanghvi commented Aug 9, 2024

@danieldong51 what's the purpose of having this change? Is it part of the header redesign project?

This is part of the density and consistency improvements for Look & Feel

Just FYI, we previously made these changes to the core experiences and are going through all the plugins to make these changes to ideally get a more consistent/denser look and feel across the product for 2.17.

@jackiehanyang
Copy link
Collaborator

I see FTR E2E test CI failed, could you please take a look? @danieldong51

Also, I see there's another open PR that seems to be doing similar things - #826. Could you verify if we still need that PR if we merge yours?

@jackiehanyang
Copy link
Collaborator

@virajsanghvi Do have a sanity test planned for this pr/project? I’m mostly concerned about whether the PR includes every possible text/button/tab/... that needs to be updated, so the page is consistent with the new look

@danieldong51
Copy link
Contributor Author

#826

That one updates the buttons and form elements for Look & Feel, and this PR does the rest of the target areas for the project. The changes in these two PRs shouldn't overlap, so both would be needed.

@virajsanghvi
Copy link

virajsanghvi commented Aug 9, 2024

@virajsanghvi Do have a sanity test planned for this pr/project? I’m mostly concerned about whether the PR includes every possible text/button/tab/... that needs to be updated, so the page is consistent with the new look

We won't have any automated mechanisms, but given we're making changes to all pages with the header, left nav, and look and feel items, we've discussed having plugin-level and product-wide bug bashes to identify issues/unevenness across all the projects, which I think will provide the sanity you're looking for (for look and feel, its mostly calling out anything that looks off/inconsistent).

We won't be perfect given the product is already inconsistent and we're not addressing everything, there's ongoing development, and that we're not plugin experts so don't know the full surface area, but as was aligned on while undertaking this effort, given we're already inconsistent in the product, we just want to move in the right direction without introducing any additional unevenness.

Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
Signed-off-by: Dan Dong <danieldong51@gmail.com>
@jackiehanyang jackiehanyang merged commit 07908a0 into opensearch-project:main Aug 21, 2024
8 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 21, 2024
* Changed context menus to be small

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated tabs to be small

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated paragraph text to be EuiText size="s"

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated semantic headers

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated primary buttons

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Reverted unintended changes

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated snapshot testing

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Fixed merge conflict

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated snapshot tests

---------

Signed-off-by: Dan Dong <danieldong51@gmail.com>
(cherry picked from commit 07908a0)
jackiehanyang pushed a commit that referenced this pull request Aug 21, 2024
* Changed context menus to be small

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated tabs to be small

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated paragraph text to be EuiText size="s"

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated semantic headers

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated primary buttons

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Reverted unintended changes

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated snapshot testing

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Fixed merge conflict

Signed-off-by: Dan Dong <danieldong51@gmail.com>

* Updated snapshot tests

---------

Signed-off-by: Dan Dong <danieldong51@gmail.com>
(cherry picked from commit 07908a0)

Co-authored-by: Dan Dong <58446449+danieldong51@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