Repository navigation
feat(web/plan): add "?" help modal explaining the monetary numbers - #228
Merged
Merged
Conversation
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
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.
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:start SoC,expected cost / earnings(SEK over the horizon, negative = expected earnings),replanned … ago.vs no battery,vs self-consumption,vs flat avg priceactually compare against, and what green+/ red−mean.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 viacomponents/index.js).Files
web/index.html—?button in the chart header + new<ftw-modal id="plan-help-modal">bodyweb/next.css— styling for.plan-help-btnand.plan-help-bodyweb/plan.js— wires the button click tohelpModal.open()Test plan
?next to "Plan" → modal opens with the explanation<ftw-modal>)--accent-e)plan-summary+Replanbutton on narrow viewportshttps://claude.ai/code/session_01VrKcnq6zQS87xtMmkMotov
Generated by Claude Code