Skip to content

Action Flows: implement INPUT/DIALOG/REDIRECT/CALL/CUSTOM step renderers on the Vue side #81

Description

@marioserrano09

Summary

Part of #79.

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.

References

  • platform/packages/vue/src/actions/runActionFlow.ts
  • docs/design/SERVER_DRIVEN_ACTION_FLOWS.md §3, §6, §9

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions