Move the UI components responsible for creating and editing actions into an importable KBN package outside of triggersActionsUI.
Right now, the Action Form is exported from the Triggers Actions UI plugin with the getActionForm function. Moving the UI components would be fairly straightforward, though there's quite a lot to move. Several components pull methods from the Triggers Actions UI lib and common folders, and these would all have to be moved or copied.
The more complicated problem is that they rely heavily on the actionTypeRegistry which has to be a part of the Triggers Actions UI plugin. Components in the Action Form hierarchy also make extensive use of useKibana services such as http and application capabilities. We'll need to require all of these to be passed in as props, or use some kind of a context wrapper.
Move the UI components responsible for creating and editing actions into an importable KBN package outside of triggersActionsUI.
Right now, the Action Form is exported from the Triggers Actions UI plugin with the
getActionForm
function. Moving the UI components would be fairly straightforward, though there's quite a lot to move. Several components pull methods from the Triggers Actions UIlib
andcommon
folders, and these would all have to be moved or copied.The more complicated problem is that they rely heavily on the
actionTypeRegistry
which has to be a part of the Triggers Actions UI plugin. Components in the Action Form hierarchy also make extensive use ofuseKibana
services such ashttp
and application capabilities. We'll need to require all of these to be passed in as props, or use some kind of a context wrapper.