[Feature] Add conditional, paged, localized Form authoring and package fragments #3

Closed
opened 2026-08-01 16:38:30 +02:00 by zemion · 1 comment
Owner

Outcome

Deepen the immutable Forms definition owner with safe conditional/page composition, localization, accessibility metadata, and portable configuration-package fragments.

Acceptance criteria

  • Add versioned page/section definitions that reference declared field keys and preserve deterministic order.
  • Use a typed declarative condition language; never evaluate arbitrary Python or JavaScript. Validate references, operators, value types, and dependency cycles before publication.
  • Define and test required-field semantics for hidden fields, with the server remaining authoritative.
  • Add locale-keyed labels, descriptions, help text, choice labels, fallback locale, and missing-translation diagnostics without changing stable field/option keys.
  • Expose page, condition, localization, accessibility, preview, and revision-diff editing through shared WebUI components.
  • Export/import definitions as governed configuration-package fragments with exact revision/provenance and conflict assessment.
  • Preserve compatibility with existing one-page definitions and exact Forms Runtime resolution.
  • Update user/admin docs, recovery notes, module maturity limits, and backend/WebUI tests.

Reference: docs/FORMS_BOUNDARY.md and the product-depth section in the institutional governance target architecture.

## Outcome Deepen the immutable Forms definition owner with safe conditional/page composition, localization, accessibility metadata, and portable configuration-package fragments. ## Acceptance criteria - Add versioned page/section definitions that reference declared field keys and preserve deterministic order. - Use a typed declarative condition language; never evaluate arbitrary Python or JavaScript. Validate references, operators, value types, and dependency cycles before publication. - Define and test required-field semantics for hidden fields, with the server remaining authoritative. - Add locale-keyed labels, descriptions, help text, choice labels, fallback locale, and missing-translation diagnostics without changing stable field/option keys. - Expose page, condition, localization, accessibility, preview, and revision-diff editing through shared WebUI components. - Export/import definitions as governed configuration-package fragments with exact revision/provenance and conflict assessment. - Preserve compatibility with existing one-page definitions and exact Forms Runtime resolution. - Update user/admin docs, recovery notes, module maturity limits, and backend/WebUI tests. Reference: `docs/FORMS_BOUNDARY.md` and the product-depth section in the institutional governance target architecture.
Author
Owner

Codex State: done

Summary

  • Implemented immutable pages/sections, typed declarative conditions with reference/type/cycle validation, hidden-required semantics, locale fallbacks and diagnostics, accessibility metadata, revision diff/preview UI, and governed configuration-package import/export.
  • Pushed as GovOPlaN/govoplan-forms@e203364.

Changed Files

  • src/govoplan_forms/backend/service.py
  • webui/src/features/forms/FormDefinitionDialog.tsx
  • docs/FORMS_BOUNDARY.md

Verification

  • Forms backend suite passed (5 tests).
  • The 44-combination WebUI build matrix and full-product bundle budgets passed.
## Codex State: done ### Summary - Implemented immutable pages/sections, typed declarative conditions with reference/type/cycle validation, hidden-required semantics, locale fallbacks and diagnostics, accessibility metadata, revision diff/preview UI, and governed configuration-package import/export. - Pushed as GovOPlaN/govoplan-forms@e203364. ### Changed Files - `src/govoplan_forms/backend/service.py` - `webui/src/features/forms/FormDefinitionDialog.tsx` - `docs/FORMS_BOUNDARY.md` ### Verification - `Forms backend suite passed (5 tests).` - `The 44-combination WebUI build matrix and full-product bundle budgets passed.`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-forms#3