Edge Health time-window toggle (24h / 7d / 30d) — parked 2026-05-17
DARE.CO.UK · PARKED SKETCH · 2026-05-17
Mirrored from ~/.claude/.../memory/project_edge_health_time_toggle_parked.md. This is a design sketch parked for future build — read for context, not as a current deliverable.
Dan’s end-of-day ask 2026-05-17. Add a pill-style time-window toggle (24h / 7d / 30d) above the Edge Health 4-card row. Verified 2026-05-17 evening — both adapters (httpRequests1hGroups for 24h, httpRequests1dGroups for 7d/30d) already wired in dare_cf_analytics.py; build is ~45 min UI binding + per-card reframe per window. 90d stays as the static cards’ baseline, not a toggle option.
Dan, 2026-05-17 end-of-day: “add a toggle to ‘edge health’, similar pattern [screenshot of 24h / 7d / 30d pill]. Plumbing is complete already, should be easy enough to model. It should give great feedback.”
Visual reference (Dan’s screenshot):

Same pattern as the existing Trend/Live cache-chart toggle and the Weekday/Month bar-chart toggle. Pill background, dark-filled active state, light hover.
Why “plumbing is already complete”:
The current Edge Health adapter (_edge_health_cards() in dare_cf_analytics.py) queries CDN, security layer, and DNS provider sitting in front of dare.co.uk.">CF GraphQL via httpRequests1hGroups (or similar). The same query accepts arbitrary time-range parameters — 24h is the current default; 7d and 30d are 1-line since/until adjustments. The card-rendering function takes the resulting numbers; no re-architecting needed.
Sketch: