Skip to content

feat(web): fewer explaining words on the box's page - #2066

Open
frahlg wants to merge 1 commit into
masterfrom
fewer-words
Open

frahlg wants to merge 1 commit into
masterfrom
fewer-words

Conversation

@frahlg

@frahlg frahlg commented Nov 22, 2026

Copy link
Copy Markdown
Member

Problem

A tester on v0.166.0-beta.1 (xorath, 21 Nov 2026): "a little overwhelming explaining texts everywhere, I think most can be simplified".

Counted on the home box's page in the simple view, with live data: on the Plan page 235 of 341 words sat in sentences that explain rather than show. Every page opened with a sentence under its title that said what the page holds, and each History card had one more.

Change

One rule, added to the product rules in AGENTS.md: a screen shows facts. Explain only when something is off, or one tap away; cut a sentence that says what the screen already shows.

Cut:

  • the sentence under each page title (Overview, Energy, Plan, History, More) and its CSS;
  • the paragraph over the plan chart; tomorrow's price time (about 13:00) moved into the ? help, which already explains the bars;
  • the help report's blurb (the button says it);
  • "Safety limits are the same in every style.";
  • "Planned charging · times can change as FTW replans." under the car's windows;
  • the History blurbs: "Daily totals from the same readings used by Energy today.", "Compare home use and solar with energy bought from or sold to the grid.", and the two disclosure lines for source data and past plan decisions.

Shorter:

Before After
Plans on the forecast as it is. Earns the most when it is right and costs more when it is wrong. Plans on the forecast as it is.
Plans for a poor day: much less sun and more use than forecast. Keeps the most in the battery. Plans for much less sun and more use than forecast.
Plans for a little less sun and a little more use than forecast. A good start for most homes. Plans for a little less sun and a little more use than forecast.
Rest of today: the forecast expects 12.4 kWh more sun than your home uses. The plan counts on 3.1 kWh of it. Rest of today: the plan counts on 3.1 kWh of 12.4 kWh spare sun.
(same line when the plan counts on all of it, or there is no spare sun) (no line)
Sun beyond what your home and the plan need goes partly into the battery and partly to the grid. Spare sun goes partly into the battery and partly to the grid.
Allow the battery to sell to the grid when the plan expects a worthwhile sale. Let the battery sell to the grid when it pays.
Solar can still export when this is off. Check your electricity contract. Solar still exports when this is off.
Battery export is allowed, but FTW found no worthwhile sale. No worthwhile sale ahead.
No active safety adjustment / Safety limits remain active. (nothing until something adjusts)
No charge window yet for this goal. Choose Charge now if you need to charge immediately. No charge window yet. Choose Charge now to charge at once.
Based on FTW's configured spot price, network tariff and VAT. At the spot price, grid fee and VAT set in FTW.
Some measurements are missing. Working devices keep recording; gaps are unknown. Some measurements are missing.
Home use includes estimates for brief balance failures. Home use includes estimates.

Moved to the Advanced view: the planner's workings in the line over the plan (mode, horizon, slots, solver, DP shadow, start SoC) and the Planner cell (native / value_curve_rust, "Plan result: Optimal"). The simple view keeps the expected cost and when the plan was made. The plan's cells now take one column each for the cells shown, so a hidden cell leaves no empty column.

Kept: every warning, fault and next step, the fallback alert, the forecast-margin warning (shorter), the ? help, settings help.

Evidence

Words on each page in the simple view, read against the home box through a read-only proxy (GET only, /api/config blocked):

Page Before After
Overview 164 146
Energy 114 89
Plan 341 172
History 123 80
More 38 28
  • Reviewed in the browser at 1280 px and 375 px, in the simple and the Advanced view. No console errors beyond the proxy's refusals.
  • npm test: 956 pass.
  • make verify: pass (88 Go packages ok, vet and build clean).

Text-only changes in web/index.html overlap the open #2016 and #1862; whichever lands second needs a small rebase.

The iPhone app gets the same rule in a paired PR in the app repo.

🤖 Generated with Claude Code

A tester found explaining text everywhere. On the Plan page two of every
three words explained instead of showed.

Drop the sentence under each page title, the plan chart's paragraph, the
help report's blurb and the History cards' blurbs. Shorten the planning
style captions, the export permission and the sun lines; the sun line now
speaks only while the plan holds spare sun back. Say nothing when nothing
adjusts the plan. Move the planner's workings to the Advanced view and let
the plan's cells fill the row they have.

Add the rule to AGENTS.md: a screen shows facts, and explains only when
something is off or one tap away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T08:32:17.750925Z 990a79a 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.

@miravoss26 miravoss26 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strips explanatory copy from the box's page (page subtitles, History card blurbs, Plan chart paragraph, help-report blurb, a few shortened captions). Moves planner internals to Advanced and hides the empty "no active adjustment" line. Tests updated to match, CI green.

  • low, web/index.html (export row): the old help said "Check your electricity contract." The new one is just "Solar still exports when this is off." Selling from the battery can have contract implications, so I'd keep a one-clause pointer, maybe behind the "?" help.
  • nit, web/app.css: #plan-constraint:empty { display:none } only works while the JS sets textContent = '' and leaves no whitespace node. The test pins brief.constraint === '', so that holds today.
  • nit: the .view-heading test regex requires <section class="view-heading">. A new heading with another wrapper skips the guard silently.

No secrets, new deps or network calls. Safe to merge from my read; the export-row wording is your call.

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.

2 participants