- scripts/build_reconciliation.py: normalizes the existing SII-RCV cross-
reference CSV (Muralla/Murallita, 519 DTEs) into web/reconciliation.json
with per-status / per-company / per-payer summaries.
- web/reconciliation.html: standalone reconciliation view in the money-trace
aesthetic — KPIs (facturado, asignado, pendiente, IVA), breakdown bars,
and a searchable/sortable table of every factura with its linked payment,
who paid, source of funds, and confidence. Reuses logos.js for providers.
- dashboard.html: header link to the reconciliation view.
State: $15.6M facturado · 168 asignado ($6.1M) · 315 pendiente ($9.2M).
- charts.js: monthlyBars + lineChart take an optional labelFn so axis and
tooltip labels can render period (year / 5-year) keys instead of months.
- dashboard.js: period helpers (periodKey/periodKeys/sumByPeriod) bucket the
Overview (income vs spending bars + cumulative net line), Spending, and
Income time-series by the selected granularity. Calendar 5-year buckets
(2015-2019, 2020-2024, 2025-2029). Choice persists in localStorage.
- dashboard.html: Month/Year/5-Year segmented control in the header.
With 7+ years of backfill, monthly bars hit 108 columns; Year collapses to
9 and 5-Year to 3 readable buckets.
- web/logos.js: high-precision alias map (description regex -> brand domain)
feeding the Brandfetch logo CDN; only attaches a logo when a merchant
confidently maps to a known brand, else a coloured-initial fallback.
- Logos rendered in: top-merchants list, category breakdown rows, ledger.
- scripts/resolve-logos.mjs: offline resolver (alias + Brandfetch search) that
measures coverage and writes merchant-logos.json. Current: 33 brands cover
~35% of expense txns (Uber, MercadoPago, Apple, Rappi, Santa Isabel, Copec,
etc.); the long tail is local businesses with no brand -> fallback.
- Client ID is public (CDN); no secret key in the repo.
- web/dashboard.html: overview dashboard with KPI cards, type breakdown
bars, entity list with accounts, movements table with filters, and a
slide-in origin/destination tree panel for any movement
- src/server.js: serve web/ as static files (GET /), add CORS headers
so the dashboard works from file:// too; default route is dashboard.html