You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runActionFlow (platform/packages/vue/src/actions/runActionFlow.ts) only renders CONFIRM and NOTIFY flow steps. INPUT, DIALOG, REDIRECT, CALL, and CUSTOM all hit:
throw new Error(`runActionFlow: no renderer wired yet for flow step type "${step.type}"`);
Problem
Any FlowRemoteAction that returns one of these step types fails hard on the Vue side today. This is real missing functionality, not just an unimplemented "future work" note — §1's core motivating scenarios (multi-step wizards, "pick one of three", entity-editing dialogs) need DIALOG/INPUT at minimum.
Proposed work
INPUT: a prompt primitive (composable + component), same shape as useConfirm.
DIALOG: render step.viewDescriptor as a <DynamiaForm> inside <DynamiaDialog>, collect and submit the whole form as the answer — this is the one explicitly called out in the design doc as reusing the existing YAML view-descriptor system (§2 constraint: "no new form-description language").
REDIRECT/CALL: pin down the semantics first (see Server-Driven Action Flows for RemoteAction #79's tracked open question — does the client resume the same flow after a redirect/nested call, or are these always terminal?) before implementing the renderer.
CUSTOM: a client-registered step-renderer registry, parallel to the existing ClientActionRegistry (platform/packages/ui-core/src/actions/ClientAction.ts), keyed by data.component.
Summary
Part of #79.
runActionFlow(platform/packages/vue/src/actions/runActionFlow.ts) only rendersCONFIRMandNOTIFYflow steps.INPUT,DIALOG,REDIRECT,CALL, andCUSTOMall hit:Problem
Any
FlowRemoteActionthat returns one of these step types fails hard on the Vue side today. This is real missing functionality, not just an unimplemented "future work" note — §1's core motivating scenarios (multi-step wizards, "pick one of three", entity-editing dialogs) needDIALOG/INPUTat minimum.Proposed work
INPUT: a prompt primitive (composable + component), same shape asuseConfirm.DIALOG: renderstep.viewDescriptoras a<DynamiaForm>inside<DynamiaDialog>, collect and submit the whole form as the answer — this is the one explicitly called out in the design doc as reusing the existing YAML view-descriptor system (§2 constraint: "no new form-description language").REDIRECT/CALL: pin down the semantics first (see Server-Driven Action Flows for RemoteAction #79's tracked open question — does the client resume the same flow after a redirect/nested call, or are these always terminal?) before implementing the renderer.CUSTOM: a client-registered step-renderer registry, parallel to the existingClientActionRegistry(platform/packages/ui-core/src/actions/ClientAction.ts), keyed bydata.component.References
platform/packages/vue/src/actions/runActionFlow.tsdocs/design/SERVER_DRIVEN_ACTION_FLOWS.md§3, §6, §9