Skip to content

feat(web/plan): add "?" help modal explaining the monetary numbers - #228

Merged
frahlg merged 1 commit into
masterfrom
claude/add-plan-explanation-fkZFd
Apr 30, 2026
Merged

frahlg merged 1 commit into
masterfrom
claude/add-plan-explanation-fkZFd

Conversation

@frahlg

@frahlg frahlg commented Apr 30, 2026

Copy link
Copy Markdown
Member

Summary

User feedback: operators couldn't tell what the öre / SEK figures in the Plan section actually mean. The hover tooltips already cover most of it but they're hard to discover.

Adds a small ? button next to the Plan heading that opens an <ftw-modal> with a structured rundown of every monetary number:

  • Header line — start SoC, expected cost / earnings (SEK over the horizon, negative = expected earnings), replanned … ago.
  • Price bars — each 15-min slot is stacked as spot (Nord Pool wholesale, tercile-coloured) + grid tariff (fixed öre/kWh) + VAT (moms). Matching colour swatches in the modal so the explanation maps back to the chart segments.
  • Savings badges — what vs no battery, vs self-consumption, vs flat avg price actually compare against, and what green + / red − mean.
  • Note that prices are in öre/kWh and totals in SEK (1 SEK = 100 öre).

DESIGN.md compliant: tokens only (--accent-e, --line, --fg-dim, --fg-muted), 1 px hairline border on the round button, no drop shadow, sans for prose. Reuses the existing <ftw-modal> component (already loaded via components/index.js).

Files

  • web/index.html — ? button in the chart header + new <ftw-modal id="plan-help-modal"> body
  • web/next.css — styling for .plan-help-btn and .plan-help-body
  • web/plan.js — wires the button click to helpModal.open()

Test plan

  • Click the ? next to "Plan" → modal opens with the explanation
  • ESC and backdrop-click both close the modal (inherited from <ftw-modal>)
  • Button hover lights up amber (--accent-e)
  • Layout still looks right next to the existing plan-summary + Replan button on narrow viewports
  • Light theme: button border and modal text remain legible (no hardcoded hex)

https://claude.ai/code/session_01VrKcnq6zQS87xtMmkMotov


Generated by Claude Code

Operators kept asking what the öre/SEK figures in the Plan section
actually mean. Tooltips on hover already covered most of it, but they're
hard to discover. Surface the same explanations as a single "?" button
next to the Plan heading — opens an ftw-modal with a structured rundown
of the header line (start SoC, expected cost / earnings, replanned ago),
the price-bar stack (spot + grid tariff + VAT in öre/kWh), and the three
savings badges (vs no battery, vs SC, vs flat avg price).

https://claude.ai/code/session_01VrKcnq6zQS87xtMmkMotov
@frahlg
frahlg merged commit da32098 into master Apr 30, 2026
1 check passed
@frahlg
frahlg deleted the claude/add-plan-explanation-fkZFd branch August 7, 2026 08:15
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