Skip to content

[Controls Anywhere] Fix Discover to Dashboard embeddable transfer service#242214

Merged
Heenawter merged 8 commits intoelastic:controlsAnywherefrom
Heenawter:controlsAnywhere-fix-embeddable-transfer_2025-11-06
Nov 12, 2025
Merged

[Controls Anywhere] Fix Discover to Dashboard embeddable transfer service#242214
Heenawter merged 8 commits intoelastic:controlsAnywherefrom
Heenawter:controlsAnywhere-fix-embeddable-transfer_2025-11-06

Conversation

@Heenawter
Copy link
Copy Markdown
Contributor

@Heenawter Heenawter commented Nov 6, 2025

Warning

This work is being merged into a feature branch, not main!
Because of this, we only need a review from @elastic/kibana-presentation for now.

Closes #241678

Summary

This PR ensures that saving the histogram from Discover to a Dashboard carries the controls with it.

Screen.Recording.2025-11-07.at.1.51.26.PM.mov

@Heenawter Heenawter added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort impact:critical This issue should be addressed immediately due to a critical level of impact on the product. Project:Controls labels Nov 6, 2025
Comment on lines +238 to +239
trackPanel.setScrollToPanelId(first.embeddableId);
trackPanel.setHighlightPanelId(first.embeddableId);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We used to highlight the last panel in the array because this was in the loop; however, if we are making the assumption that the first embeddable is the important one (and we are placing all other panels around it), I think it makes more sense to highlight that one instead.

Comment on lines +215 to +219
/**
* We can assume that all panels being sent as a single package are related; so,
* place them close together by grouping them around the first embeddable.
*/
beside: uuid === first.embeddableId ? undefined : first.embeddableId,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Previously, if you had a controls-sized gap in your Dashboard, the controls would try to fill those gaps - which means they would be separated from the main histogram chart. By using the beside like this, we prevent that.

@Heenawter Heenawter marked this pull request as ready for review November 7, 2025 21:26
@Heenawter Heenawter requested review from a team as code owners November 7, 2025 21:26
@Heenawter Heenawter removed the request for review from a team November 7, 2025 21:29
@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner November 7, 2025 22:57
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Nov 7, 2025

💔 Build Failed

Failed CI Steps

History

Copy link
Copy Markdown
Contributor

@Zacqary Zacqary left a comment

Choose a reason for hiding this comment

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

LGTM

@Heenawter Heenawter merged commit dba4091 into elastic:controlsAnywhere Nov 12, 2025
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort Project:Controls Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants