forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[controls] lazy load control actions (elastic#206876)
* 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>
- Loading branch information
Showing
35 changed files
with
203 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
...atform/plugins/shared/controls/public/actions/clear_control_action_compatibility_check.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
src/platform/plugins/shared/controls/public/actions/controls_hover_trigger.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
import { Trigger } from '@kbn/ui-actions-plugin/public'; | ||
|
||
export const CONTROL_HOVER_TRIGGER = 'CONTROL_HOVER_TRIGGER'; | ||
export const controlHoverTrigger: Trigger = { | ||
id: CONTROL_HOVER_TRIGGER, | ||
title: i18n.translate('controls.hoverTrigger.title', { | ||
defaultMessage: 'Control hover', | ||
}), | ||
description: i18n.translate('controls.hoverTrigger.description', { | ||
defaultMessage: "Add action to controls's hover menu", | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
...tform/plugins/shared/controls/public/actions/delete_control_action_compatibility_check.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
...latform/plugins/shared/controls/public/actions/edit_control_action_compatibility_check.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.