- Compute a fingerprint unconditionally on every successful extraction
(not just the two failure paths), so a "Map" button on an already-
successful document can open the manual mapping screen to CORRECT it
via a real fingerprint, not just the auto-triggered failure flow.
- Extend forced-mapping support to OCR-sourced statements (scanned PDFs
and raw photos): raw_ocr_extract.py gains forced_zones/header_bottom/
date_format/value_patterns support and a new header_candidate_geometry
for OCR-derived fingerprinting; a forced OCR mapping bypasses Docling's
table-structure call entirely.
- Recognize parenthesized negative amounts ("(25.00)") via a shared
_split_sign() helper used by both _parse_money() and
_parse_money_with_patterns() - fixes a real blank-extraction bug on a
single-Amount-column statement using this accounting convention.
- Upscale a low-resolution image before OCR (_MIN_OCR_WIDTH_PX) - a real
480x800px phone photo was barely readable by tesserocr at native size.
- ManualMappingView.vue: no longer requires a Balance column (some real
statements don't print one), and imagePointScale converts a drawn
region's coordinates from an image's natural-pixel space into PDF
points before sending a forced mapping - every image-sourced mapping
before this sent zones in the wrong coordinate space entirely.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
A deliberate scope expansion past this product's original "does not
categorize transactions" boundary: project-scoped categorizationRules
(PocketBase), pure-JS matching (longest-pattern-wins, case-insensitive
substring), a Categorization tab beside Transactions, and an optional
"Categorized Summary" sheet in the Excel export. Categorization is
computed live from current rules and never persisted on the document
itself - only the rules persist.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The project sidebar was "not impressive" per direct feedback, pointed
at docs/sample_ui.png (a Cloudflare R2 dashboard) as the reference.
Adds AppHeader (brand + breadcrumb + account menu) and AppFooter, and
rebuilds ProjectSidebar into the reference's own left-nav pattern
(search box, icon-led list, bottom-anchored collapse-to-rail toggle).
ProjectSidebar moves from ExtractorView into App.vue's shell, since
it's account-wide chrome, not page-specific - same reasoning as the
new header/footer.
Every unicode-entity icon left over from the original vanilla-JS build
is replaced with a FontAwesome solid icon (installed as a real npm
dependency, not a CDN link, to keep the Docker build offline-
reproducible) - not just in the sidebar, across every button site-wide,
per the explicit ask. Color theme is untouched.
Verified: npm run build passes with the fonts bundled correctly; every
icon class used was grepped against the installed FontAwesome CSS and
confirmed to exist; the app container was rebuilt and curl-checked
end-to-end (bundle, CSS, and font asset all serve correctly, and the
new component/icon class names are present in the built JS). measure.py
re-run, unaffected. Not machine-verified: the actual rendered page -
Claude-in-Chrome did not connect this session, same as every prior UI
change in this project.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Bettersight Statement Extractor as of Phase 1 build: bank-agnostic pdfplumber
extraction, Docling cross-check, the 6+1 checks, Excel export, and the
minimal web UI - all built and working.
Adds the measurement harness (measure.py) from the plan's step 10: runs
every fixtures/*.pdf with a matching *_ground_truth.xlsx against the real
pipeline, diffs date/description/amount/balance per transaction, and logs
a dated JSON result under results/. Also adds hand-verified ground truth
for the HSBC Sep statement and a new RBC fixture (RBC-CAD-Aug26.pdf, sourced
from docs/) with its own hand-verified ground truth - RBC extraction now has
regression coverage it previously lacked.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>