Skip to content

v1.16.0: Clarity redesign, part 4 — Trends, AI Analysis, Settings, Welcome - #21

Open
gitluis wants to merge 6 commits into
clarity-planfrom
clarity-insights
Open

gitluis wants to merge 6 commits into
clarity-planfrom
clarity-insights

Conversation

@gitluis

@gitluis gitluis commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #20 (clarity-plan) → #19 → #17 → #16. Merge #16, #17, #19, #20, then this.
#18 (v1.10.5) is a separate patch on master. Merging it fixes the race.js errors noted below (checked: its views-data.js patch still applies cleanly to this branch, and with it applied race.js reports 0 errors).

Summary

The last part of the Clarity redesign: Trends, AI Analysis, all six Settings tabs and the first-run Welcome now match their mockups. Every number is computed from your data. The mockups name banks; the app still names none.

  • AI requests are unchanged. AI_MODEL, AI_MAX_TOKENS, AI_PROMPTS, the system prompt, buildFinancialSummary(), the <financial_data> wrapping and send() / callClaude() raw mode are byte-identical. The tests compare each request body with one captured on clarity-plan.
  • Two new stored fields: State.cardDetails (a card's APR and due day) and State.sampleData (the sample data is loaded). Both are saved, loaded and erased the proper way.
  • Version 1.16.0 in all four places, plus CLAUDE.md §1 and "Last updated".

What changed

Trends

Always your latest six months with data, across every account. As before, it ignores the date range and the accounts filter, so the shell now hides the range label here too (NO_RANGE_VIEWS).

  • KPIs:
    • Average saved: income minus spending, a month.
    • Savings rate: the average of the six monthly rates.
    • Fastest-growing category: the biggest % rise in the latest month on the one before, among categories with at least $25 the month before.
    • Steadiest month: the lowest spending, leaving out an unfinished latest month.
  • Income, spending and savings: three bars a month, with what you saved under each month.
  • Savings rate: the monthly rate and a dashed 3-month average, drawn as inline SVG. The note under it is written from the numbers: the best and worst months, the category that pulled the worst one down, and where the latest month stands.
  • Account balances: a sparkline per account, a line on how it moved, and its balance. Balances come from balanceAt(), as on the Overview cards.
  • Top categories over time: the top 6 categories × 6 months as shaded tiles, with 6-month totals.
  • Dropped to match the mockup:
    • the Income MoM, Income Stability and Savings Rate (current month) cards;
    • the this-month-vs-last category table;
    • the rolling-spending, savings-rate and most-visited-merchants Chart.js charts (Trends no longer uses Chart.js);
    • the auto-generated insights (generateInsights() removed).

AI Analysis

  • Layout: Quick analyses and History on the left; Ask your own question and the answer on the right. A pill says whether a key is saved.
  • Quick analyses use the mockup's labels. Each sends an existing AI_PROMPTS question unchanged; AI_QUICK maps label → prompt. The label shown, and kept in history, is the new one.
  • The answer area is aria-live="polite", with aria-busy while waiting. It shows "Claude is reading your summary…", then:
    • "You asked" and the question;
    • Copy and Save as Markdown;
    • the cut-off warning (now above the answer) or "No answer was written";
    • the answer, rendered only through renderMarkdown();
    • "Answered just now · model".
  • History: all saved answers (cap 50), newest first, with "N of 50 kept". Cut-off answers are marked. Clicking an entry shows it again without sending anything. Export history as Markdown is new. New entries also store model.
  • No key: an "Add your API key" panel comes first, with a link to Settings → General. History stays readable.
  • Kept: history, copy and save, the cut-off and no-answer warnings, the 50 cap, every error message. The key is never rendered.
  • Mockup items left out:
    • "Unusual transactions." The summary sent to Claude has no individual transactions, so this would need a different request. "Summarize my finances" fills the eighth slot, so every eval prompt stays reachable from the tab.

Settings

  • Shell:
    • The note reads "Everything here stays on this computer".
    • Tabs use the mockup's words: General · Import · Accounts · Credit cards · Categories · Data & reset.
    • The tabs are role="tab" with arrow keys, Home and End (as on Forecast), plus a role="tabpanel".
    • The page is 1000px wide and hides the range label.
  • General: Display (theme, with arrow keys inside the radio group; version) and the API key (Save key; Remove now takes two clicks instead of confirm()).
    • Dropped: the currency menu (it saved a value nothing read), the "N transactions loaded" line and the pointer card to Data & reset.
  • Import:
    • Folder card: name, access pill, three info tiles; Save now, Reload CSVs, Change folder. It shows Reconnect when access has lapsed, and Pick a folder / Choose CSV files when no folder is connected.
    • Files in the folder: "Read as", rows, dates. Changing "Read as" saves the choice for the next reload.
    • Import log: always shown, one line per import. It loads after render, with v1.10.5: fix Import Logs throwing when the view is left before it loads #18's re-lookup guard.
    • Safari / Firefox card.
    • Kept: the "Read as" step for picked files, the last-import results, folder pick / reload / reconnect / disconnect.
    • Dropped: the rename list (renaming is on Accounts), "Add individual CSV files" (the Safari card does it), and Add Manual Account: its accounts were never saved and vanished on reload.
  • Accounts: a row per account with ▲▼ order, display name, and either the starting balance (bank accounts, labelled with the day before the first row) or the balance owed (cards), plus rows and dates. Fields save when you leave them.
    • A bank account's old current-balance override is shown, with a button to drop it.
    • Dropped: the two tables and the Save button.
  • Credit cards: current balance, credit limit, APR and payment due day (new), and a utilization bar that follows what you type. A debt linked to the card in the Debt tracker shares its APR and due day; a new debt started from the card takes them.
  • Categories: chips with transaction counts, covering your list plus categories in use. Add, delete, and a link to the rules on Spending.
    • Deleting now moves the category's transactions to Other, as the mockup says. The move is saved as transaction edits, and rules that assigned the category now assign Other. Before, delete only took the name off the list.
    • Other, Transfer in and Transfer out can't be deleted.
  • Data & reset:
    • What FinLens has stored.
    • Clean up: every action, each with click → "Click again to confirm" → "Cleared". Forecast scenarios and the investment mix are kept; the mockup predates them.
    • Export and import: JSON. exportAllData() / importJsonFile() existed, but no button called them.
    • Start over: type RESET.

Welcome (first run)

  • With no transactions, the Overview is the Welcome. Its headline is the shell's title (shellHero()), so the page still has one H1. It has the hero buttons, three steps and three notes. The bank-specific step text is reworded bank-neutrally.
  • On a true first run the app bar shows only the brand, as in the mockup. That means no folder, plans, AI history or key saved; otherwise the menus stay so you can reach them.
  • Buttons use the existing import paths from their click:
    • "Pick your CSV folder" calls pickDataFolder(), or reloadDataFiles() when a folder is connected.
    • "choose the files" opens #filePick.
  • "Try it with sample data" imports samples/ through loadFiles(). It fetches the files over HTTP; opened as a file, it uses a picker (#samplePick).
    • A banner says it's sample data, with Use my own files.
    • Importing your own files clears the samples first, so they don't merge into the same account ids.

Phone (390px) vs MobileOverview / MobileMenu

  • Fixed: while the menu is open, ☰ now becomes × with the label "Close menu", as in MobileMenu.
  • Left as is (design differences, not visual bugs): the mockup moves the date-range and accounts filters into selects under the Overview title, with no filter icons in the phone header. I kept the app bar's icon buttons; changing this is a redesign beyond "fix visual bugs".

New stored fields

Field Saved in Cleared by
cardDetails { [cardId]: { apr, dueDay } } localStorage, IndexedDB app_state (DB.loadAll()), finlens-state.json, JSON export/import Start over (kept by Clear transactions, like balances)
sampleData (boolean) localStorage, IndexedDB app_state, finlens-state.json importing your own files, Clear transactions, Use my own files, Start over
aiHistory[].model inside the existing history Clear AI history, Start over

CLAUDE.md §4.1 and §20 are updated. The API key still never reaches the file: the tests check a captured state-file payload and the JSON export.

Other mockup differences

  • No bank names (Ally, Chase) appear anywhere, per CLAUDE.md §10.
  • The version on General is the current one, not the mockup's v1.10.2.
  • The Trends text and axis are computed: the savings-rate note is generated from the data, and the axis scale comes from the data.
  • --t4 (a Trends tile) is #5f62f0 instead of the mockup's #6366f1, which gave white text only 4.47:1.

Found, not fixed

  • JSON import drops two things on reload: importJsonFile() saves category rules and recurring choices under categoryRules / recurringConfirmed, but they load from catRules / recurring.
  • The starting balance is ignored for "All time" (periodEndBalance() → currentBalances()). Trends uses balanceAt(), so it isn't affected; the Overview still is.
  • Budget, bucket and debt links are stored by list position (txOverrides[].link.idx).
  • The Import Logs race is fixed by v1.10.5: fix Import Logs throwing when the view is left before it loads #18. renderImportLog() and the db-logs view are untouched here, so v1.10.5: fix Import Logs throwing when the view is left before it loads #18 still applies.
  • The JSON export leaves out account names (accountLabels), display order, flag rules and transfer keywords.

Not verified

  • Real folder access: the File System Access API prompts in a real browser. Headless runs use a fake directory handle, so picking, reconnecting and permission prompts were simulated, not exercised.
  • Sample data from file://: only the picker path was run. The location.protocol === 'file:' branch itself was not.
  • The Anthropic API: stubbed. The eval was not re-run (no key here). The request is unchanged, so docs/EVAL.md should still hold.
  • Other browsers: Safari and Firefox were not tested; only Chromium.
  • Real assistive tech: no screen reader was used. Roles, labels and live regions are asserted in code only.
  • The clipboard: navigator.clipboard was stubbed.
  • Rendered mockups: they don't render here (their support.js is missing), so comparisons are by eye against their markup.
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".

The Playwright harness serves the pinned CDN libraries from npm. The bytes are identical, so the SRI hashes in index.html verify: sri-check.js loads marked and DOMPurify through their integrity attributes. Final run on the last commit:

Script Result
test-clarity.js 55/55
test-finances.js 126/126 (unchanged)
test-plan.js 127/127
test-insights.js (new) 137/137
boot.js 0 console/page errors
race.js 6–8 errors per run (6 on the final run), all renderImportLog in the Import Logs view (views-data.js, the #18 bug), the same as on clarity-plan. None come from these screens. With #18's patch applied: 0.

Checks changed in existing suites, and why:

  • test-clarity.js "Main nav visible, ☰ hidden at 1280px": it ran at boot with no data, which is now the first-run Welcome with a brand-only app bar. The check moved to right after the import. In its place, a new check asserts that the Welcome hides the nav and ☰. That is 54 → 55 checks.
  • test-clarity.js "Settings tabs are plain text": the expected labels are now the mockup's (Credit cards, Data & reset).
  • test-plan.js "Data & Reset: rows for forecast scenarios…": the regexes /Forecast scenarios/ and /Investment mix/ are now case-insensitive, because the rows read "Clear forecast scenarios" and "Clear investment mix".

AI request identity: capture-ai-base.js ran on clarity-plan. It sent all 8 AI_PROMPTS questions the way askAI(i) does, plus a custom question, with fetch stubbed in the page, and saved each body, header set and URL. test-insights.js clicks each quick analysis and asks the same custom question on this branch. All 9 requests are byte-identical. The real API was never called.

test-insights.js also covers:

  • Welcome: first-run state; the buttons start pickDataFolder() / #filePick; sample data over HTTP and through the picker; Use my own files; own files replacing samples (257 rows, not 514).
  • Trends: KPIs, bars, the rate chart, balances and the category grid, each checked against totals computed independently in the test.
  • AI: chips, the custom question, thinking, Markdown with <img> / <script> stripped, truncated, no-text and 401 answers, history add / open / cap at 50 / clear, copy, save, export, the no-key prompt, the key never in the DOM.
  • Settings: every tab and control:
    • theme by click and keys;
    • key save / remove, with the key absent from the DOM and the state-file payload;
    • rename, reorder, starting and card balances, limit, APR and due day, with reload persistence;
    • category add / duplicate / delete;
    • Import's folder states, using a fake directory handle;
    • every Data & reset action with its confirm step and the 4-second disarm;
    • JSON export and import;
    • Start over.
  • Themes and phones: dark mode, and no sideways scroll at 390px on every screen and tab.

Screenshots: light, dark and 390px for Welcome, Trends, AI (no key, answer, cut off, no answer, thinking) and each Settings tab, plus the phone Overview and menu. I looked at each and compared it with the mockup markup.

Manual QA steps

Setup

  1. Run git checkout clarity-insights.
  2. Copy samples/checking_sample.csv, savings_sample.csv and credit_card_sample.csv into a scratch folder, e.g. Desktop\finlens-test. This PR changes import, clearing, JSON import and Start over, so never use your real folder.
  3. Use an Edge InPrivate window (Ctrl+Shift+N). Test 1 needs a browser with nothing saved, and your real data in the normal profile must not be touched.
  4. Open index.html from disk. Press F12 and keep the Console tab open.

1. First-run Welcome

  1. Look at the page before doing anything.
  2. Click choose the files in the hint line, then cancel the file dialog.
  3. Click Try it with sample data.
  4. In the file dialog, select the three CSVs in the repo's samples/ folder and click Open.

Expected:

  • The app bar shows only FinLens (no nav, no badge, no icons, no ☰).
  • The headline is "Your money in one view, on your own computer", with Pick your CSV folder and Try it with sample data, three numbered steps and three notes (No bank login, Stays on this computer, AI is optional).
  • No bank name appears anywhere.
  • Step 3 shows "FinLens is open as a file, so your browser won't let it read the samples folder by itself…" and opens a file dialog.
  • After step 4: Overview with 257 transactions and the range set to All time. The full app bar is back.
  • A banner reads "You're trying FinLens with sample data. … Importing your own files replaces them." with Use my own files.

2. Sample data is replaced, not merged

  1. Click Use my own files on the banner.
  2. Click Try it with sample data again and pick the three samples.
  3. Click the gear → Import → Pick a folder, choose finlens-test, and allow edit access.
  4. Click Transactions.

Expected:

  • Step 1 empties the app and shows the Welcome again. Nothing else is saved yet, so the app bar is brand-only again.
  • After step 3: the sample banner is gone. Transactions shows 257, not 514.
  • The badge says Synced.

3. Trends

  1. Set the range to This month with the calendar icon. Click Trends.
  2. Read the four KPIs.
  3. Hover a bar in Income, spending and savings and a tile in Top categories over time.

Expected:

  • The range label next to the title is hidden; the page shows the latest six months (May–Oct 2026) whatever range is set.
  • KPIs: Average saved, Savings rate, Fastest-growing category, Steadiest month.
  • Three bars per month, with the amount saved under each month.
  • Savings rate shows a line plus a dashed 3-month average, and a sentence naming the best and worst months.
  • Account balances has a sparkline and balance per account. The balances match the Overview cards with the range on All time.
  • Top categories over time: 6 categories × 6 months, darker for bigger months, with totals.
  • No Chart.js charts and no "Insights" list.

4. AI Analysis without and with a key

  1. Click AI Analysis.
  2. Click Add API key.
  3. Paste your key in Anthropic API key and click Save key.
  4. Click AI Analysis. Click Monthly spending review.
  5. While it waits, read the answer area.
  6. When the answer arrives, click Copy, then Save as Markdown.
  7. Type Can I afford to save $1,500 a month? in Ask your own question and press Ctrl+Enter.
  8. In History, click the first entry.
  9. Click Export history as Markdown.

Expected:

  • Without a key: a panel "Add your API key to ask Claude" comes first, the pill says No API key saved, and the quick-analysis buttons are disabled.
  • Add API key opens Settings → General.
  • With a key: the pill says API key saved in this browser. Eight quick analyses, ending with Summarize my finances.
  • While waiting: "Claude is reading your summary…" with grey placeholder lines and "You asked: Monthly spending review". The buttons are disabled.
  • The answer shows "You asked", the question as a heading, Copy / Save as Markdown, formatted Markdown, and "Answered just now · ".
  • Copy shows a short confirmation; Save downloads a .md file.
  • Ctrl+Enter sends the custom question.
  • History lists newest first with "N of 50 kept". Clicking an entry shows it again without a new request (check F12 → Network: no new call to api.anthropic.com).
  • Export downloads finlens-ai-history-<date>.md.

5. Settings: General and Import

  1. Click the gear. Read the note under the title and the tab names.
  2. Click the General tab, then press the Right arrow key.
  3. Click General. Click the Dark theme option, then use the arrow keys inside the theme switch.
  4. Click Remove next to the API key. Wait 5 seconds.
  5. Click Remove twice quickly.
  6. Click the Import tab.
  7. Under Files in the folder, change Read as for savings_sample.csv to Other CSV, then back to Savings.
  8. Click Save now.

Expected:

  • The note says "Everything here stays on this computer". Tabs: General · Import · Accounts · Credit cards · Categories · Data & reset. The range label is hidden.
  • The Right arrow moves to Import.
  • The arrow keys switch the theme too.
  • No currency menu on General.
  • The first Remove click changes the label to "Click again to remove", and it goes back after 4 seconds. Two clicks remove the key; the pill says No key saved. No browser pop-up.
  • Import shows the folder name, a Read and write access pill, three tiles (CSVs last read, Backup last saved, Auto-save "5 seconds after a change"), and Save now / Reload CSVs / Change folder.
  • Changing Read as shows "Saved. FinLens reads savings_sample.csv as Other CSV from the next reload…".
  • Import log lists one line per import. Using Safari or Firefox? card is present.
  • Save now shows a ✓ message, and Backup last saved updates.
  • Gone: Add Manual Account, the rename list, "Add individual CSV files".

6. Settings: Accounts, Credit cards, Categories

  1. Click Accounts. Change the display name of checking to Main and press Tab.
  2. Type 1500 in its Starting balance, Apr 30 ($) field and press Tab.
  3. Type abc in the savings starting balance and press Tab.
  4. Click the down arrow on the first account.
  5. Click Credit cards. Enter Credit limit 5000, then type a Current balance of 1000 (watch the bar), APR 24.99 and Payment due day 40, then 15.
  6. Click Plan → Debt. Click Add and look at APR and Due day in the drawer, then Cancel.
  7. Gear → Categories. Note the count on Groceries. Click its ×.
  8. Type Pets and click Add category. Type pets and press Enter.
  9. Press F5.

Expected:

  • Each field saves when you leave it, with a message such as "Saved the name “Main”." No Save button.
  • The starting balance label shows the day before the first row (Apr 30). On Trends → Account balances, the checking balance goes up by $1,500. (Overview with All time ignores the starting balance; that is a known, pre-existing bug listed in the PR.)
  • abc gives "Enter an amount such as 1500.00." and the field is marked invalid.
  • The order changes, and the same arrow keeps focus.
  • The utilization bar follows the balance as you type (20% of $5,000). Due day 40 gives "Enter a day from 1 to 31."
  • The new debt drawer starts with APR 24.99 and due day 15.
  • Deleting Groceries shows "Deleted “Groceries”. N transactions moved to Other." Those rows show Other on Transactions.
  • Other, Transfer in and Transfer out have no ×.
  • pets gives "“pets” is already a category."
  • After F5, the name, order, starting balance, card fields, and the Groceries → Other move are all kept.

Before this fix: deleting a category only removed the name from the list; transactions kept it.

7. Settings: Data & reset (clean up, export/import)

  1. Click Data & reset. Read What FinLens has stored.
  2. Click Clear on Clear import log. Wait 5 seconds without clicking again.
  3. Click Clear twice on Clear import log.
  4. Click Export JSON.
  5. Click Clear twice on Clear transaction edits.
  6. Click Import JSON… and choose the file from step 4.
  7. Click Transactions and check a row moved to Other in test 6.

Expected:

  • "What FinLens has stored" lists counts for the database, settings (budgets, bills, …, API key or not) and the folder.
  • The first click shows "Click again to confirm" and goes back after 4 seconds. Two clicks show Cleared and disable the button.
  • Export downloads finlens-export-<date>.json. Open it in Notepad: it has cardDetails, and no API key.
  • After clearing edits, the Groceries rows go back to Groceries.
  • After importing the JSON, they show Other again.

8. Start over and the first run again

  1. On Data & reset, scroll to Start over. Leave "Keep a copy as finlens-state-backup-.json" selected.
  2. Type reset (lowercase). Then type RESET.
  3. Click Erase and start over and click OK on the message.
  4. Open finlens-test in File Explorer.

Expected:

  • The button stays disabled until RESET is typed exactly.
  • After the reload: the brand-only Welcome again.
  • finlens-test has finlens-state-backup-<date>.json and no finlens-state.json. The CSVs are unchanged.

9. Regression: other screens and narrow window

  1. Load the samples again (Try it with sample data).
  2. Visit Overview, Transactions and the five Plan screens in light and dark.
  3. Narrow the window below 1000px. Click ☰, then hover it.

Expected:

Please check before merging

https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft


Generated by Claude Code

…16.0)

- Trends: KPIs (average saved, savings rate, fastest-growing category,
  steadiest month), income/spending/savings bars, savings rate with a
  3-month average and a note from the numbers, account balance sparklines,
  top categories × months as shaded tiles. No Chart.js; range label hidden.
- AI Analysis: quick analyses with the mockup's labels (each sends an
  existing AI_PROMPTS question unchanged), your own question, an
  aria-live answer area, history (open again, export as Markdown), key
  pill. The request is byte-identical to v1.15.0's.
- Settings: six tabs in the mockup's words with arrow keys; General,
  Import (folder card, files, import log), Accounts (order, names,
  starting balances), Credit cards (balance, limit, new APR and due day),
  Categories (delete moves transactions to Other), Data & reset (stored
  data, clean up with confirm, JSON export/import, start over).
- Welcome: the Overview with no data; brand-only app bar on a true first
  run; "Try it with sample data" imports samples/ and your own files
  replace them.
- New stored fields: State.cardDetails, State.sampleData.
- Phone: the ☰ button shows × while the menu is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
In dark mode the most expensive months are the lightest tiles, so
"Darker cells" was wrong there. "Stronger shades" is true in both themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
At 390px the tab bar scrolls sideways, and every render started it at the
left, so Credit cards, Categories and Data & reset were selected but
off-screen. Each render now scrolls the selected tab into view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft

gitluis commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

New commit 70c7125: the selected Settings tab now stays in view on a phone.

At 390px the tab bar scrolls sideways, and every render reset it to the left. Credit cards, Categories and Data & reset were selected but off-screen. This was found while rebuilding #10 on top of this PR. It's a defect in this PR, so the fix goes on this branch.

  • Change: 7 lines in js/views-settings.js, plus one sentence in the 1.16.0 CHANGELOG entry. No version bump, because 1.16.0 isn't released yet.
  • New phone check: each of the 6 tabs is checked for being in view at 390px. 7/7 pass with the fix; without it, 3 fail (Credit cards, Categories, Data & reset).
  • Existing tests: test-clarity.js 55/55 and test-insights.js 137/137, re-run on 70c7125.

🤖 Generated with Claude Code

https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft


Generated by Claude Code

This was referenced Nov 2, 2026
gitluis pushed a commit that referenced this pull request Nov 2, 2026
…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
gitluis pushed a commit that referenced this pull request Nov 2, 2026
…e-tab

Merges cleanup-stale-docs-and-dead-code (#38), the top of the fix chain
stacked on #21, so #10 can merge last. No rebase.

Conflicts:
- Versions: 1.17.0 kept in the footer, README, Settings -> General and
  CLAUDE.md §1. CHANGELOG: 1.17.0, then 1.16.15 ... 1.16.1, then 1.16.0.
- CLAUDE.md: "Last updated" is #10's note followed by the chain's
  history; §3's views-db.js line names both the Database tab and the
  Changelog view that reads CHANGELOG.md.
- views-db.js: #10's rebuilt DB Schema code, with #30's plan link note
  ({type,id}); the Changelog banner keeps "4. CHANGELOG" with #38's
  text and code (loadChangelog(), no embedded copy).
- views-settings.js: #10's tab-bar comment and version line.
- #10's wording about the embedded changelog, which #38 removed, is
  updated in CLAUDE.md §19 and the 1.17.0 entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
Carries master's v1.10.3-v1.10.5 up the stack: declined answers (#14),
literal single "~" (#15) and the Import Logs race fix (#18).

Conflicts:
- js/views-ai.js: this branch rebuilt the AI tab around module state
  (aiPhase / aiPaint()), so #14's `respEl.innerHTML=aiRefusalHtml()`
  had nothing to write to. Ported it: a declined request sets
  aiPhase 'declined' and aiDeclined { question, category, explanation };
  aiPaint() shows aiRefusalHtml() (now a Clarity warn callout) and
  "You asked". Nothing goes to history or Copy. send() and the request
  are #14's, unchanged.
- CLAUDE.md §13: kept this branch's v1.16.0 bullets, added #15's
  single-"~" sentence and aiDeclined to the tab-state list; the
  "Last updated" line keeps 1.16.0 and adds the v1.10.3-v1.10.5 history.
- CHANGELOG 1.16.0 (AI Analysis): one line on how declined questions
  show in the new answer area. Versions stay 1.16.0.
- renderImportLog() keeps #18's guards; the Import tab's log already
  re-checks #impLog after the database read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBXzUjiQbYziDZ8CZft
gitluis pushed a commit that referenced this pull request Nov 2, 2026
…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
…ights

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBUZo6LRYpLthSp2PRi

# Conflicts:
#	CLAUDE.md
#	README.md
#	index.html
#	js/views-settings.js
…call it About

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Z8iBUZo6LRYpLthSp2PRi

gitluis commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

Dark theme taken out of the stack (Luis, 2026-11-04). #17 is light only for now: no ◐ toggle, no Light / Dark / Match system setting, no dark tokens. It comes back later in its own PR. #17's change was merged forward into this branch (no force push).


🤖 Generated with Claude Code

https://claude.ai/code/session_013Z8iBUZo6LRYpLthSp2PRi


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request redesign Part of the Clarity redesign

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants