Commit Graph
19 Commits
Author SHA1 Message Date
MangaValkandClaude Opus 5.5 730d99d38b Check for own transfers on every app open, not only with a bank sync
The bank sync runs at most every 6 hours (and never without a linked bank), so
transfers in imported statements stayed counted as spending and income.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:44:36 +01:00
MangaValkandClaude Opus 5.5 759b0c0d62 Spending: a Charts tab with filters
Eight charts over the same spend / income rule as the rest of broke (transfers
never count): cash flow, savings rate per month, spending by category over time,
this month so far vs last month and the 3-month average, balance over time per
account and in total (worked back from today's balances), top merchants,
spending by weekday and biggest changes vs the period before.

Filters in the URL: time range or custom dates, grouping, accounts, categories,
tags, direction, merchant search, and compare with the previous period.
Clicking a bar or point opens those transactions in Activity. Every chart has a
legend and a table view; series colors are a validated palette in a fixed order
set by all-time spending, so filters never repaint a series.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:40:35 +01:00
MangaValkandClaude Opus 5.5 2371a5674f Transfers between own accounts no longer count as spending and income
Imported statements come in without a category, so money moved to savings counted
as spent on one side and earned on the other. After every import and sync, brokeless
now marks them as Transfers out / in: pairs (same amount out of one own account and
into another within 4 days) and savings accounts by name (Oranje Spaarrekening,
Doelspaar, Direct Sparen...). Only rows without a category or with Other change.
All history, so existing imports get fixed on the next sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:20:40 +01:00
MangaValkandClaude Opus 5.5 49ecfb975f Accounts: Merge into a linked account
The account editor of an imported account gets a Merge into section: pick the
linked account, see what moves and what the bank already has, then merge.
Tested in the stack: older rows move, overlap counts once, edits carry over,
and the next sync leaves it alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:28:56 +01:00
MangaValkandClaude Opus 5.5 8e830dc422 Merge an imported account into a linked one (server side, no button yet)
POST /api/accounts/merge {from, into, preview}. Older imported rows move over; from
the day the bank's history starts the bank's rows win, and edits on matching rows
carry over. Safe to run again after stopping halfway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:35:49 +01:00
MangaValkandClaude Opus 5.5 514b2aac77 Enable Banking: warn before the bank's permission runs out, and link again cleanly
- save when the permission ends (consent_until, migration 0032)
- Accounts warns two weeks ahead, says Needs attention once it ran out, and offers
  Link again; an expired or revoked session no longer shows a raw API error
- accounts and rows are keyed on identification_hash, which stays the same across
  links (the uid doesn't), so linking again adds no copies and keeps edits
- links made with the per-link uid move to the stable key on their next sync
- linking the same bank again replaces the old connection

Tested against the stand-in: first link, moving old IDs, linking again,
the warning and an expired permission.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:23:49 +01:00
MangaValkandClaude Opus 5.5 0a97ddbcae Add accounts: no Plaid setup card when a bank feed is set up
In the Netherlands with Enable Banking keys, "Link a bank or card" sent people to
the setup page instead of the working Link your bank.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 17:13:00 +01:00
MangaValkandClaude Opus 5.5 33a8a237ea Statement import: ABN AMRO's TXT/TAB download
It has no header row, so nothing came in. Recognize its eight columns, and take
the other party's name out of ABN's coded text (/NAME/, card payments, Naam:).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 16:40:42 +01:00
MangaValkandClaude Opus 5.5 0232766260 Connect my computer: works from Docker and on Windows
- Docker passes BROKE_HOSTED through (setting it in .env did nothing before)
- the helper finds claude.exe / claude.cmd on Windows (PATH uses ';' there),
  runs a .cmd through cmd.exe with the question on stdin only, and keeps the
  Windows variables Claude needs to find its login; opencode on Windows only as .exe
- the page gives Windows a PowerShell command (curl.exe, file then node)
- Copy works on a plain http LAN address

Tested on Windows end to end with a stand-in claude.cmd: pairing, a question with
quotes, & and %, and every lockdown flag arriving intact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:50:41 +01:00
MangaValkandClaude Opus 5.5 ea53718e5d Link ING and other European banks through Enable Banking
- Docker passes ENABLE_BANKING_APP_ID and ENABLE_BANKING_PRIVATE_KEY through
- transactions are keyed on entry_reference: Enable Banking says transaction_id
  may change between fetches, which imported rows twice
- a key pasted on one line keeps its own PEM label (PKCS#1 keys broke before)
- nginx keeps X-Forwarded-Proto/Host from a reverse proxy, so return links are https
- README: how to set up the app, the keys, and https if Enable Banking needs it

Checked against Enable Banking's API docs and tested end to end against a stand-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:16:53 +01:00
MangaValkandClaude Opus 5.5 cc22098868 Docker: default to port 3003
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:00:24 +01:00
MangaValkandClaude Opus 5.5 73bb30e9a1 Docker: always build the app image, never try to pull it
Unraid's Compose Manager stopped at "pull access denied for brokeless".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:55:24 +01:00
MangaValkandClaude Opus 5.5 7f60b51374 Docker: default to port 3001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:47:15 +01:00
MangaValkandClaude Opus 5.5 cec3b15c2c brokeless: fully local by default, and a README for it
- BROKE_OFFLINE=1 (on in Docker) turns off the GitHub update check and the
  exchange-rate fetch, so the server makes no calls out
- auto-update in scripts/start.mjs pulls from your own repo (origin), never upstream
- install.sh points at brokeless; drop the workflow that merged upstream by itself
- compose project and image are named brokeless
- README: what changed from broke, how to run it, how to review upstream

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:08:42 +01:00
MangaValkandClaude Opus 5.5 861e65021f Docker: fixes from a full test run
- roles.sql only touches roles this stack has (the init stopped early before)
- internal database link without SSL
- Mailpit without an SMTP login (GoTrue refuses one over plain SMTP)
- setup.mjs refuses localhost, which the containers can't reach

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:56:32 +01:00
MangaValkandClaude Opus 5.5 c50c645cfb Redirects use the address the browser used, not the server's listen address
Behind Docker or a proxy, request.url says http://0.0.0.0:3000, so the sign-in
link sent people there. originOf() reads the Host or X-Forwarded-Host header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:56:32 +01:00
MangaValkandClaude Opus 5.5 44aa5e0933 Docker: run broke fully on your own server
Dockerfile builds this checkout. docker/docker-compose.yml adds Supabase's
Postgres, Auth and PostgREST behind one nginx address, Mailpit for sign-in
links, and Ollama under the ai profile. docker/setup.mjs writes fresh secrets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:57:45 +01:00
MangaValkandClaude Opus 5.5 5297d8dfa6 Bump next to 15.5.29 and react to 19.1.10 for security advisories
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:40:38 +01:00
MangaValkandClaude Opus 5.5 fc0bf0a566 Statement import: read ING's Af Bij column for the direction of each amount
ING Netherlands exports every amount as positive and says Af (out) or Bij (in)
in its own column. Without this, spending and income all came in as income.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:40:37 +01:00