From a06b53690fcac0bf41384233cfcfb71038c50a6f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 09:47:34 +0000 Subject: [PATCH] Fix JSON export leaving out account names, order, rules, keywords (v1.16.6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit exportAllData() and importJsonFile() each had a hand-written key list that stopped at format 1.1, so a round trip lost custom account names, the account order, the transaction (flag) rules, the transfer keywords, the "Read as" choices and the theme. All six were already in State and finlens-state.json. - ui.js: JSON_EXPORT_KEYS (State key -> kind of value), used by both. Adds accountLabels, accountOrder, fileAssignments, txRules, transferKeywords and theme. The export's version is 1.2. - Import accepts 1.0, 1.1 and 1.2. A key that's missing, null or of the wrong kind keeps its current value; a file that isn't a JSON object is refused. - _applyImportedSettings(): names and order show, flag rules re-apply, transfer detection re-runs, the theme switches, without a reload. - Not exported: transactions, accounts, the API key, sampleData, csvAutoImportPaused, lastFolderName, session state, customSchemas. - Data & reset says what the file holds. CHANGELOG, version in the four places, README, CLAUDE.md §1, §9, §12, §20. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft --- CHANGELOG.md | 23 ++++++++++++++++ CLAUDE.md | 15 ++++++++--- README.md | 6 ++--- index.html | 2 +- js/ui.js | 64 +++++++++++++++++++++++++++++++++----------- js/views-cleanup.js | 2 +- js/views-settings.js | 2 +- 7 files changed, 88 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1696f55..f90137a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,29 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). --- +## [1.16.6] — 2026-11-02 + +### Fixed +- **The JSON export left out settings you made, so a round trip lost them.** + - **Symptom:** after **Export JSON**, **Start over** and **Import JSON**, plans and edits came back, but custom account names, the account order, the transaction rules (flag as bill, subscription or recurring), the transfer keywords, the "Read as" choices and the theme did not. + - **Cause:** `exportAllData()` and `importJsonFile()` each had a hand-written list of keys. Neither list had these six, although all six were already in State and in `finlens-state.json` when the export was written. + - **Fix:** one list, `JSON_EXPORT_KEYS` in `ui.js`, used by both. It adds `accountLabels`, `accountOrder`, `fileAssignments`, `txRules`, `transferKeywords` and `theme`. The export's `version` is now `1.2`. +- **Imported settings take effect right away** (`_applyImportedSettings()`): account names and order show, flag rules re-apply (`applyTxRulesToAll()`), transfer detection re-runs with the imported keywords (`reapplyTransferKeywords()`), and the theme switches. As before, category rules apply to the next import (or **Re-categorize all**), "Read as" choices to the next CSV read, and transaction edits after a reload. +- **The import skips bad values.** A key holding the wrong kind of value (a list where a map belongs, or an unknown theme) keeps its current value, as a missing or null key does. A JSON file that isn't an object is refused: "Import failed: this file is not a FinLens export." + +### Unchanged +- **Older exports still import.** Versions 1.0 and 1.1 lack the new keys, so those settings stay as they are. +- **Still not exported:** transactions and accounts (your CSVs bring them back), the API key, this browser's own state (`sampleData`, `csvAutoImportPaused`, `lastFolderName`), the date range, the accounts filter and `customSchemas` (nothing in the app creates one). + +### Settings +- **Data & reset → Export and import** lists what the file holds. + +### Docs +- **README** — what the JSON export holds. +- **CLAUDE.md** — §1 version; §9 `JSON_EXPORT_KEYS`; §12 adding a persisted field; §20 what the export holds and what the import does. + +--- + ## [1.16.5] — 2026-11-02 ### Fixed diff --git a/CLAUDE.md b/CLAUDE.md index cc1516c..f20b76d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -59,7 +59,7 @@ Until then, this section is the rule. FinLens is a **single-origin, zero-build, vanilla JavaScript personal finance dashboard** that runs entirely in the browser. There is no server, no npm, no bundler, no framework, and no TypeScript. The entry point is `index.html`; everything else is a plain `.js` file in the `js/` folder. -**Current version:** v1.16.5 (updated in `index.html` footer, `README.md`, and `CHANGELOG.md` on every release). +**Current version:** v1.16.6 (updated in `index.html` footer, `README.md`, and `CHANGELOG.md` on every release). **What it does:** Imports CSV exports from a bank (checking + savings) and credit cards, parses and normalizes them into a unified transaction model, and renders a multi-tab financial dashboard with budgeting, debt tracking, savings forecasting, investment planning, and Claude-powered AI analysis. @@ -643,6 +643,7 @@ simulatePayoff(debts, extra) // older payoff model, kept unchanged and u confirmRecurring(r), dismissRecurring(key), undoDismissRecurring(key) // r: a detectRecurring() entry addCatRule(), delCatRule(i), recategorizeAll() exportAllData(), importJsonFile(ev) // Settings → Data & reset → Export / Import JSON (v1.16.0; before, no button called them) + // JSON_EXPORT_KEYS: what's in the file, version 1.2 (v1.16.6, §20) clearAllData() // = DataCleanup.startOver('archive') — full reset + reload (§20) ``` @@ -787,7 +788,8 @@ el.innerHTML = ``; 2. `lsSet` mirrors it to IndexedDB `app_state` and localStorage. 3. Add it to `DB.APP_STATE_KEYS` (`db.js`), with the default `DB.loadAll()` uses when it's missing. A new database copies the same keys from localStorage (v1.16.5). 4. Add it to `saveStateToFile()`'s list, unless it's browser-only like `csvAutoImportPaused` (§20). Never the API key. -5. Update §20, so Start over and the clean-up actions cover it. +5. If the user entered or chose it, add it to `JSON_EXPORT_KEYS` (`ui.js`), so the JSON export carries it (§20). +6. Update §20, so Start over and the clean-up actions cover it. ### App Bar Navigation (v1.13.0) @@ -990,7 +992,7 @@ Multiple credit card files can be loaded simultaneously. Each gets a unique `acc --- -*Last updated: v1.16.5 — 2026-11-02 (a new database copies every saved setting: §4.5 the keys that go through `storageKey()`; §12 adding a persisted field; §19 `DB.APP_STATE_KEYS`; v1.16.4: JSON import saves under the storage keys: §4.5 `STORAGE_KEYS` / `storageKey()`; §8 `storageKey()`; §12 adding a persisted field uses the State name; v1.16.3: An import keeps the loaded transactions it doesn't replace: §4.5 an import never drops loaded transactions; §8 `mergeImported()`, `undoTransferDetection()`; §10 memory follows the same re-upload rules; §11 kept transfers are detected again; v1.16.2: Imports read every file before changing anything: §8 `loadFiles()` options and result, `parseCsvFile()` reads only, `importParsedCsv()`, `importProblemText()`, `reloadFromDirHandle()`; §20 Rebuild from your folder reads before it clears, read before clearing; v1.16.1: Clear transaction edits works from memory: §4.2 `_originalCategories`, `_originalType` and what a transaction keeps of its row; §4.5 IndexedDB may not hold the loaded transactions; §10 a stored row holds the CSV's values; §20 Clear transaction edits; v1.16.0: Trends, AI Analysis, Settings and the Welcome rebuilt: §3 file roles; §4.1 `cardDetails`, `sampleData`, AI history `model`; §6 tile tokens and Insights/Settings/Welcome components; §7 rule 7 covers Trends; §8 `loadFiles()` sample option; §9 `shellHero()`, `NO_RANGE_VIEWS`, ☰ → ×, JSON export/import buttons; §12 Settings tabs renamed, the Welcome, range label hidden on Trends and Settings; §13 quick analyses, tab state, history; §20 new fields, Use my own files, Export/Import JSON; §21 quick analyses send `AI_PROMPTS`; v1.15.0: Plan screens rebuilt: §3 file roles; §4.1 `debtPlan` and the Budget / Bucket / Debt / Scenario shapes; §6 `--teal-text` and Plan components; §7 rule 7 covers the Plan charts; §8 plan helpers (`payoffPlan()`, `growthByYear()` …); §9 plan form helpers, `simulatePayoff()` kept unused; §12 Plan titles, Forecast tabs, range label hidden on Plan screens; §13 debt balances in the summary; §20 Clear forecast scenarios / investment mix, Clear debts resets `debtPlan`; v1.14.0: Finances screens rebuilt: §4.1 Bill shape and `recurringConfirmed`; §6 new tokens and Finances components; §7 rule 7 inline SVG charts; §8 new aggregation helpers; §9 drawer, `TX_VIEWS`, SVG/heatmap/format helpers, bill helpers, removed renderers; §11 keywords re-run detection, `transferPairs()`, card payments; §12 page actions and Transactions pills; §20 Clear bills also clears spotted-charge choices; v1.13.0: Clarity redesign — §6 tokens and components; §9 theme, chart colors and app bar helpers; §12 app bar navigation replaces the sidebar and the emoji rule; §17 footer; §20 Data & Reset; v1.12.0: bank-neutral account codes, names, samples and docs; §22 `migrate.js` added; §3, §4, §5, §10, §18, §21 updated; v1.10.2: §13 summary states its dates; §21 per-month derivations; v1.10.1: §13 `AI_MAX_TOKENS`, thinking and cut-off answers; v1.10.0: §21 AI Eval added; §13 `callClaude()` raw mode; v1.9.6: §14 folder access lasts until the last tab closes, not one page load; v1.9.5: §7 chart guard; v1.9.4: views-db.js changelog reads CRLF checkouts; v1.9.3: §14 folder permission: re-request on click, Reconnect banner, browser copy wins; v1.9.2: §0 branch, PR and approval workflow added; v1.9.1: §4.5 rehydrate transactions loaded from JSON; v1.9.0: §20 Data & Reset added; v1.8.1: §10 re-upload dedup rewritten for the occurrence-suffix fix; v1.8.0: AI Analysis restored with API-key and output hardening; `renderMarkdown()` added; `samples/` added; §1–3, §13, §14, §17 corrected to match the code)* +*Last updated: v1.16.6 — 2026-11-02 (JSON export carries account names and order, Read as, flag rules, transfer keywords and theme: §9 `JSON_EXPORT_KEYS`; §12 adding a persisted field; §20 what the export holds; v1.16.5: a new database copies every saved setting: §4.5 the keys that go through `storageKey()`; §12 adding a persisted field; §19 `DB.APP_STATE_KEYS`; v1.16.4: JSON import saves under the storage keys: §4.5 `STORAGE_KEYS` / `storageKey()`; §8 `storageKey()`; §12 adding a persisted field uses the State name; v1.16.3: An import keeps the loaded transactions it doesn't replace: §4.5 an import never drops loaded transactions; §8 `mergeImported()`, `undoTransferDetection()`; §10 memory follows the same re-upload rules; §11 kept transfers are detected again; v1.16.2: Imports read every file before changing anything: §8 `loadFiles()` options and result, `parseCsvFile()` reads only, `importParsedCsv()`, `importProblemText()`, `reloadFromDirHandle()`; §20 Rebuild from your folder reads before it clears, read before clearing; v1.16.1: Clear transaction edits works from memory: §4.2 `_originalCategories`, `_originalType` and what a transaction keeps of its row; §4.5 IndexedDB may not hold the loaded transactions; §10 a stored row holds the CSV's values; §20 Clear transaction edits; v1.16.0: Trends, AI Analysis, Settings and the Welcome rebuilt: §3 file roles; §4.1 `cardDetails`, `sampleData`, AI history `model`; §6 tile tokens and Insights/Settings/Welcome components; §7 rule 7 covers Trends; §8 `loadFiles()` sample option; §9 `shellHero()`, `NO_RANGE_VIEWS`, ☰ → ×, JSON export/import buttons; §12 Settings tabs renamed, the Welcome, range label hidden on Trends and Settings; §13 quick analyses, tab state, history; §20 new fields, Use my own files, Export/Import JSON; §21 quick analyses send `AI_PROMPTS`; v1.15.0: Plan screens rebuilt: §3 file roles; §4.1 `debtPlan` and the Budget / Bucket / Debt / Scenario shapes; §6 `--teal-text` and Plan components; §7 rule 7 covers the Plan charts; §8 plan helpers (`payoffPlan()`, `growthByYear()` …); §9 plan form helpers, `simulatePayoff()` kept unused; §12 Plan titles, Forecast tabs, range label hidden on Plan screens; §13 debt balances in the summary; §20 Clear forecast scenarios / investment mix, Clear debts resets `debtPlan`; v1.14.0: Finances screens rebuilt: §4.1 Bill shape and `recurringConfirmed`; §6 new tokens and Finances components; §7 rule 7 inline SVG charts; §8 new aggregation helpers; §9 drawer, `TX_VIEWS`, SVG/heatmap/format helpers, bill helpers, removed renderers; §11 keywords re-run detection, `transferPairs()`, card payments; §12 page actions and Transactions pills; §20 Clear bills also clears spotted-charge choices; v1.13.0: Clarity redesign — §6 tokens and components; §9 theme, chart colors and app bar helpers; §12 app bar navigation replaces the sidebar and the emoji rule; §17 footer; §20 Data & Reset; v1.12.0: bank-neutral account codes, names, samples and docs; §22 `migrate.js` added; §3, §4, §5, §10, §18, §21 updated; v1.10.2: §13 summary states its dates; §21 per-month derivations; v1.10.1: §13 `AI_MAX_TOKENS`, thinking and cut-off answers; v1.10.0: §21 AI Eval added; §13 `callClaude()` raw mode; v1.9.6: §14 folder access lasts until the last tab closes, not one page load; v1.9.5: §7 chart guard; v1.9.4: views-db.js changelog reads CRLF checkouts; v1.9.3: §14 folder permission: re-request on click, Reconnect banner, browser copy wins; v1.9.2: §0 branch, PR and approval workflow added; v1.9.1: §4.5 rehydrate transactions loaded from JSON; v1.9.0: §20 Data & Reset added; v1.8.1: §10 re-upload dedup rewritten for the occurrence-suffix fix; v1.8.0: AI Analysis restored with API-key and output hardening; `renderMarkdown()` added; `samples/` added; §1–3, §13, §14, §17 corrected to match the code)* --- @@ -1043,7 +1045,7 @@ CSV files on disk are **never** modified. | Rebuild from folder | `reloadFromDirHandle()` reads every CSV first; only if they can all be read (`_rebuildBlockers()`) it clears transactions, accounts and import log (in `beforeImport`), then imports them | Plans, edits, settings; everything, when a CSV can't be read | | Disconnect folder | `forgetDataFolder()` — stops CSV auto-reload and state-file writes | Files on disk | | Use my own files (sample banner) | `clearSampleData()`: transactions, accounts and import log (memory + stores), `sampleData` off, state file rewritten, back to the Welcome | Plans made while trying it | -| Export / Import JSON | `exportAllData()` / `importJsonFile()` — not a clear; listed because it lives here | — | +| Export / Import JSON | `exportAllData()` / `importJsonFile()` (`JSON_EXPORT_KEYS`, rules below) — not a clear; listed because it lives here | — | | Start over | `retireStateFile()` → forget handle → `DB.destroy()` → delete `finlens_fs` → `lsClearAll()` → alert → reload | CSV files (and a backup copy of the state file, if chosen) | ### Rules @@ -1064,6 +1066,11 @@ CSV files on disk are **never** modified. - **Start over must leave nothing behind.** It sets `State._resetInProgress` so a pending debounced save can't re-create the file, and `DB.open()` registers `onversionchange` so other tabs release the database. `idbGet`/`idbSet`/`idbDel` close their connections so `finlens_fs` can be deleted. - **Fields added in v1.16.0:** `cardDetails` and `sampleData` live in localStorage, IndexedDB `app_state` (`DB.loadAll()`) and `finlens-state.json`; Start over erases both with everything else. `cardDetails` is also in the JSON export. Importing your own files turns `sampleData` off after clearing the samples (`loadFiles()`). - `clearAllData()` is kept as a wrapper for `DataCleanup.startOver('archive')`. Up to v1.8.1 it only cleared `localStorage`, which IndexedDB and the state file then restored on reload. +- **The JSON export holds everything you entered or chose (v1.16.6).** `JSON_EXPORT_KEYS` (`ui.js`) lists the State keys and the kind of value each holds (`list`, `map`, `theme`); `exportAllData()` writes them with `version: '1.2'` and `importJsonFile()` reads the same list. + - **Left out:** transactions and accounts (the CSVs bring them back), the API key (§15), this browser's own state (`sampleData`, `csvAutoImportPaused`, `lastFolderName`), the session (date range, accounts filter, current view) and `customSchemas` (nothing creates one, §19). + - **Import:** accepts any version (1.0, 1.1, 1.2). A key that's missing, null or of the wrong kind keeps its current value. Each key is saved through `storageKey()` (§4.5). A file that isn't a JSON object is refused. + - **Takes effect without a reload** (`_applyImportedSettings()`, for keys whose value changed): account names and order, flag rules (`applyTxRulesToAll()`), transfer keywords (`reapplyTransferKeywords()`) and the theme (`applyTheme()`). Category rules apply to the next import, "Read as" choices to the next CSV read, and transaction edits after a reload. + - **A new persisted field the user enters or chooses** goes in `JSON_EXPORT_KEYS` too. --- diff --git a/README.md b/README.md index 8274d14..f4bbc98 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > A zero-install, browser-native finance dashboard. Drop in your bank CSVs, get instant clarity on your money. -**Version:** v1.16.5  ·  **Stack:** Vanilla JS, HTML, CSS  ·  **Install:** None +**Version:** v1.16.6  ·  **Stack:** Vanilla JS, HTML, CSS  ·  **Install:** None --- @@ -248,7 +248,7 @@ FinLens/ - **Rebuild from your CSV folder:** fixes a messy database without touching your plans. - **Clear individual plans:** budgets, bills, buckets, debts, forecast scenarios, the investment mix or AI history. - **Disconnect the folder.** -- **Export or import JSON:** your plans, edits, balances, categories and AI history in one file (no transactions, no API key). +- **Export or import JSON:** your plans, transaction edits and rules, account names, order and balances, card details, categories, transfer keywords, theme and AI history in one file (no transactions, no API key). Older exports still import; anything they don't have stays as it is. - **Start over from scratch:** type `RESET` to erase everything and reload. Your backup file is either kept as `finlens-state-backup-DDMMYYYY.json` or deleted, your choice. Your CSV files are never touched. **Dark mode** — go to **Settings → General → Theme** and pick **Dark**, or **Match system** to follow your computer. Light is the default. @@ -263,4 +263,4 @@ See [CHANGELOG.md](CHANGELOG.md) for the full release history. --- -*FinLens v1.16.5 — Built for one person's finances, designed to be useful for anyone's.* +*FinLens v1.16.6 — Built for one person's finances, designed to be useful for anyone's.* diff --git a/index.html b/index.html index 2156717..637aecd 100644 --- a/index.html +++ b/index.html @@ -1202,7 +1202,7 @@
-
v1.16.5 · FinLens
+
v1.16.6 · FinLens
diff --git a/js/ui.js b/js/ui.js index baafb12..837a75d 100644 --- a/js/ui.js +++ b/js/ui.js @@ -760,39 +760,71 @@ function setPayoffExtra(v) { } /* ---------- EXPORT / IMPORT ---------- */ +// What a JSON export holds (Settings → Data & reset): everything you entered or chose, as +// State key → the kind of value it holds. The import reads the same list. +// Left out on purpose: transactions and accounts (your CSVs bring them back), the API key +// (never written anywhere, CLAUDE.md §15), this browser's own state (sampleData, +// csvAutoImportPaused, lastFolderName), the session (date range, accounts filter, current +// screen) and customSchemas (nothing in the app creates one). +// Version 1.2 (v1.16.6) added accountLabels … theme; 1.1 had the keys above them. +const JSON_EXPORT_VERSION='1.2'; +const JSON_EXPORT_KEYS={ + budgets:'list', buckets:'list', debts:'list', bills:'list', + txOverrides:'map', manualBalances:'map', categoryRules:'list', categories:'list', + aiHistory:'list', scenarios:'list', recurringConfirmed:'map', investAlloc:'map', + debtPlan:'map', cardDetails:'map', + accountLabels:'map', accountOrder:'list', fileAssignments:'map', + txRules:'list', transferKeywords:'list', theme:'theme', +}; +const _JSON_KIND={ + list:(v)=>Array.isArray(v), + map:(v)=>!!v&&typeof v==='object'&&!Array.isArray(v), + theme:(v)=>['light','dark','system'].includes(v), +}; function exportAllData() { - const data={ - version:'1.1', exportedAt:new Date().toISOString(), - budgets:State.budgets, buckets:State.buckets, debts:State.debts, bills:State.bills, - txOverrides:State.txOverrides, manualBalances:State.manualBalances, - categoryRules:State.categoryRules, categories:State.categories, - aiHistory:State.aiHistory, scenarios:State.scenarios, - recurringConfirmed:State.recurringConfirmed, investAlloc:State.investAlloc, - debtPlan:State.debtPlan, cardDetails:State.cardDetails, - }; + const data={ version:JSON_EXPORT_VERSION, exportedAt:new Date().toISOString() }; + for (const k of Object.keys(JSON_EXPORT_KEYS)) data[k]=State[k]; downloadFile(`finlens-export-${dayjs().format('YYYYMMDD')}.json`, JSON.stringify(data,null,2),'application/json'); } -// Reads any export version (1.0, 1.1): a key the file doesn't have, or has as null, keeps -// its current value. Each key is saved under its storage key (storageKey(), core.js): -// up to v1.16.3 they were saved under their State names, so the spotted-charge choices -// ('recurring') and category rules ('catRules') were lost on the next reload. +// Reads any export version (1.0, 1.1, 1.2): a key the file doesn't have, has as null, or +// holds the wrong kind of value keeps its current value. Each key is saved under its +// storage key (storageKey(), core.js): up to v1.16.3 they were saved under their State +// names, so the spotted-charge choices ('recurring') and category rules ('catRules') were +// lost on the next reload. function importJsonFile(ev) { const file=ev.target.files[0]; if (!file) return; const reader=new FileReader(); reader.onload=e=>{ try { const d=JSON.parse(e.target.result); + if (!_JSON_KIND.map(d)) throw new Error('this file is not a FinLens export.'); // Exports from before v1.12.0 use the old account codes (migrate.js) IdMigration.migrateState(d); - ['budgets','buckets','debts','bills','txOverrides','manualBalances','categoryRules','categories','aiHistory','scenarios','recurringConfirmed','investAlloc','debtPlan','cardDetails'].forEach(k=>{ - if (d[k]!==undefined&&d[k]!==null){ State[k]=d[k]; lsSet(storageKey(k),d[k]); } - }); + const changed=new Set(); + for (const [k,kind] of Object.entries(JSON_EXPORT_KEYS)) { + if (!_JSON_KIND[kind](d[k])) continue; + if (JSON.stringify(d[k])!==JSON.stringify(State[k])) changed.add(k); + State[k]=d[k]; lsSet(storageKey(k),d[k]); + } if (IdMigration.adoptOverrides(State.transactions).size) lsSet('txOverrides',State.txOverrides); + _applyImportedSettings(changed); alert('Imported successfully.'); renderActive(); } catch(err){ alert('Import failed: '+err.message); } }; reader.readAsText(file); } +// Imported settings take effect now, without a reload. Most keys only need the render +// that follows. Category rules apply to the next import (or Re-categorize all), "Read as" +// choices to the next CSV read, and transaction edits once the page reloads, as before. +function _applyImportedSettings(changed) { + if (changed.has('accountLabels')) { + for (const [id,name] of Object.entries(State.accountLabels)) if (State.accounts[id]&&name) State.accounts[id].name=name; + } + if (changed.has('accountLabels')||changed.has('accountOrder')) buildAccountFilter(); + if (changed.has('txRules')) applyTxRulesToAll(); + if (changed.has('transferKeywords')) reapplyTransferKeywords(); // views-main.js; re-runs transfer detection + if (changed.has('theme')) applyTheme(); +} // Erase everything and reload. Clearing only localStorage (as ≤v1.8.1 did) was undone on // reload by IndexedDB and finlens-state.json, so this delegates to the full reset in // views-cleanup.js. Call it from a click handler (it may need folder write access). diff --git a/js/views-cleanup.js b/js/views-cleanup.js index c15eff9..4559d4c 100644 --- a/js/views-cleanup.js +++ b/js/views-cleanup.js @@ -350,7 +350,7 @@ registerView('data-cleanup', 'Data & reset', (root) => { /* ---- Export and import (JSON) ---- */ appendHtml(root, `

Export and import

-

Download your plans, transaction edits, balances, categories and AI history as a JSON file, or load one you exported. Transactions and your API key aren't in it; your CSVs bring the transactions back.

+

Download your plans, transaction edits, rules, account names, order and balances, card details, categories, transfer keywords, theme and AI history as a JSON file, or load one you exported. Transactions and your API key aren't in it; your CSVs bring the transactions back.

diff --git a/js/views-settings.js b/js/views-settings.js index 6139b6a..2cea28e 100644 --- a/js/views-settings.js +++ b/js/views-settings.js @@ -67,7 +67,7 @@ function _renderGeneralSettings(root) { ``).join('')} -
VersionFinLens v1.16.5
+
VersionFinLens v1.16.6
`); const opts=$$('[data-theme-opt]',root); opts.forEach((b,i)=>{