Skip to content

Show the form's question and fill source on statements - #38

Merged
firegiant9000 merged 4 commits into
feat/fill-recordsfrom
records/pr3-display
Nov 21, 2026
Merged

firegiant9000 merged 4 commits into
feat/fill-recordsfrom
records/pr3-display

Conversation

@firegiant9000

Copy link
Copy Markdown
Owner

PR 3 of 3 for fill records (roadmap item 3): the display side. Statements recorded by a fill now show where they came from.

What changes

  • Interview pack data (core/src/pack.ts): PackStatement gains question?: string and fromFill: boolean. fromFill is true only when source === 'fill'. question is set only when it is a string with non-blank text, so odd restored data never shows.
  • Application page and pack (shell/ui/StatementsSection.tsx, shell/ui/PackPage.tsx): a statement with a question shows "They asked: {question}" under the answer label. One recorded by a fill shows a quiet "From a fill" fact. Both views apply the same rules. Lists stay keyed by statement id, so two statements with the same answer key render side by side. Mismatch warnings are unchanged.
  • Docs: the README "Fill a form" and "Fill log" bullets, and the record types and data flow in docs/ARCHITECTURE.md. "You enter it by hand." is gone from the Fill log bullet, because a fill now sets the site type when it is empty.

No schema bump, no new permissions, no changes to shell/fill/** or the fill guards.

Checks

  • Gate passes: 1924 unit tests (1923 before this PR), 18 build tests, ESLint 0, web-ext 0 errors / 2 warnings.
  • Shots taken, day and night. The shots' seed data has no statements recorded by a fill, so the new lines do not appear in them. The application page and pack render as before. The lines will first be visible in the hand check after a real fill.
  • shell/ui has no render tests, so the two new lines are reviewed, not unit-tested. The data behind them is covered in core/src/pack.test.ts.

@firegiant9000
firegiant9000 merged commit a16bc4b into feat/fill-records Nov 21, 2026
1 check passed
@firegiant9000
firegiant9000 deleted the records/pr3-display branch November 22, 2026 00:27
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