bettersight-statement-extra.../pocketbase/pb_migrations
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
..
1_create_collections.js
…
2_add_timestamps.js
…
3_add_export_file.js
…
4_add_layout_mapper_schema.js Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
5_add_layout_mapping_fields.js Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
6_fix_layout_mapping_update_rule.js Add PocketBase schema for the layout mapper (L.3) 2026-10-14 15:34:43 -04:00
7_add_layout_mapping_start_page.js Add the Layouts page, drift detection on every recheck, and fix two real persistence bugs (L.7) 2026-10-15 05:03:20 -04:00
8_add_layout_mapping_header_bottom.js Add the Layouts page, drift detection on every recheck, and fix two real persistence bugs (L.7) 2026-10-15 05:03:20 -04:00
9_add_layout_mapping_value_patterns.js Add valuePatterns field; relax columnMap to optional for value-pattern-only mappings 2026-10-30 19:10:01 -04:00
10_relax_layout_mapping_column_map_required.js Add valuePatterns field; relax columnMap to optional for value-pattern-only mappings 2026-10-30 19:10:01 -04:00
11_add_categorization_rules.js Add transaction categorization (project-scoped, client-side rules) 2026-11-24 08:15:20 -04:00
12_add_pending_mapping_fields.js Per-document mapping queue + persisted pending-mapping statements 2026-11-24 08:15:45 -04:00