Skip to content

Add site forms UI: layout editor, approval queue, variant-aware capture#91

Merged
tgerke merged 1 commit into
mainfrom
phase-8/site-forms-ui
Jul 18, 2026
Merged

Add site forms UI: layout editor, approval queue, variant-aware capture#91
tgerke merged 1 commit into
mainfrom
phase-8/site-forms-ui

Conversation

@tgerke

@tgerke tgerke commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Stack position: 7/8 (BYOFW half B).

  • SiteFormsPage: a site coordinator starts a layout as a copy of the sponsor's standard forms and adapts it — reorder items, rename forms, relabel questions in clinic wording — with a live data-equivalence panel driven by the server validator. Drafts save as append-only versions and submit only when equivalent. Once approved, a capture launcher opens variant form instances for the site's subjects.
  • ApprovalQueuePage: submitted layouts with the machine-checked equivalence badge and per-event item summaries; approve / request changes with notes.
  • FormEntryPage renders V.* instances through resolveVariantForm and keys every write on the item's canonical build group, so captured values are byte-identical in shape to standard-form sites. The subject matrix response now carries siteId per subject for the launcher; the matrix itself deliberately stays on the standard layout as the oversight view.

Verified end-to-end across roles on the dev stack: coordinator seeds, reorders, saves, and submits; data manager approves with a note; coordinator captures through the site layout; values verified canonical in item_value_versions.

SiteFormsPage lets a site coordinator start a layout as a copy of the
sponsor's standard forms and adapt it — reorder items, rename forms,
relabel questions in clinic wording — with a live data-equivalence
panel driven by the server validator; drafts save as append-only
versions and submit for approval only when equivalent. Once approved,
a capture launcher opens variant form instances for the site's
subjects. ApprovalQueuePage gives the sponsor the submitted layouts
with an equivalence badge and per-event item summaries, plus
approve/request-changes decisions with notes.

FormEntryPage renders V.* instances through resolveVariantForm and
keys every write on the item's canonical build group, so captured
values are byte-identical in shape to standard-form sites (verified
in the dev stack: variant capture for DEMO-002 landed under
FO.VITAL_SIGNS canonical OIDs while pinned to the approved variant).
The subject matrix response now carries siteId per subject for the
launcher.

Verified end-to-end across roles: coordinator seeds, reorders, saves,
and submits; data manager approves with a note; coordinator captures
through the site layout; values verified canonical in
item_value_versions.
@tgerke
tgerke merged commit 8dfc73e into main Jul 18, 2026
1 check passed
@tgerke
tgerke deleted the phase-8/site-forms-ui branch July 18, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant