Status: ✅ Complete (All Phases)
Spec: FW-05-multi-page-forms.md
Last Updated: 2026-03-17
Overview
FW-05 adds multi-page form support (page structure, progress tracking, save draft, conditional pages) to the Forms & Workflow core. It consumes Platform Foundation and existing FW form/submission capabilities; it does not publish new event or API contracts.Integration Points (from Spec)
Platform Integration Layer Usage
- PF-08 (Forms):
@/platform/forms— form definition (withsettings.pages), form renderer (multi-page UI), submission/draft save. No new contracts; extends existing form schema and submission payload.
Consumer Core Dependencies (Downstream)
- RH (Recovery Housing): Multi-page intake forms
- HR (Workforce): Multi-page onboarding forms
- GR (Governance): Multi-page compliance forms
Security and Tenant Isolation
- Drafts and form definitions scoped by
organization_idvia existing RLS onfw_formsandfw_form_submissions. - UPDATE policies on
fw_form_submissionsmust includeWITH CHECKsoorganization_id(and tenant context) cannot be changed. - Draft access: user’s own drafts via
submitted_by = auth.uid(); org admin read-only for org drafts.