Skip to content

Remove the cost-mode toggle from the temporal view#48

Closed
IanMayo wants to merge 1 commit into
mainfrom
claude/relaxed-carson-8tnT3
Closed

Remove the cost-mode toggle from the temporal view#48
IanMayo wants to merge 1 commit into
mainfrom
claude/relaxed-carson-8tnT3

Conversation

@IanMayo

@IanMayo IanMayo commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What

Removes the temporal view's cost-mode toggle, so each temporal layer always shows the temporal-only Δ from the permanent base (day/night, time-varying zones, and the worst-case weather impact) over a transparent background — the view's original default.

Why

This PR originally surfaced a Cost shown: Total / Temporal Only toggle. On review the Total mode — the full composite cost for that time (permanent + temporal), heat-shaded — didn't read well in practice. With Total dropped there is nothing to toggle between, so the control is removed entirely rather than left as a one-option stub.

Changes

  • Remove the cost-mode control row, its state, and the CostMode type.
  • Drop the Total branch in buildSlice; it now always builds the temporal-only Δ geometry.
  • Remove the now-unused BaseInfo.baseNorm (only the Total heat path read it; the permanent base still uses its own local normaliser).
  • Remove the Scene temporal prop — slices are always transparent, so they never write depth (depthWrite={false}).

Net effect vs main: +20 / −54 in src/ui/temporal/TemporalView.tsx. No engine, store, or domain changes.

Checks

npm run typecheck, npm run lint, npm run test:run (139 passed), and npm run build all pass locally.

https://claude.ai/code/session_01CvVH7S4BmmLtfxLmr86Ahw

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-06 15:22 UTC

The temporal stack's Total mode — the full composite cost for that time
(permanent + temporal), heat-shaded — didn't read well in practice, so drop
it. With Total gone there is nothing to toggle between, so remove the
cost-mode control entirely: each temporal layer now always shows the
temporal-only Δ from the permanent base (day/night, time-varying zones,
worst-case weather) over a transparent background, which was already the
view's default.

This strips the now-dead Total path: the cost-mode state and type, the Total
branch in buildSlice, the unused BaseInfo.baseNorm, and the Scene `temporal`
prop (slices are always transparent, so they never write depth).
@IanMayo IanMayo force-pushed the claude/relaxed-carson-8tnT3 branch from e56ba79 to 6ed83db Compare June 6, 2026 14:54
@IanMayo IanMayo changed the title Add "Cost shown: Total / Temporal Only" toggle to the temporal view Remove the cost-mode toggle from the temporal view Jun 6, 2026
@IanMayo

IanMayo commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

drop - leave existing behaviour

@IanMayo IanMayo closed this Jun 6, 2026
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