Play the whole season on the virtual strip (#151) #172
No reviewers
Labels
No labels
area/ai
area/backend
area/frontend
area/infra
area/scheduler
area/wled
good-first-issue
priority/high
priority/low
priority/medium
security
type/bug
type/chore
type/ci-cd
type/docs
type/feature
type/qa
v1.0.0
v1.1.0
v1.2.0
v2.0.0
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/Iris-WLED!172
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/151-season-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #151.
Why
Reviewing a season meant opening schemes one at a time. Nothing answered "what will the house look like over the next two months?"
What
GET /api/v1/schemes/for-range?start=&days=(60 by default, capped at 120, viewer-accessible) loops over #149'splan_for_rangeand adds no resolution of its own.segments_statecomes fromplan.wled_state, so the preview shows what the on job will actually push:flash_substitutionsis included per night, and the caption notes it./schemes/for-date, so the two can't disagree.The
/seasonpage is linked from a clapperboard icon in the header.colorAtrenderer, Play (1 night/s, adjustable), a scrubber, ← / → and prev/next, and a caption.MediaRecorder, feature-detected.prefers-reduced-motion: still swatches, with the same controls.Refactor: canvas drawing moved to
virtualStrip.ts/useVirtualStrip.ts. The side-panel preview and the season preview now draw the same way, and the side panel keeps #150's guard exactly as it is on main.Verification (rebased onto
mainwith #149, #150 and #164 in)plan_for_dateacross all 5 settings combinations, and every serialised scheme againstfor-date. Guard on/off cases use real Strobe atsx255 and real Lightning. ruff and mypy are clean.tsc, vitest (187 passed) and build./seasondirectly (now possible because of #164), stepping and playing, and a marker link landing on the right night. It was also run once in demo mode, where the video export produced a.webm.Found
Demo mode's showcase schemes are approved with no segments, so those nights preview unlit. The preview is reporting that accurately. Filed as #171.
🤖 Generated with Claude Code