Repository navigation
Conversation
…ration (v1.12.0) - UI text, default account names, samples and current docs say "bank" / "credit card" - Kinds and schema ids: bank_checking, bank_savings, credit_card; card accounts: card_<file> - js/migrate.js rewrites data saved by older versions (State, IndexedDB, localStorage, finlens-state.json, JSON exports), including transaction ids, so edits and re-import dedup carry over - AI Eval: renamed samples; published results still load and re-score unchanged - History (earlier CHANGELOG entries, published eval results, docs/archive) unchanged
…ty redesign (#16-#21) Brings the Clarity redesign (#16 -> #17 -> #19 -> #20 -> #21, v1.12.0 to v1.16.0) into #10 so the Settings -> Database tab can be rebuilt on it. Conflicts in CHANGELOG.md, CLAUDE.md, README.md, index.html and js/views-settings.js were resolved by taking the redesign's version of each file. #10's changes to them (the 1.11.0 entry and version strings, the Database tab in SETTINGS_TABS, the unregistered-tab guard, README tips, CLAUDE.md notes) are rebuilt on the new design in the next commit. js/views-db.js merged cleanly: the redesign's file plus #10's db-tools view and DB Inspector re-read fix. Both are restyled next. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
Picks up the Import Logs race fix (#18, v1.10.5) and, with it, the two earlier master merges this branch didn't have yet: declined answers (#14, v1.10.3) and literal single "~" (#15, v1.10.4). Conflicts were the version strings and the CHANGELOG only: - CHANGELOG: every entry kept, 1.12.0 above 1.10.5, 1.10.4, 1.10.3. - Version strings stay 1.12.0 (index.html, README, views-settings.js, CLAUDE.md §1). CLAUDE.md's "Last updated" line keeps 1.12.0 and adds the v1.10.3-v1.10.5 history. - renderImportLog() keeps #18's guards (merged cleanly). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
|
Merged
The merge was carried up through the whole stack, one merge commit per branch: #17 → #19 → #20 → #21 → #24 … #38 → #10. Nothing was rebased or force-pushed. The headless tests pass on every tip. The one exception is on #17–#20, where two checks in the current test-clarity look for v1.16.0's Welcome and Settings tab names. They failed the same way before this merge, and the v1.15.0 variant of that suite passes. The view-switching stress test now shows 0 errors on every tip. 🤖 Generated with Claude Code https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft Generated by Claude Code |
…e-status-indicator Brings the Clarity redesign and fix stack (#16-#21, #24-#38, #10) into #23, so its backup status can be rebuilt on the app bar. All seven files #23 touched conflicted (CHANGELOG.md, CLAUDE.md, README.md, index.html, js/core.js, js/views-data.js, js/views-settings.js). Each was resolved by taking the redesign's version: the sidebar #23 built on is gone. The tree now equals settings-database-tab at 477f357. The next commit rebuilds #23's changes on the app bar's sync badge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
Version: v1.12.0, numbered after the open PRs (#14 v1.10.3, #15 v1.10.4, #10 v1.11.0). If this merges in a different order, it gets renumbered.
Summary
FinLens no longer names a bank anywhere in the app. Labels, hints, default account names, sample data and current docs say "bank" or "credit card" instead. The internal codes are renamed too, and a one-time migration rewrites your saved data so nothing is lost:
bank_checking,bank_savings,credit_cardbank_checking,bank_savings,card_<file>Per your choice, history is unchanged: earlier CHANGELOG entries, the published eval results (
docs/EVAL.md,docs/eval-runs/),docs/archive/, and the changelog text embedded inviews-db.js. Git history still has the old names too.What changed
On screen
Codes — every kind check in the views,
ui.jscolors, the AI summary's cash and debt totals, CSV detection and the eval's dataset build use the new codes.cardorcreditin its file name. Otherwise itsTransaction Date+Post Dateheaders identify it, so files named after the bank still import as cards.js/migrate.js(new,IdMigration) — rewrites data saved by older versions:_rekey()uses the fact thathash()is linear to swap the account part of the existing id. The results are exactly the ids a fresh import gives, so re-importing your CSVs still adds nothing.finlens-state.jsonis loaded: the loaded copy is rewritten, then the file is saved back.AI Eval
checking_sample.csv,savings_sample.csvandcredit_card_sample.csv. The checking sample's autopay line is nowCREDIT CARD AUTOPAY.Docs
Not verified
Automated checks: earlier run, not re-run · commit not recorded
Moved unchanged from this PR's "Test results" comment on 2026-11-04; not re-run, so not in the new table format. Originally a description section titled "How it was tested".
Headless Chrome against
samples/, with this branch andmasterserved on the same origin, so the branch opened data that master had saved. Results: 45/45 checks passed.Migration from master's data (IndexedDB boot), 23 checks
_2duplicate row), plus balances, limits, starting balances, a custom label, a label equal to the old default, reordered accounts and file assignments.Migration from an old
finlens-state.json(file boot, empty browser, simulated folder), 6 checksFresh import of the new samples, 4 checks
AI Eval, 12 checks
docs/eval-results.jsonstill loads.Id math, run separately
_2suffixes and Unicode descriptions all re-keyed exactly, with no ambiguous ids, and back again.Not tested
Manual QA steps
Setup
This PR rewrites saved data in place, so never test it on your real data or in your normal Edge profile. Pages opened from disk share one browser storage, so your real FinLens data in that profile would be migrated too.
FinLens test. Do all tests in that window.git checkout master.Desktop\finlens-old, and copy master's three samples into it:ally_checking_sample.csv,ally_savings_sample.csv,chase_card_sample.csv.Desktop\finlens-new. Leave it empty for now.1. Create old data on master (starting state for tests 2–5)
index.htmlfrom disk in theFinLens testwindow.finlens-old, and allow edit access.NETFLIXin the search box, click the Oct 4 row, typeedit Ain Notes, and click Save Changes.PARKING. Two identical Aug 14 rows ($2.00) appear. Click the second one, typeedit B (duplicate)in Notes, and click Save Changes.RENT. Click the Oct 1 row, change Description toRent Palm Court, and click Save Changes.My Checking, and press Enter. Leave the other two names as they are.1000as Current Balance for checking,500for the Chase card and5000as its Credit Limit. Click 💾 Save, then OK.finlens-old\finlens-state.jsontoDesktop\finlens-state-master.json. You need it in test 6.Expected:
2. The migration runs once on upgrade
git checkout bank-neutral-names.Expected:
3. Names, balances, order and edits survived
NETFLIX, thenPARKING, thenRent Palm. Click each edited row.Expected:
edit A. Only the parking row you edited hasedit B (duplicate); its twin has no note.Rent Palm Court.4. Nothing old is left in storage or in the state file
file://and clickfinlens_manualBalances, thenfinlens_accountOrder.finlens-old\finlens-state.jsonin Notepad."ally_checking","ally_savings",chase_chaseand"chase"(with the quotes where shown).Expected:
bank_checking,bank_savings,card_chase_card_sample.manualBalanceshasbank_checking,card_chase_card_sampleandcard_chase_card_sample_limit.accountOrderstarts withcard_chase_card_sample.ally_checking_sample.csvand the descriptionCHASE CREDIT CRD AUTOPAYare expected and fine.)5. Re-importing the same CSVs adds nothing
finlens-old.Expected:
Before this fix: n/a on master. On this branch without the migration, Reload would add 257 new rows and edits would be lost.
6. An old JSON backup is migrated when loaded (folder restore path)
This checks that a pre-v1.12.0
finlens-state.jsonis rewritten when it is the only copy.RESET, and click Start over. Click OK on the message; the page reloads empty.Desktop\finlens-restore. Copy the threefinlens-oldCSVs into it, plusDesktop\finlens-state-master.jsonrenamed tofinlens-state.json.finlens-restore, and allow edit access.finlens-restore\finlens-state.json.Expected:
7. Fresh import of the new samples, and generic labels
RESET, click Start over, and click OK.samples/checking_sample.csv,savings_sample.csvandcredit_card_sample.csvintofinlens-new.finlens-new. Set the range to All Time.AUTOPAY.Expected:
8. A card file without "card" in its name is still a card
finlens-new, copycredit_card_sample.csvand name the copystatement_2026.csv.Expected:
9. (Optional) AI Eval still accepts samples and published results
showView('ai-eval')and press Enter.samples/.docs/eval-results.json.Expected:
When done, remove the
FinLens testprofile (profile picture → Manage profile settings → … → Remove).Please check before merging
finlens-state.jsonsomewhere safe. The migration is one-way: v1.10.x can't read the new codes, so going back means restoring that copy.Renamed old account codes; N transaction ids updated. It should not say any "kept their old id".Generated by Claude Code
Generated by Claude Code