Skip to content

docs: reframe the What If page around the web UI, and refresh the intro pages - #4389

Merged
springfall2008 merged 3 commits into
mainfrom
docs/whatif-webui-first
Jul 30, 2026
Merged

docs: reframe the What If page around the web UI, and refresh the intro pages#4389
springfall2008 merged 3 commits into
mainfrom
docs/whatif-webui-first

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

The What If Annual Prediction page opened with the methodology and then 110 lines of YAML config reference, and did not mention the WhatIf tab until line 174. The reader most likely to be on that page — someone who will only ever use the web form — had to wade through a config file aimed at the minority who script it. The opening line even described the whole thing as "a standalone command line tool".

What changed

Reordered, not rewritten. The sections themselves are almost entirely untouched — the caveats in them are carefully worded and worth keeping exactly as they are. What moved is the order; what I rewrote is the connective tissue at the seams.

The new order:

  1. What it answers — "what would solar and a battery actually save me?"
  2. Using the WhatIf tab — the three pages, the form, running, results, comparing
  3. What the numbers mean — statuses, the fields, cost and payback, quotes
  4. How it works — sampling, forecast-vs-actual, P10, car charging
  5. Limitations
  6. Advanced: running it from the command line
  7. Advanced: the configuration file
  8. Debugging a run

Both Advanced sections now say plainly who they are for, so a web-only reader knows they can stop at Limitations.

Checks

  • A sorted-line diff of before and after confirms no content was lost in the move — every dropped line is accounted for by an intentional rewrite (headings, the intro, three reframed section openers).
  • All five internal anchors still resolve to real headings; reordering is exactly where those break.
  • pre-commit clean.

Docs-only: one commit, one file.

🤖 Generated with Claude Code

The page opened with the methodology and then 110 lines of YAML, and did not
mention the WhatIf tab until line 174 - so the reader most likely to be on it,
someone who will only ever use the web form, had to wade through a config file
reference aimed at the minority who script it. The first line even called the
whole thing "a standalone command line tool".

Reordered, not rewritten: the sections themselves are almost entirely
unchanged, since the caveats in them are carefully worded. What moved is the
order, and what changed is the connective tissue around the seams.

Now: what it answers, then using the WhatIf tab, then what the numbers mean,
then how it works, then limitations - with running it from the command line and
the configuration file as clearly-labelled Advanced sections at the end, and
debugging after those.

Verified no content was lost in the move with a sorted-line diff, and that all
five internal anchors still resolve.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 30, 2026 13:58

Copilot AI 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.

Pull request overview

This PR reorganizes the What If Annual Prediction documentation so that web-UI users hit the WhatIf tab workflow first, with CLI/config-file details moved into clearly-marked “Advanced” sections later in the page.

Changes:

  • Replaced the intro to focus on the “What would solar and a battery actually save me?” question and immediately route users to the WhatIf tab.
  • Reordered major sections so that web UI usage and result interpretation come before methodology, limitations, and advanced CLI/config reference.
  • Adjusted cross-references so internal links point to the new “Advanced” headings.

springfall2008 and others added 2 commits July 30, 2026 16:01
It sat under "Viewing Predbat data" beside output-data, web-interface and
compare - all pages about inspecting a Predbat that is already running against
your hardware. What If is a different thing: a standalone projection you can
run before owning any of it, which is exactly the reader the page now opens
for.

Its own top-level section, immediately after the viewing pages. The file name
is unchanged, so no existing link or bookmark breaks - it is referenced only
from the nav.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The intro pages were accurate but had fallen behind. Nothing in them was
wrong; several things were simply missing.

index.md listed the supported inverters explicitly but omitted Deye and
Enphase, both registered components with documented apps.yaml settings - an
explicit list that leaves something out reads as "not supported". Both are
cloud-only, so they say so.

what-does-predbat-do.md said energy pricing came from "the Octopus Energy
integration", which has not been the whole story for a while: Kraken covers
EDF and E.ON Next, Energidataservice and Strømligning cover Denmark, spot-rate
sensors cover elsewhere, and Axle VPP events are handled too.

It also described load prediction as coming from history alone, with no mention
of the neural network that now learns time-of-day and day-of-week patterns
alongside it, and listed neither Compare nor What If among the features.

What If is called out on the index page as well, under its own heading: it is
the one part of Predbat that needs no hardware and no configuration, so it is
what a reader who has not bought anything yet can actually use today.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@springfall2008 springfall2008 changed the title docs: lead the What If page with the web UI, config file last docs: reframe the What If page around the web UI, and refresh the intro pages Jul 30, 2026
@springfall2008 springfall2008 added the documentation Improvements or additions to documentation label Jul 30, 2026
@springfall2008
springfall2008 merged commit 259fbfb into main Jul 30, 2026
2 checks passed
@springfall2008
springfall2008 deleted the docs/whatif-webui-first branch July 30, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants