-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Avoid suggestion rendering and evaluation on fullscreen mode #102757
[Lens] Avoid suggestion rendering and evaluation on fullscreen mode #102757
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dej611 LGTM, although we might not need this line of CSS any more: .lnsFrameLayout-isFullscreen .lnsFrameLayout__suggestionPanel
. There will definitely be a rerender and refetch when we show suggestions again, but it should improve the performance while viewing just the main chart.
Yes, the fix aims at improve the performance in a specific context, the formula fullscreen, slowing down a bit the collapse transition. Ideally it's multiple speedups (formula editing) vs one slowdown (editor collapse). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one small nit about a CSS comment, but LGTM otherwise. Approving.
@@ -88,8 +88,7 @@ a tilemap in an iframe: https://github.com/elastic/kibana/issues/16457 */ | |||
position: relative; | |||
} | |||
|
|||
.lnsFrameLayout-isFullscreen .lnsFrameLayout__sidebar--left, | |||
.lnsFrameLayout-isFullscreen .lnsFrameLayout__suggestionPanel { | |||
.lnsFrameLayout-isFullscreen .lnsFrameLayout__sidebar--left { | |||
// Hide the datapanel and suggestions in fullscreen mode. Using display: none does trigger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit, but might be worth updating this comment to no longer reference suggestions.
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
Avoid to compute suggestions when the Formula editor is in fullscreen mode: expecially when editing a formula this should lead to better performance.
Checklist
Delete any items that are not applicable to this PR.
For maintainers