Skip to content

feat(stats): the stats page takes the iOS app's palette - #111

Merged
frahlg merged 1 commit into
mainfrom
web-ios-charts
Oct 25, 2026
Merged

frahlg merged 1 commit into
mainfrom
web-ios-charts

Conversation

@frahlg

@frahlg frahlg commented Oct 25, 2026

Copy link
Copy Markdown
Member

Follow-up to #109. The stats Worker's dashboard (stats/src/dashboard.ts) carried its own copy of the old palette.

  • It now uses the iOS palette, with a light theme through prefers-color-scheme (meta dark light).
  • The accent, eyebrows, charts and bars are ink.
  • A source's dot is live when fresh and ink2 when stale (class stale). A failed collector is alarm (class alarm). Before, both were the same amber warn dot.
  • The error notice uses the alarm tint, and the warm radial glow is gone.
  • New tests/stats-palette.test.ts holds the Worker's copy of the colours to tokens.css in both themes and keeps raw colours out of the rules. tests/stats-dashboard.test.ts checks .dot.stale and a failed collector's .dot.alarm.

Evidence: before and after shots of a local render of dashboardDocument(), fed with public stats.ftw.energy/api/public data, dark and light. npm run verify passes, including the stats tsc, wrangler types and the Workers-pool suite.

Box-page charts are srcfl/ftw#1859. The two do not depend on each other.

🤖 Generated with Claude Code

stats.ftw.energy kept its own warm palette with an orange accent and no
light theme. It now carries the app's roles from src/styles/tokens.css:
the blue-black ground, ink for the interface and the charts, live for a
fresh source and alarm for a failed collector, with a light theme that
follows the device. A stale source falls to ink2, as freshness does in
the app, so a stale feed and a failed collector no longer share one
amber dot. The warm glow behind the page is gone.

tests/stats-palette.test.ts holds the Worker's copy of the roles to
tokens.css in both themes and keeps raw colours out of the rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ftw-webapp 263d218 Commit Preview URL

Branch Preview URL
Oct 25 2026, 06:24 PM

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T18:26:43.906227Z 263d218 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit c6e66d7 into main Oct 25, 2026
3 checks passed
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