From 5b89481104e7c153597b3e6dd14a567b622bb0b9 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Fri, 20 Mar 2026 01:19:00 +0100 Subject: [PATCH] feat(frontend): extend schedule dialog to support show/series selection --- .../library/components/schedule-from-library-dialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/k-tv-frontend/app/(main)/library/components/schedule-from-library-dialog.tsx b/k-tv-frontend/app/(main)/library/components/schedule-from-library-dialog.tsx index 674a092..697dd3e 100644 --- a/k-tv-frontend/app/(main)/library/components/schedule-from-library-dialog.tsx +++ b/k-tv-frontend/app/(main)/library/components/schedule-from-library-dialog.tsx @@ -114,8 +114,12 @@ export function ScheduleFromLibraryDialog({ selectedItems, selectedShows }: Prop const canConfirm = !!channelId && selectedDays.size > 0; const daysLabel = [...selectedDays].map(d => WEEKDAY_LABELS[d]).join(", "); + const hasShows = selectedShows && selectedShows.length > 0; + const contentLabel = hasShows + ? (selectedShows!.length === 1 ? selectedShows![0].series_name : `${selectedShows!.length} shows`) + : `${selectedItems.length} item(s)`; const preview = canConfirm - ? `${selectedDays.size} block(s) will be created on ${selectedChannel?.name} — ${daysLabel} at ${startTime}, ${strategy}` + ? `${selectedDays.size} block(s) of ${contentLabel} will be created on ${selectedChannel?.name} — ${daysLabel} at ${startTime}, ${strategy}` : null; return (