Plan: Typst Form-Building Components (Issue #405)

Status

Step Description Status

1

Audit rulesets/georgia/notices/components/ for the four components named in #405 (checkbox-grid.typ, data-table.typ, field-row.typ, conditional-section.typ). Three of four ship today (checkbox-grid.typ:1-33 exporting checkbox + yes-no-question; data-table.typ:1-50 exporting blank-data-table; field-row.typ:1-53 exporting field-row, field-pair, field-triple, filled-field). conditional-section.typ does not exist.

Done (2026-05-11) — N/A: three of four components already shipped (likely as part of the typst-document-generation plan, archived).

2

Audit usage. First-consumer requirement per #405 acceptance was "SNAP recertification form" — that template ships at rulesets/georgia/notices/snap/renewal-form.typ (135 LOC) and imports checkbox + yes-no-question from checkbox-grid, blank-data-table from data-table, and field-row + field-pair + field-triple + filled-field from field-row.

Done (2026-05-11) — N/A: first consumer ships and consumes the three live components.

3

Resolve the conditional-section.typ question. Audit confirms Typst’s native #if directive already serves this use case — 4 SNAP templates use it today (noa-approval.typ:70, abawd-warning.typ:56,91, verification-checklist.typ:57). A shared conditional-section.typ wrapper around #if would add an abstraction layer without adding behavior. Skip the wrapper; rely on native #if.

Done (2026-05-11) — N/A: native Typst #if is the canonical pattern for conditional rendering in this codebase; no separate component needed.

4

File the manifest form_number mislabeling as a separate issue. manifest.toml:17 labels noa-approval as DHS-297-A, but PAMMS Form 297-A is "Rights and Responsibilities" (intake signature page), not a NOA. Several other entries (DHS-297-D, DHS-ABAWD, DHS-EXP, DHS-EXPG) appear synthesized rather than verified against the authoritative Georgia DHS form catalog. Out of scope here — this plan was about components, not labelling.

Done (2026-05-11) — issue filed; closure note on #405 references it.

5

Close #405 with note pointing at this plan’s audit + the new manifest-form_number issue. Move this plan to plans/archive/ per ADR-013.

Done (2026-05-11) — closure note + plan archived.

Issue: #405
Branch: chore/plan-refresh-mr-3-special-cases (audit landed in the Tier B plan-refresh pass)
Labels: type::chore, priority::low, service::notices, program::snap, workflow::ready

Context

#405 was filed against the typst-document-generation plan’s "Potential Improvements" list, naming four reusable form-building components and identifying the SNAP recertification form as the first consumer. The Tier B plan-refresh pass (2026-05-11) audited the repo and found:

  1. Three of the four components already ship in rulesets/georgia/notices/components/.

  2. The fourth (conditional-section.typ) is unnecessary — Typst’s native #if is the canonical conditional-rendering pattern in this codebase, used in 4 SNAP templates today.

  3. The first-consumer requirement is satisfied — snap/renewal-form.typ (135 LOC) ships against the three live components.

The original plan file rewrote #405’s scope as "Build the Form DHS-297-A SNAP NOA-approval Typst template" — a misframing that conflated three independent concerns: (a) form-building components (the actual issue), (b) the SNAP NOA approval template (already shipped at snap/noa-approval.typ), (c) the PAMMS Form 297-A "Rights and Responsibilities" signature page (a separate document, not a NOA). This rewrite collapses the original plan to an audit log + closure note.

Code references

  • rulesets/georgia/notices/components/checkbox-grid.typ:1-33 — exports checkbox, yes-no-question.

  • rulesets/georgia/notices/components/data-table.typ:1-50 — exports blank-data-table.

  • rulesets/georgia/notices/components/field-row.typ:1-53 — exports field-row, field-pair, field-triple, filled-field.

  • rulesets/georgia/notices/snap/renewal-form.typ:1-135 — first consumer (imports three of three components).

  • rulesets/georgia/notices/snap/noa-approval.typ:70 — native #if pattern (one of 4 templates using it).

  • rulesets/georgia/notices/manifest.toml:17 — mislabeled form_number = "DHS-297-A" on noa-approval (Form 297-A is a different document per PAMMS).

  • Archived: typst-document-generation.adoc — predecessor plan that shipped the component library.

Scope

In scope:

  • Verify the named components ship.

  • Verify the first consumer compiles against them.

  • Decide whether conditional-section.typ is worth shipping (decision: no).

  • File the manifest form_number mislabeling as a separate issue.

  • Close #405.

  • Archive this plan.

Out of scope:

  • conditional-section.typ itself (resolved: not needed).

  • Manifest form_number audit across all templates (filed as separate issue).

  • Building the actual PAMMS Form 297-A "Rights and Responsibilities" signature page (separate work, if needed).

  • Per-jurisdiction template variants.

Dependencies

None — this is an audit + closure plan.

Design

No code changes. The plan’s value is the audit trail explaining why #405 closes without code shipping under this specific issue number. The underlying work (3 components + first consumer + native #if for conditional rendering) shipped earlier and was tracked under the typst-document-generation plan.

Files Touched

File Change

docs/modules/ROOT/pages/plans/typst-form-components-form-297.adoc

This file — rewritten as audit log; will move to plans/archive/ post-merge.

CHANGELOG.adoc

=== Changed entry under == Unreleased noting the audit finding and #405 closure.

Verification

  1. cargo xtask docs plan-lint clean.

  2. cargo xtask docs plan-archive moves this file to plans/archive/ automatically (all rows Done/N/A).

  3. #405 closed on GitLab with a comment referencing this plan + the new manifest-form_number issue.

  4. Existing tests pass — no code changed.

Documentation Updates

  • CHANGELOG.adoc — === Changed entry covering the audit

  • #405 closure note posted

  • Manifest-form_number mislabeling filed as a separate issue

  • Plan moved to plans/archive/ via cargo xtask docs plan-archive

Edit this page · default