Skip to content

Dynamic action configuration (A&E Phase II) #55341

@streamich

Description

@streamich

In drilldowns we will allow users to configure the dynamic actions they create. Configuration collection from user is responsibility of an action, as from embeddable's perspective those are just opaque objects—embeddable does not know the structure of configuration objects.

In this issue we need to implement functionality that allows to render UI component defined by the dynamic action to collect a configuration object for that action.

  • Create DynamicAction interface that extends Action interface.
  • DynamicAction should have CollectConfig attribute, which is a UiComponent component rendered every time we want to create or edit configuration for that dynamic action. CollectConfig should support the following props:
    • configobject or undefined which represents the initial configuration that ConfigInputs should display.
    • onConfig — a callback (config: object | undefined) => void that is called every time config is changed in UI by the user.
      • Should call with object only on valid config.
      • Calling with undefined means "remove config".
  • Create react component that can render CollectConfig of dynamic actions.

Example actions that will use this interface:

Parent issue: #43299

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions