Skip to content

[Controls Anywhere] Pin and unpin controls#238142

Merged
Heenawter merged 7 commits intoelastic:controlsAnywherefrom
Heenawter:pin-control-action_2025-10-08
Oct 14, 2025
Merged

[Controls Anywhere] Pin and unpin controls#238142
Heenawter merged 7 commits intoelastic:controlsAnywherefrom
Heenawter:pin-control-action_2025-10-08

Conversation

@Heenawter
Copy link
Copy Markdown
Contributor

@Heenawter Heenawter commented Oct 8, 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.

Type failures are expected because the feature branch is currently in an incomplete state, where the controls that have not yet been converted (time slider, etc.) are dependent on things that no longer exist.

Closes #221574

Summary

This PR adds an action to pin and unpin control panels.

Screen.Recording.2025-10-14.at.12.58.38.PM.mov

Important

Notice that width and grow are lost on the unpin action - this is expected. These values can be configured again once #234681 is complete.

Checklist

@Heenawter Heenawter force-pushed the pin-control-action_2025-10-08 branch from 38eba99 to 05125bd Compare October 8, 2025 21:43
@Heenawter Heenawter force-pushed the pin-control-action_2025-10-08 branch from 05125bd to 6892729 Compare October 9, 2025 19:21
});

for (let y = targetPanel?.gridData.y ?? 0; y < maxY; y++) {
for (let y = targetPanel?.grid.y ?? 0; y < maxY; y++) {
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.

This is a type fix since we switch gridData to grid on main

@Heenawter Heenawter self-assigned this Oct 14, 2025
@Heenawter Heenawter added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// loe:small Small Level of Effort impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. labels Oct 14, 2025
@Heenawter Heenawter marked this pull request as ready for review October 14, 2025 19:01
@Heenawter Heenawter requested a review from a team as a code owner October 14, 2025 19:01
@Heenawter Heenawter requested a review from Zacqary October 14, 2025 19:09
… src/core/server/integration_tests/ci_checks'
@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner October 14, 2025 19:20
@botelastic botelastic bot added the Feature:Embedding Embedding content via iFrame label Oct 14, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Oct 14, 2025

💔 Build Failed

Failed CI Steps

History

cc @Heenawter

Copy link
Copy Markdown
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Code is looking great! Nice simple action definition, interfaces and type guards. Great unit tests

delete newControls[uuid];
// adjust the order of the remaining controls
for (const controlId of Object.keys(newControls)) {
if (newControls[controlId].order > originalOrder) newControls[controlId].order--;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, great to retain order here!

@Heenawter Heenawter merged commit 57c76ad into elastic:controlsAnywhere Oct 14, 2025
13 of 15 checks passed
@Heenawter Heenawter deleted the pin-control-action_2025-10-08 branch October 14, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Embedding Embedding content via iFrame impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. loe:small Small Level of Effort 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