From 983ab3ac53aae5b5f62b2ef32e9c65bddd841c18 Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Mon, 5 Oct 2026 10:36:21 -0400 Subject: [PATCH] feature: watch highlights open on all time when this week has no plays --- components/watch/WatchHighlights.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/components/watch/WatchHighlights.vue b/components/watch/WatchHighlights.vue index 5a6d39c11..c5dad9306 100644 --- a/components/watch/WatchHighlights.vue +++ b/components/watch/WatchHighlights.vue @@ -81,6 +81,9 @@ function clipsWhere() { return where; } +// A quiet week opens on all time rather than an empty grid. +let widenOnEmpty = true; + let requestId = 0; async function fetchClips() { if (props.ghost) return; @@ -102,7 +105,14 @@ async function fetchClips() { fetchPolicy: "network-only", }); if (id !== requestId) return; - clips.value = ((data as any)?.match_clips ?? []) as Clip[]; + const list = ((data as any)?.match_clips ?? []) as Clip[]; + if (widenOnEmpty && list.length === 0 && range.value === "week") { + widenOnEmpty = false; + range.value = "all"; + return; + } + widenOnEmpty = false; + clips.value = list; } catch (error) { console.error("[watch] highlights fetch error:", error); } finally {