Skip to content

UI redesign (NORTHERN LIGHT), native shell, password reset, housekeeping - #3

Draft
ctmakc wants to merge 1 commit into
mainfrom
claude/admiring-fermat-da24uc
Draft

ctmakc wants to merge 1 commit into
mainfrom
claude/admiring-fermat-da24uc

Conversation

@ctmakc

@ctmakc ctmakc commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Redesign. The CHART DATUM direction (flat teal ground, radius 0, no shadows, monospace money) is replaced by NORTHERN LIGHT: white plates on a warm-neutral ground with soft layered elevation, one brand green, amber for goals, violet for the AI CFO and every forecast, and the aurora gradient as the single signature (balance card, login panel, brand mark, the "+" tab). Tokens keep light-dark() and the @property registration that charts.js reads; the contrast floors enforced by test/fe-shell.test.js still hold in both themes. DESIGN.md is rewritten for the new direction.

Native shell. Desktop (≥1024px): fixed sidebar with the full grouped navigation plus a slim top bar (greeting, date, "Add transaction", theme toggle, user chip, log out). Phones/tablets: top bar with menu, a bottom tab bar (Home · Activity · + · Budgets · More) and the existing slide-in drawer. Modals become bottom sheets ≤640px, every table reflows into cards, transactions get merchant avatars (hue hashed from the description), loading shows skeletons instead of a spinner, the login page gets an aurora panel. Service-worker cache bumped to finman-v5.

Forgot / reset password (the audit's P0: a user who forgot the password was locked out for good).

  • POST /api/auth/forgot-password always answers the same 200; when the email has an account it mails a one-hour, single-use link through emailService (Resend). Only the SHA-256 of the token is stored (migrations/021_password_resets.js).
  • POST /api/auth/reset-password changes the password through User.update, which bumps token_version, so every JWT issued before the reset is revoked. Newer requests void older tokens.
  • Own rate-limit bucket (10 / 15 min) so a flood of reset requests cannot lock the login endpoint. APP_URL controls the origin of emailed links behind a proxy.
  • Login page: "Forgot your password?" form and the /reset-password?token=… form. test/password-reset.test.js covers the flow (generic reply, mailed token, weak password, bad/expired/reused token, old JWT dead, new login works, APP_URL).

Housekeeping.

  • jest.config.js pins TZ=America/Toronto: fe-review › ymd uses the local calendar failed in UTC containers.
  • moment, date-fns, express-validator were declared but never required: removed. Capacitor packages and nodemon (bumped to 3.x) moved to devDependencies so the production image stops shipping them. engines.node >= 22.
  • README: real bank list (no Tinkoff), the stale "stubs" note dropped, RESEND_API_KEY / MAIL_FROM / APP_URL documented. Auth rate-limit message is English like the rest of the shell.
  • Subscription icons: seeded names such as cloud / tv rendered as raw text; they now map to Font Awesome glyphs.

Test plan

  • Full npm test on this branch: 67 suites / 899 tests green, plus test/password-reset.test.js 6/6 (run separately; 905 total). The TZ-dependent date test now passes in a UTC container.
  • Screenshot tour (Playwright, 1440×900 and 390×844, light and dark) of every page: dashboard, transactions, accounts, budgets, goals, debts, investments, net worth, analytics, forecast, AI CFO, subscriptions, recurring, calendar, reports, family, split, settings, login, forgot/reset, drawer, add-transaction sheet
  • npm ls --omit=dev resolves with 22 production packages

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vur2p4TYPT5swMvJ15f43j

Redesign of the whole frontend, replacing the CHART DATUM direction that read
as austere: white plates on a warm-neutral ground, one brand green, amber for
goals, violet for the AI CFO and forecasts, and the aurora gradient as the one
signature (balance card, login panel, brand mark). Tokens keep light-dark()
and the @Property registration charts.js relies on; contrast floors hold.

Shell: fixed sidebar with the full grouped navigation on desktop plus a slim
top bar (greeting, date, "Add transaction", theme, user chip); on phones a
bottom tab bar (Home · Activity · + · Budgets · More) and the slide-in drawer.
Modals become bottom sheets under 640px; tables reflow into cards; the
transactions list shows merchant avatars; loading uses skeletons; the login
page gets an aurora panel. Service-worker cache bumped to v5.

Forgot / reset password: POST /api/auth/forgot-password mails a one-hour,
single-use link (SHA-256 of the token stored, migration 021); POST
/api/auth/reset-password changes the password through User.update so every
earlier JWT is revoked. Own rate-limit bucket, APP_URL for emailed links,
forms on the login page, tests.

Housekeeping: jest pins TZ=America/Toronto (the late-evening date test was
failing in UTC containers); unused moment/date-fns/express-validator removed,
Capacitor and nodemon moved to devDependencies, engines.node >= 22; README
bank list and env table corrected (no Tinkoff/stubs); subscription icons map
bare names to Font Awesome; DESIGN.md rewritten for the new direction.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vur2p4TYPT5swMvJ15f43j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant