mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 11:06:16 -08:00
The timeline declared a `selectedDate` input but never read it: `viewDayKey` seeded to today and only local `commitDay` navigation mutated it, so a programmatic host change was ignored and a preserved non-today date reset to today on (re)mount — the panel showed today/empty-day while the host pointed at another day (the old EpgList honored the controlled input). Flagged by Codex. Seed `viewDayKey` from `selectedDate` via `linkedSignal` so it initializes from and follows the host, while local day navigation still overrides via `.set()`. Steady state is unchanged: the host echoes back the emitted key, so the signal recomputes to the same value (no loop, no flicker). Regression coverage: two specs assert a controlled non-today `selectedDate` renders the ribbon on that day and follows a programmatic change. ui-epg 80, portal-shared-ui + playlist-m3u green; lint clean; component 399 lines. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>