appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Task]: Modularise Plugin Action Editor

Open hetunandu opened this issue 8 months ago • 6 comments

By combining the ApiEditor and QueryEditor components, we will create a new Plugin Action Editor component that would be composable and configurable to allow for use in all IDEs.

https://www.notion.so/appsmith/Modularisation-Plugin-Action-Editor-4b306360bad34d2fb2d80e32c08bc4cb?pvs=4

  • [ ] #36152
  • [ ] #36153
  • [ ] #36154
  • [ ] #36155

The end result of this modularisation would allow for a composition of Plugin actions as so:

const AppPluginActionEditor {
	return (
		<PluginActionProvider {...}>
			<PluginActionEditor>
				<AppPluginActionToolbar />
				<PluginActionForm />
				<AppPluginActionBottomView />
			</PluginActionEditor>
		<ActionProvider>
	)
}


const WorkflowPluginActionEditor {
	return (
		<PluginActionProvider {...}>
			<PluginActionEditor>
				<WorkflowPluginActionToolbar />
				<PluginActionForm />
				<WorkflowPluginActionBottomView />
			</PluginActionEditor>
		<ActionProvider>
	)
}


const ModulePluginActionEditor {
	return (
		<PluginActionProvider {...}>
			<PluginActionEditor>
				<ModulePluginActionToolbar />
				<PluginActionForm />
				<PluginInputs />
				<ModulePluginActionBottomView />
			</PluginActionEditor>
		<ActionProvider>
	)
}

hetunandu avatar Jun 19 '24 05:06 hetunandu