Repository navigation
Yearly forms engine + VIS: editor, fill page, answers, checklist (#844) - #894
Merged
Merged
Conversation
Mew 2026-11-27/29: forms are authored in the app, each year independent, draft -> leadership review (preview) -> publish. - migration 032: op_forms (questions as JSON, one row per slug+year) and op_form_responses, both system-versioned with changed_by; FormEditor role - /forms list (admins), editor (SuperAdmin / FormEditor), fill page, answers page: per-question totals, filter by answer, CSV, tick people then Add role (never automatic) - question types: short/long answer, pick one, pick any, yes/no, 1-5, ranking, text-only block; "Other: ___" on pick one / pick any - every open form is a checklist item; answers editable until it closes; a new year's draft copies the latest earlier year's questions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mew: the people who edit forms are the ones who see the answers, for now. Pages are open to signed-in users and the API enforces FormEditor, so a FormEditor doesn't also need Admin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap item 10, first slice. Refs #844. Builds the shared form engine plus the VIS. Camping (#845), Ticketing (#846) and the Driver application reuse it next, with invite lists and decision screens.
Built to Mew's answers (2026-11-27 and 2026-11-29): forms are authored in the app; each year is independent; draft → leadership review → publish; everyone gets the VIS; ranking questions; answers can be changed until the form closes; a FormEditor role (Mew, Rescue, Chipper, Random), and that same group, not all admins, sees the answers; roles are assigned from the answers by a person, never automatically; no import of earlier years.
Migration 032
op_forms: one row per (slug, year), holding title, intro, questions (JSON),draft/published, andopens_at/closes_atin Pacific time.op_form_responses: one row per (form, volunteer), with answers (JSON) keyed by question id.changed_by(Roadmap: replace boolean add/remove/update/delete flags with timestamps + an SCD change log #620 / #620 part 2: record who made each change (changed_by) #878).FormEditorrole (2000044).Pages
Not in this PR
Tests
New
e2e/tests/39-forms.spec.tshas two tests:Locally, 39 plus 32 (row history / changed_by guard) and 38 pass.
🤖 Generated with Claude Code