hsa-app/internal/web
Jean-Michel Tremblay 04d6e8177d Add receipt attachments captured at upload time (spec item 10)
- New attachments table (FK to receipts), dual-write: file on disk + DB blob.
- On-disk layout split: receipts under <ROOT>/receipts/<YYYY>/..., attachments
  under <ROOT>/attachments/<YYYY>/..., attachments named from the parent
  receipt's date+amount stem (_att, _att_1, ...).
- Upload form gains an optional multi-file "Additional files" field; the files
  ride along with POST /upload, saved after the receipt row exists. No AI runs
  on attachments; primary-image auto-fill unchanged.
- GET /attachment/{id}/file serves blobs; confirm page lists them; recent list
  links them. Adding attachments to an already-saved receipt is not yet supported.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 07:06:15 -04:00
..
static Add AI auto-fill, tally, recent views, and cheaper-by-default classification 2026-06-18 22:04:42 -04:00
templates Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
export.go Initial commit: HSA receipt tracker 2026-06-17 21:40:12 -04:00
manage.go Initial commit: HSA receipt tracker 2026-06-17 21:40:12 -04:00
manage_test.go Initial commit: HSA receipt tracker 2026-06-17 21:40:12 -04:00
middleware.go Initial commit: HSA receipt tracker 2026-06-17 21:40:12 -04:00
scan.go Add AI auto-fill, tally, recent views, and cheaper-by-default classification 2026-06-18 22:04:42 -04:00
templates.go Add AI auto-fill, tally, recent views, and cheaper-by-default classification 2026-06-18 22:04:42 -04:00
upload.go Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
upload_test.go Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
views.go Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
views_test.go Add AI auto-fill, tally, recent views, and cheaper-by-default classification 2026-06-18 22:04:42 -04:00
web.go Add receipt attachments captured at upload time (spec item 10) 2026-06-19 07:06:15 -04:00
web_test.go Initial commit: HSA receipt tracker 2026-06-17 21:40:12 -04:00