diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d741ab..8cc2bb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,47 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). --- +## [1.13.0] — 2026-11-01 + +### App shell — Clarity redesign, part 1 (shell and visual system) +- **One-row app bar replaces the sidebar.** Left to right: FinLens · Overview · Transactions · **Plan ▾** · Trends · AI Analysis, then the sync badge, the date and account pickers and the Settings gear. + - **Plan menu:** Budget, Buckets, Debt, Investments and Forecast, each with a one-line description. Plan stays underlined on all five screens, and the menu marks the one you're on. + - **Closing menus:** a click outside, Escape (focus goes back to the button) or picking an item closes them. +- **Date range and accounts are icon buttons with popovers.** They replace the two dropdowns in the old top bar. + - **Dot on the icon:** shows when the range isn't the default (This month), or when not every account is included. The tooltip names the current choice. + - **Accounts can be combined:** pick any mix with checkboxes. The last checked account can't be unchecked. `inAccount()` already supported several accounts. + - **Custom range** opens From / To fields inside the popover. +- **Sync badge — "Synced" / "Not synced".** Green while `finlens-state.json` in the connected folder is up to date. Amber when no folder is connected, access lapsed, or the last save failed. The tooltip says which (`updateSyncBadge()` in `views-data.js`). + - **Click:** reconnects when access lapsed (the click allows the permission prompt). Otherwise it opens Settings → Import. + - **Only a stored folder handle counts as connected** (`State._folderLinked`). A folder chosen with the Safari/Firefox file picker has a name but nothing is ever written back to it, so it stays "Not synced". +- **Phone and narrow windows:** below 1000px the nav moves into a **☰ menu**, grouped like the desktop (Plan section, then Trends, AI Analysis and Settings). Below 720px the gear moves into the menu too. The old sidebar turned into a horizontal strip. +- **Page title row:** each screen opens with its title and the active range, which the old top bar used to show. The version string moved to a small footer. + +### Theme +- **Light only for now.** The dark theme is taken out: the ◐ button in the top bar and the Light/Dark choice in Settings are gone, and so are the dark color tokens. It will come back in its own PR, redesigned for Clarity. + - **If you used Dark,** the app now opens in Light. `State.theme` is still saved and loaded, so the stored key doesn't change, but nothing reads it. + +### Visual system +- **Clarity tokens (CLAUDE.md §6).** Indigo accent, Inter type, white cards with 16px corners and no shadow, and quieter borders. Status colors come in soft/strong pairs. + - **Contrast:** every text token reaches 4.5:1 on every surface. `--text-3` is `#5d6a7e` (the mockup's `#64748b` is 4.44:1 on the page background). +- **Old token names still work.** `--teal`, `--amber`, `--red`, `--blue` and `--purple` are aliases, so existing inline styles keep working. The sidebar tokens are removed. +- **Components restyled:** buttons, pills, chips, tables, inputs, progress bars, callouts, drawer, heatmap and calendar. + - **Callouts** are tinted boxes instead of the left-border gradient. + - **Chips** use soft tints of their hue. + - **Negative amounts** use the body text color; positives stay green. +- **Charts read their colors from the tokens.** `chartColor()` and `cssVar()` in `ui.js` read the tokens when a chart draws: income indigo, spending amber, savings teal, debt red, card orange, neutral gray. Grid lines and labels come from the tokens too. The transfer-flow SVG and sparklines use the same colors. +- **Settings tabs** are plain-text tabs with an underline. The emoji labels are gone, and so are the emojis on the Reconnect and Data & Reset buttons. +- **Investing Ideas:** the AI prompt card uses the accent tint instead of a fixed dark gradient. + +### Not in this release +- **Screen layouts are unchanged.** Rebuilding individual screens to match the Clarity mockups (Overview, Bills, Budget, Debt, Forecast and so on) comes in follow-up PRs. + +### Docs +- **README** — navigation instructions; the dark mode instructions are removed. +- **CLAUDE.md** — §6 tokens and components; §9 chart color and app bar helpers (the theme helpers are removed); §12 app bar navigation replaces the sidebar and its emoji rule; §17 version location; §20 Data & Reset name, and the `finlens_navCollapsed` key is no longer written. + +--- + ## [1.12.0] — 2026-11-01 ### All views diff --git a/CLAUDE.md b/CLAUDE.md index 92e66f7..1180208 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.12.0 (updated in `index.html` footer, `README.md`, and `CHANGELOG.md` on every release). +**Current version:** v1.13.0 (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. @@ -165,7 +165,7 @@ const State = { investAlloc: {}, // { [ticker]: userPct } range: { mode, start, end }, // Active date range selectedAccounts: 'all', // 'all' | string[] - theme: 'light', + theme: 'light', // saved and loaded but unused: light only for now (dark theme taken out in v1.13.0) lastRefresh: null, fileMeta: [], // Metadata about loaded CSV files pendingFiles: [], // Files awaiting account assignment @@ -301,31 +301,43 @@ All CSS lives in a single `