From dc194c4e548d00c417b3177ffa951b5c8a10d9ad Mon Sep 17 00:00:00 2001 From: Quick <31828688+Quick104@users.noreply.github.com> Date: Fri, 29 May 2026 14:24:18 -0400 Subject: [PATCH] feat(calendar): hide server-wide Popular preset in web UI for now Popular reflects server-wide watch counts, which are sparse on a low-traffic server. Hidden from the selector, URL allowlist, and empty-state nudge; backend filter and the CalendarFilter type are left intact so re-enabling is a one-line change. Co-Authored-By: Claude Opus 4.8 (1M context) --- web/src/pages/Calendar.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/web/src/pages/Calendar.tsx b/web/src/pages/Calendar.tsx index a6bb9936..7eff7edf 100644 --- a/web/src/pages/Calendar.tsx +++ b/web/src/pages/Calendar.tsx @@ -19,9 +19,11 @@ import { addWeeks, formatDayHeading, getWeekDays, getWeekStart } from "@/lib/cal type CalendarFilter = "following" | "popular" | "trending" | "everything"; +// "popular" (server-wide most-watched) is hidden for now — it's sparse until the +// server has enough watch history. Re-add the entry here and in KNOWN_FILTERS to +// surface it; the backend filter remains supported. const PRESET_OPTIONS: { value: CalendarFilter; label: string }[] = [ { value: "following", label: "Following" }, - { value: "popular", label: "Popular" }, { value: "trending", label: "Trending" }, { value: "everything", label: "All" }, ]; @@ -32,7 +34,6 @@ const PRESET_STORAGE_KEY = "calendar:preset"; // Accept the four presets plus legacy server values so old shared links keep working. const KNOWN_FILTERS = new Set([ "following", - "popular", "trending", "everything", "all", @@ -276,14 +277,6 @@ function CalendarEmpty({

{!isEverything && (
-