Commit Graph

4 Commits

Author SHA1 Message Date
Kavi e4e8f20555 Twemoji category icons as logo fallback
For transactions with no brand match, show the spending category emoji
(Twitter Twemoji SVG via jsDelivr) instead of a bare initial:
  Groceries 🛒  Food 🍔  Fuel   Health 💊  Subscriptions 💻
  Shopping 🛍  Utilities 💡  Cash 🏧  Debt 💳  Wallets 📱  Fees 🏦
Income/transfer rows use flow-type icons (💰 income, 🔁 self-transfer).
Resolution chain: Brandfetch brand logo -> category Twemoji -> coloured
initial. Brand logo onerror also falls back to the category emoji.
Call sites pass {category} (merchants/breakdown) or {flowType} (ledger).
2026-06-02 14:44:20 -04:00
Kavi e0f2252124 Add Brandfetch merchant logos to dashboard
- 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.
2026-06-02 14:41:09 -04:00
Kavi 948736c79a Add category/merchant breakdown accordion to Spending tab 2026-06-02 04:15:18 -04:00
Kavi a2cb7d3700 Import Claude Design dashboard: 12-tab finance terminal
Full handoff from claude.ai/design bundle (4ESEfttPcJJzpoqjJxZozQ):
- dashboard.html: 12-tab shell (Overview, Spending, Income, People,
  Cards, Cycles, Balances, Rhythm, Platforms, Banks, Ledger, Quality)
- engine.js: data normalisation, categorisation, Sankey graph builder
- charts.js: reusable SVG primitives (bars, donuts, heatmaps, multiline)
- dashboard.js + dashboard2.js: all tab renderers
- styles.css + dashboard.css: Space Grotesk / IBM Plex Mono dark terminal
- sankey-view.js + orbit-view.js: Sankey and radial cycle views
- money-trace.html: Sankey / Orbit visualisation shell
- tweaks-panel.jsx: React palette/glow tweaks panel
2026-06-02 03:39:20 -04:00