bettersight-statement-extra.../pocketbase
JasonFraser 99dc3d8bb4 Per-document mapping queue + persisted pending-mapping statements
A needs-mapping statement in a multi-file batch used to live in a
single global slot (layoutMapperStore), so mapping the first of several
such statements silently lost the rest. Each one is now a placeholder
document in extractionStore's own documents list (with a pendingMapping
field carrying its file/fingerprint/candidate data), reachable via
DocumentNavBar and a per-document "Map now" reminder in TransactionsTable,
with a clickable notice banner linking straight to each queued statement.

Also makes this survive a reload: a needs-mapping placeholder is now
saved to PocketBase (documentsService.savePendingMappingDocument,
pb_migrations/12 relaxes documents.result to optional and adds the
pending* fields) instead of living only in memory, and useDocuments.js
reconstructs it as a placeholder on load. Includes the confirm-before-
remapping step for correcting an already-successful document, and the
delete-flow guard for a placeholder with no PocketBase id yet.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-24 08:15:45 -04:00
..
pb_hooks Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
pb_migrations Per-document mapping queue + persisted pending-mapping statements 2026-11-24 08:15:45 -04:00
Dockerfile Add PocketBase: accounts (password + Google) + schema for R2-backed docs 2026-10-13 00:26:41 -04:00
configure-secrets.sh Add PocketBase: accounts (password + Google) + schema for R2-backed docs 2026-10-13 00:26:41 -04:00