Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Embeddables Rebuild] Clean up Add panel #180057

Open
Tracked by #167429
ThomThomson opened this issue Apr 4, 2024 · 4 comments
Open
Tracked by #167429

[Embeddables Rebuild] Clean up Add panel #180057

ThomThomson opened this issue Apr 4, 2024 · 4 comments
Labels
Feature:Embeddables Relating to the Embeddable system impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. project:embeddableRebuild Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@ThomThomson
Copy link
Contributor

ThomThomson commented Apr 4, 2024

Cleanup

Blocked on #180059

Once we remove the legacy embeddable framework we should clean up the Dashboard add panel menu.

Goals:

  • The add panel menu should no longer use legacy embeddable factories
  • The add panel menu should no longer use vis aliases
  • All entries in the add panel menu should come from the appropriate trigger ADD_PANEL_TRIGGER
  • We should remove all grouping / rendering code from src/plugins/dashboard/public/dashboard_app/top_nav/editor_menu.tsx and move it into src/plugins/ui_actions/public. This way all actions can have the same render code. This can potentially be a sibling to /context_menu/build_eui_context_menu_panels.tsx, but will instead build some sort of list that can be used in a flyout to respect the designs from [Dashboard] Redesign Add Panel Experience #144418
@ThomThomson ThomThomson added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Feature:Embeddables Relating to the Embeddable system labels Apr 4, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@ThomThomson ThomThomson added impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. and removed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Apr 4, 2024
@cqliu1
Copy link
Contributor

cqliu1 commented Apr 4, 2024

  • We should remove all grouping / rendering code from src/plugins/dashboard/public/dashboard_app/top_nav/editor_menu.tsx and move it into src/plugins/ui_actions/public/context_menu/build_eui_context_menu_panels.tsx. This way all actions can have the same

Since we're switching from a context menu to a flyout layout for the add panel workflow (see #144418), we likely won't need to move to using build_eui_context_menu_panels.

@ThomThomson
Copy link
Contributor Author

Good call @cqliu1 I hadn't considered this. I'll update the issue description.

I wonder if we can still move the code into the ui_actions plugin and have some sort of sibling method that respects the groupings (perhaps with accordions?) and creates a list.

IMO the code for transforming actions into usable EUI components belongs with the ui_actions plugin.

@nreese nreese added loe:medium Medium Level of Effort and removed loe:small Small Level of Effort loe:medium Medium Level of Effort labels Dec 4, 2024
@nreese
Copy link
Contributor

nreese commented Dec 4, 2024

Changing LOE to large since this will require creating a new action for each visAlias registry type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Embeddables Relating to the Embeddable system impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. project:embeddableRebuild Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

4 participants