Repository navigation
feat(ui): the app takes the iOS app's palette - #109
Merged
Merged
Conversation
tokens.css now carries the phone's colours, in step with the box's theme.css: a blue-black ground, ink for the interface and its accent, one grid hue both ways, solar, a battery that stores in cyan and gives in orange (new --energy-gives), a violet car, and two states, --live and --alarm. Freshness reads them: live is --live, stale ink2. Every use of an energy name for a state moves: ok, done and confirmed to --live; failed, blocked, danger buttons and warnings that need action to --alarm. Battery and car flows that sat on the grid names take their own hue. Savings are ink, and so are prices, through the re-copied price chart and energy flow from the box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ftw-webapp | 2d0e83f | Commit Preview URL Branch Preview URL |
Oct 25 2026, 05:33 PM |
This was referenced Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Fredrik, 25 October 2026: the web app should take the iOS design, step by step. Step 1 was the tabs (#108). This is the palette, paired with the box page in srcfl/ftw#1857, which shares the tokens. Merge both together.
Contract-pair: srcfl/ftw@286ac14
The palette
From the iOS app (
ftw-appappleApp/FTWCharts/Theme.xcassets), light / dark:--live. Failed, refused, blocked and danger buttons →--alarm. New in both files:--live,--alarm,--energy-gives.--on-accent). About 15 places that hard-coded black or white text on the accent now read--on-accent.--fresh-liveis--live, and--fresh-staleis ink2.Before and after, the box page against the home box (read only) and the web app on the demo:
Choices a reviewer may want to change
--alarmin some places: control warnings (as the iOS control sheet does), the forecast's "waiting for data", and "charger saved with warnings". "Unconfirmed" in Plan could be ink2 instead.Not done yet
Canvases and palettes with raw hex values do not read roles, so they keep the old colours. This covers the box's
plan.jsprice bars (green/red) and charge/discharge, theenergy-history.jsseries,heating.js,BATTERY_PALETTE/EV_PALETTEinapp.js, and some raw rgba instyle.css. The webapp's stats page has its own palette. These are the next step.Re-copied components
ftw-energy-flow.jsandftw-price-chart.jsare copied again from the box branch, with headers stamped and digests re-recorded. The copies also bring two master changes the web app had not taken yet: the estimated-load mark, and polling that pauses while hidden (the app feeds the chart, so it skips polling).Checks
npm run verify: svelte-check 0 errors, 1 133 tests, 48 stats tests, both builds.flow.test.tsbattery colours updated.check-token-drift.mjsagainst the box branch: no drift.🤖 Generated with Claude Code