Skip to content

feat: friendlier template-creation UI#500

Merged
marcvergees merged 5 commits into
mainfrom
feature/template-ui-friendly
May 20, 2026
Merged

feat: friendlier template-creation UI#500
marcvergees merged 5 commits into
mainfrom
feature/template-ui-friendly

Conversation

@vharkins1
Copy link
Copy Markdown
Collaborator

@vharkins1 vharkins1 commented May 20, 2026

  • Replace raw Fields JSON textarea with a row-based field builder (per-row description + friendly type dropdown, add/delete, drag-reorder)
  • Make commonforms opt-in via an explicit "Make this PDF fillable" button instead of always running it on upload
  • Show a live field-count badge that flags mismatches between PDF widgets and the rows being built
  • Append field type as a hint to the LLM prompt
  • Untrack sample PDFs in src/inputs (now covered by .gitignore)

vharkins1 and others added 5 commits May 19, 2026 22:17
- Replace raw Fields JSON textarea with a row-based field builder
  (per-row description + friendly type dropdown, add/delete, drag-reorder)
- Make commonforms opt-in via an explicit "Make this PDF fillable" button
  instead of always running it on upload
- Show a live field-count badge that flags mismatches between PDF widgets
  and the rows being built
- Append field type as a hint to the LLM prompt
- Untrack sample PDFs in src/inputs (now covered by .gitignore)
- Add CLAUDE.md

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Plain /templates/create no longer runs commonforms; it only persists the
row. commonforms now runs via the separate /make-fillable endpoint, so the
test asserts the controller is not called on create.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Upload now extracts the PDF's fillable widgets in the same visual order the
filler writes them, using each field's tooltip (or a humanized field name) as
the description and mapping the widget type to the builder's type. The field
builder is prefilled from this, but never overwrites rows the user has already
started. Counting now derives from the same extraction so the badge, the
create-time mismatch check, and seeding all agree.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Compound selector ensures .hidden overrides the badge's display rule,
which previously won on source order and showed an empty pill.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@marcvergees marcvergees merged commit 100b62f into main May 20, 2026
3 checks passed
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.

2 participants