[controls] lazy load control actions#206876
Conversation
|
/ci |
|
@elasticmachine merge upstream |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
andreadelrio
left a comment
There was a problem hiding this comment.
Sass file moved. LGTM.
|
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
References to deprecated APIs
History
|
ThomThomson
left a comment
There was a problem hiding this comment.
Great PR! It reduces both the async and plugin bundle size for the controls plugin, and everything is downloaded in a single chunk which is a great detail!
| }; | ||
|
|
||
| export const PANEL_HOVER_TRIGGER = 'PANEL_HOVER_TRIGGER'; | ||
| export const panelHoverTrigger: Trigger = { |
There was a problem hiding this comment.
Great to see this moved & renamed.
| } | ||
|
|
||
| public async execute({ embeddable }: EmbeddableApiContext) { | ||
| const { compatibilityCheck } = await import('./clear_control_action_compatibility_check'); |
There was a problem hiding this comment.
So much better for developer experience to have this defined in the same file.
There was a problem hiding this comment.
I bet we could reduce the bundle size further by converting this to emotion!
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12875594111 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[controls] lazy load control actions (#206876)](#206876) <!--- Backport version: 9.6.4 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-01-20T21:00:48Z","message":"[controls] lazy load control actions (#206876)\n\n* register control actions with async method\r\n* move floating actions into controls plugin\r\n* replace `PANEL_HOVER_TRIGGER` => `CONTROL_HOVER_TRIGGER`\r\n* Load controls in single chunk\r\n<img width=\"400\" alt=\"Screenshot 2025-01-16 at 11 40 08 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/3171c9bf-26bc-4c07-950d-c35603cfb65a\"\r\n/>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"f4df5856f249552f01ccb020a3ffd90c1517b71d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Embedding","Team:Presentation","release_note:skip","v9.0.0","project:embeddableRebuild","backport:version","v8.18.0"],"title":"[controls] lazy load control actions","number":206876,"url":"https://github.com/elastic/kibana/pull/206876","mergeCommit":{"message":"[controls] lazy load control actions (#206876)\n\n* register control actions with async method\r\n* move floating actions into controls plugin\r\n* replace `PANEL_HOVER_TRIGGER` => `CONTROL_HOVER_TRIGGER`\r\n* Load controls in single chunk\r\n<img width=\"400\" alt=\"Screenshot 2025-01-16 at 11 40 08 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/3171c9bf-26bc-4c07-950d-c35603cfb65a\"\r\n/>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"f4df5856f249552f01ccb020a3ffd90c1517b71d"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206876","number":206876,"mergeCommit":{"message":"[controls] lazy load control actions (#206876)\n\n* register control actions with async method\r\n* move floating actions into controls plugin\r\n* replace `PANEL_HOVER_TRIGGER` => `CONTROL_HOVER_TRIGGER`\r\n* Load controls in single chunk\r\n<img width=\"400\" alt=\"Screenshot 2025-01-16 at 11 40 08 AM\"\r\nsrc=\"https://github.com/user-attachments/assets/3171c9bf-26bc-4c07-950d-c35603cfb65a\"\r\n/>\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"f4df5856f249552f01ccb020a3ffd90c1517b71d"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
* register control actions with async method * move floating actions into controls plugin * replace `PANEL_HOVER_TRIGGER` => `CONTROL_HOVER_TRIGGER` * Load controls in single chunk <img width="400" alt="Screenshot 2025-01-16 at 11 40 08 AM" src="https://github.com/user-attachments/assets/3171c9bf-26bc-4c07-950d-c35603cfb65a" /> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
PANEL_HOVER_TRIGGER=>CONTROL_HOVER_TRIGGER