Skip to content

feat(web): show car charge levels and upcoming charging in the site plan - #1295

Merged
frahlg merged 6 commits into
masterfrom
feat/vehicle-charge-limit-ui
Sep 17, 2026
Merged

frahlg merged 6 commits into
masterfrom
feat/vehicle-charge-limit-ui

Conversation

@frahlg

@frahlg frahlg commented Sep 17, 2026

Copy link
Copy Markdown
Member

A charging goal should show what FTW knows about the car and when it plans to charge. This adds a “Car’s charge limit” goal, shows the current battery level and car limit with their sources, and adds readable charging windows to the car view, Overview and the household Plan.

Existing percentage goals keep their values. The new goal choice requires Core’s vehicle_limit_goal_supported flag from merged #1297. The car-limit goal uses only Core’s goal_complete for completion; a 100% planning fallback or estimated level never confirms it. Charge now still sends a manual hold without a percentage release cap.

The level display reads fresh vehicle_soc and vehicle_charge_limit separately from the controller’s current_soc estimate. When car data is missing, users can correct the current estimate and see that the car limit is unknown. There is no manual car-limit hint in Core yet; this UI does not invent one or reuse schedule.soc for it. Pending writes, restart persistence failures and unavailable readings remain visible.

The shared timeline shows upcoming windows, local dates, and planned energy. Pending, outdated, paused, manual and unavailable states do not display old windows as a current schedule. Energy clipped to the visible period is marked approximate. The household chart and briefing now sum loadpoint_power_w across cars, falling back to loadpoint_w for older plans without counting both.

Validation: 638 web tests pass; make verify passes. Rendered car and household-plan views were checked with labeled local sample data, including mobile at 390 px, desktop, light/dark themes, missing car data, pending plans, current-level editing and percentage-goal preservation. The corrected preview includes the whole car plan view. No physical charging or box install was performed.

Draft while Fredrik reviews the revised UI. Core #1297 and storage #1300 are already on this branch’s base. Related EV work: #1293. The visibility polling code from open #1177 is preserved; these changes extend its existing fetch batch and plan rendering. Index edits are confined to plan content and do not alter the map assets from #1219 or settings asset from #1003.

@frahlg frahlg changed the title feat(web): choose the car charge limit as a goal feat(web): show car charge levels and upcoming charging in the site plan Sep 17, 2026
@frahlg
frahlg marked this pull request as ready for review September 17, 2026 16:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-17T16:53:48.026993Z 0f5a123 Draft marked ready
ℹ️ 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.

@frahlg
frahlg merged commit 2390e61 into master Sep 17, 2026
13 checks passed
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.

1 participant