Skip to content

[8.x] [Expandable Flyout] - customize default right, left and preview widths for push mode (#206155)#210117

Merged
PhilippeOberti merged 2 commits intoelastic:8.xfrom
PhilippeOberti:backport/8.x/pr-206155
Feb 7, 2025
Merged

[8.x] [Expandable Flyout] - customize default right, left and preview widths for push mode (#206155)#210117
PhilippeOberti merged 2 commits intoelastic:8.xfrom
PhilippeOberti:backport/8.x/pr-206155

Conversation

@PhilippeOberti
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…s for push mode (elastic#206155)

## Summary

This PR is making some changes to the Expandable Flyout package. Prior
work had added [push
mode](elastic#182615) to the package,
added [custom way](elastic#170078) to
handle the width for multiple resolutions, and [added
support](elastic#192906) for the internal
section to be resiable by users.

This PR improves the default user experience when using the flyout in
push mode. Until now, the default `right`, `left` and `preview` width in
`push` mode and `overlay` mode were identical. This meant that the
flyout rendered in `push` mode was most of the time using the whole
screen, not leaving any room to the rest of the page content (like the
alerts table).

The `push` widths are now calculated in a different way, to leave as
much room as possible while still allowing the flyout `right` and `left`
sections to render their content correctly, at least most of the time.
Users can still resize the whole flyout as well as the internal `right`
and `left` sections. The `push` widths are generally smaller/narrower
than the `overlay` widths.

#### The `overlay` mode default widths have not changed

https://github.com/user-attachments/assets/28b6c41e-b12c-45cf-aa3e-026a7acdb7b3

#### The `push` mode default widths

https://github.com/user-attachments/assets/93706f9e-212b-4cb4-8748-552f2daed585

### Checklist

- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit e7140ff)

# Conflicts:
#	x-pack/solutions/security/packages/expandable-flyout/src/components/preview_section.tsx
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #8 / FilesTable renders single result count properly

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
securitySolution 18.8MB 18.8MB +2.6KB

History

@PhilippeOberti PhilippeOberti merged commit 8e00f3e into elastic:8.x Feb 7, 2025
@PhilippeOberti PhilippeOberti deleted the backport/8.x/pr-206155 branch February 7, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants