[Lens] Move toolbar from Lens editor workspace to config panel#239879
[Lens] Move toolbar from Lens editor workspace to config panel#239879mariairiartef merged 20 commits intoelastic:mainfrom
Conversation
61d1731 to
7739e94
Compare
cc4776f to
b7a3301
Compare
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
|
/ci |
2 similar comments
|
/ci |
|
/ci |
5f17ea5 to
815c21c
Compare
|
/ci |
|
/ci |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#9641[✅] x-pack/platform/test/functional/apps/lens/group1/config.ts: 25/25 tests passed. |
| `} | ||
| responsive={false} | ||
| > | ||
| {!isFullscreen && ( |
There was a problem hiding this comment.
I think that currently, whenever you enable the "formula expand mode", the toolbar disappears. I mean, the toolbar never was there in the expanded mode, right? Do you think we should show it? 🤔 Even with the new system, you are not enable to simultaneously edit the style and the visualization configuration
There was a problem hiding this comment.
@gvnmagni do you think we should consider this?
There was a problem hiding this comment.
Checked with previous version and I was wrong, as those buttons were hidden like they do with your PR.
So good for me 👍
...tform/plugins/shared/lens/public/editor_frame_service/editor_frame/visualization_toolbar.tsx
Outdated
Show resolved
Hide resolved
| <EuiFlexItem | ||
| css={css({ margin: `${euiTheme.size.base} ${euiTheme.size.base} 0 0` })} | ||
| > | ||
| <EuiFlexGroup | ||
| alignItems="center" | ||
| justifyContent="flexEnd" | ||
| responsive={false} | ||
| wrap={true} | ||
| > | ||
| <VisualizationToolbarWrapper framePublicAPI={framePublicAPI} /> | ||
| </EuiFlexGroup> | ||
| </EuiFlexItem> |
There was a problem hiding this comment.
This looks looks like the wrong way around with flex group inside a flex item guess we need to swap that? might be worth revisiting how to properly structure this. the parent section doesn't use EUI but sets flex on the section, maybe it's sufficient to just have VisualizationToolbarWrapper in here?
| } | ||
|
|
||
| return ( | ||
| <EuiFlexItem grow={false} data-test-subj="lnsVisualizationToolbar"> |
There was a problem hiding this comment.
It's been like this previously but I wonder if having the flex item here is a bit too opinionated since it's expects the user of the component to know that it needs a parent flex group on the outside. maybe we should remove the item here and have it outside in the places where necessary?
There was a problem hiding this comment.
There was a problem hiding this comment.
This looks better now! Since you moved data-test-subj="lnsVisualizationToolbar" out of the component we're missing it now in the FlyoutWrapper component (x-pack/platform/plugins/shared/lens/public/app_plugin/shared/edit_on_the_fly/flyout_wrapper.tsx) so we need to change {toolbar && <EuiFlexItem grow={false}>{toolbar}</EuiFlexItem>} to {toolbar && <EuiFlexItem grow={false} data-test-subj="lnsVisualizationToolbar">{toolbar}</EuiFlexItem>} there too.
42e27f7 to
06da00f
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
|
…ic#239879) ## Summary Moves toolbar from workspace to config panel. #### After <img width="2560" height="1295" alt="Screenshot 2025-10-23 at 14 17 59" src="https://github.com/user-attachments/assets/cdd1a3ed-7420-4e55-8c1b-7aa77ba88175" /> #### With disabled "Auto-apply visualization changes" <img width="2560" height="1294" alt="Screenshot 2025-10-23 at 14 22 24" src="https://github.com/user-attachments/assets/631f46c4-8a83-411f-bc29-27df257eaeef" /> ### Checklist - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Issues Closes elastic#239719 ### Release Notes Moves the Lens visualization toolbar from the workspace section to the config panel. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ic#239879) ## Summary Moves toolbar from workspace to config panel. #### After <img width="2560" height="1295" alt="Screenshot 2025-10-23 at 14 17 59" src="https://github.com/user-attachments/assets/cdd1a3ed-7420-4e55-8c1b-7aa77ba88175" /> #### With disabled "Auto-apply visualization changes" <img width="2560" height="1294" alt="Screenshot 2025-10-23 at 14 22 24" src="https://github.com/user-attachments/assets/631f46c4-8a83-411f-bc29-27df257eaeef" /> ### Checklist - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Issues Closes elastic#239719 ### Release Notes Moves the Lens visualization toolbar from the workspace section to the config panel. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ic#239879) ## Summary Moves toolbar from workspace to config panel. #### After <img width="2560" height="1295" alt="Screenshot 2025-10-23 at 14 17 59" src="https://github.com/user-attachments/assets/cdd1a3ed-7420-4e55-8c1b-7aa77ba88175" /> #### With disabled "Auto-apply visualization changes" <img width="2560" height="1294" alt="Screenshot 2025-10-23 at 14 22 24" src="https://github.com/user-attachments/assets/631f46c4-8a83-411f-bc29-27df257eaeef" /> ### Checklist - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Issues Closes elastic#239719 ### Release Notes Moves the Lens visualization toolbar from the workspace section to the config panel. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…ic#239879) ## Summary Moves toolbar from workspace to config panel. #### After <img width="2560" height="1295" alt="Screenshot 2025-10-23 at 14 17 59" src="https://github.com/user-attachments/assets/cdd1a3ed-7420-4e55-8c1b-7aa77ba88175" /> #### With disabled "Auto-apply visualization changes" <img width="2560" height="1294" alt="Screenshot 2025-10-23 at 14 22 24" src="https://github.com/user-attachments/assets/631f46c4-8a83-411f-bc29-27df257eaeef" /> ### Checklist - [ ] [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 - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. ### Issues Closes elastic#239719 ### Release Notes Moves the Lens visualization toolbar from the workspace section to the config panel. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>




Summary
Moves toolbar from workspace to config panel.
After
With disabled "Auto-apply visualization changes"
Checklist
release_note:*label is applied per the guidelinesbackport:*labels.Issues
Closes #239719
Release Notes
Moves the Lens visualization toolbar from the workspace section to the config panel.