bettersight-statement-extra.../pocketbase/pb_migrations
JasonFraser 8a99254d28 Add QBO/Xero/CSV exports, consolidated Download dropdown, per-row exclude checkbox
Three new export formats, all reusing this pipeline's existing
transactions data with no new extraction logic:
- QBO (QuickBooks Web Connect / Quicken): qbo_service.py writes OFX 1.x
  SGML directly, including <INTU.BID>3000 so it actually qualifies as a
  real QBO/QFX file (corrected same day from an initial build that
  produced plain generic OFX with a .qbo extension slapped on - see
  CLAUDE.md for the research trail). Needs a reusable, project-scoped
  bankAccountProfiles record (pb_migrations/14) so a user isn't re-typing
  routing/account numbers on every export of the same real account.
- Xero (import CSV): xero_csv_service.py, no bank-account concept at all
  (Xero's own CSV import has none) - genuinely simpler than QBO.
- A plain, generic transactions CSV (csv_service.py) - distinct from
  Xero's import-specific shape, writes every row regardless of a missing
  date/amount since a plain dump has no structural requirement to violate.

The three original separate download buttons were consolidated into one
Download trigger + hover dropdown (QuickBooks/Xero/CSV/Excel), reusing
the Results dropdown's own zero-dead-zone hover structure. Excel's and
the new CSV's single/all download logic was generalized behind one
DOWNLOAD_FORMATS lookup rather than duplicated.

Also adds a per-transaction "include in downloads" checkbox - a lighter,
reversible alternative to permanently deleting a row: excludedFromExport
lives on the document's own result, read only at download time, with
zero effect on the live review screen's own data/checks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-24 08:16:17 -04:00
..
1_create_collections.js Add PocketBase: accounts (password + Google) + schema for R2-backed docs 2026-10-13 00:26:41 -04:00
2_add_timestamps.js Move document persistence from localStorage to PocketBase (Stage B.2) 2026-10-13 06:41:51 -04:00
3_add_export_file.js Move Excel exports to R2; remove dead per-extraction workbook generation 2026-10-13 07:13:20 -04:00
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
13_add_usage_events.js Add usage tracking foundation: usageEvents + a visible pages-counter 2026-11-24 08:16:01 -04:00
14_add_bank_account_profiles.js Add QBO/Xero/CSV exports, consolidated Download dropdown, per-row exclude checkbox 2026-11-24 08:16:17 -04:00