Skip to content

Slim down popover panels#190472

Merged
ryankeairns merged 3 commits intoelastic:mainfrom
ryankeairns:rk/popoverweight
Aug 19, 2024
Merged

Slim down popover panels#190472
ryankeairns merged 3 commits intoelastic:mainfrom
ryankeairns:rk/popoverweight

Conversation

@ryankeairns
Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns commented Aug 14, 2024

Summary

These couple of popover panels contain more padding than desired or intended by the design system.

Before
Discover alerts popover

Nav deployments popover

After
Discover alerts popover

Nav deployments popover

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@ryankeairns ryankeairns added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v8.16.0 labels Aug 14, 2024
@ryankeairns ryankeairns marked this pull request as ready for review August 14, 2024 14:48
@ryankeairns ryankeairns requested review from a team as code owners August 14, 2024 14:48
@ryankeairns ryankeairns added Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// labels Aug 14, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

Copy link
Copy Markdown
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

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

Data Discovery changes LGTM 👍

@ryankeairns ryankeairns self-assigned this Aug 14, 2024
@ryankeairns ryankeairns enabled auto-merge (squash) August 14, 2024 16:18
Copy link
Copy Markdown
Contributor

@eokoneyo eokoneyo left a comment

Choose a reason for hiding this comment

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

Changes look good.

@eokoneyo
Copy link
Copy Markdown
Contributor

I've got a follow up question here, is the guidance to default padding for popovers to the eui 's' value across the product?

@ryankeairns
Copy link
Copy Markdown
Contributor Author

ryankeairns commented Aug 19, 2024

I've got a follow up question here, is the guidance to default padding for popovers to the eui 's' value across the product?

Thanks for the review, that's a keen follow-up question :)

These two examples have long stood out to me as atypical in how much padding they contain; however, they were using the default m padding. The challenge - in my estimation - is the wide variety of child components that can be placed within a popover and the sorts of padding they bring along. That 'internal' padding can be necessary for hover/focus/active states.

At the end of the day, the amount of padding in these menus is very uncommon in the designs I see/review, and we (UX) would typically catch such divergence during PR reviews. I can pass this observation on to the team working on the new theme - perhaps its something we can better control going forward.

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 842.5KB 842.5KB +30.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 419.9KB 419.9KB +21.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ryankeairns

@ryankeairns ryankeairns merged commit 4eeb35d into elastic:main Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants