Wire the settings store through the whole frontend: - Settings page: theme (light/dark/system), currency ($/€) with an editable USD→EUR rate, timezone, and a Claude subscription section (plan → Pro/Max 5×/ Max 20×, monthly cost, start date) with a live token-savings estimate. - Theme applied to <html> from settings + a pre-paint script in index.html to avoid a flash; "system" follows the OS. - fmtCost now renders in the chosen currency (USD→EUR via the rate); all cost displays convert automatically. - New tz-aware fmtDateTime / tzDay helpers; the day-by-day charts bucket by the chosen timezone. - Subscription is no longer hardcoded: analytics + the "since subscription" range + the dashboard value card all read plan/cost/start-date from settings, and show a "set up your subscription" prompt when unconfigured. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1.1 KiB
1.1 KiB