fix(frontend): suppress shows when type filter active; clarify grouped type labels

This commit is contained in:
2026-03-20 01:53:13 +01:00
parent 137251fe37
commit 3662a5ab9e
2 changed files with 5 additions and 4 deletions

View File

@@ -62,7 +62,8 @@ export function LibraryGrid({
function renderContent() { function renderContent() {
if (isGroupedTopLevel) { if (isGroupedTopLevel) {
const shows = showsData ?? []; // Only show TV show tiles when no type filter is active — "Movies"/"Shorts" should not include shows
const shows = !filter.type ? (showsData ?? []) : [];
const nonEpisodes = items.filter(i => i.content_type !== "episode"); const nonEpisodes = items.filter(i => i.content_type !== "episode");
const loading = showsLoading; const loading = showsLoading;

View File

@@ -25,9 +25,9 @@ const CONTENT_TYPES_ALL = [
]; ];
const CONTENT_TYPES_GROUPED = [ const CONTENT_TYPES_GROUPED = [
{ value: ALL, label: "All types" }, { value: ALL, label: "All (shows + movies)" },
{ value: "movie", label: "Movies" }, { value: "movie", label: "Movies only" },
{ value: "short", label: "Shorts" }, { value: "short", label: "Shorts only" },
]; ];
export function LibrarySidebar({ filter, onFilterChange, viewMode, drilldown, onBack }: Props) { export function LibrarySidebar({ filter, onFilterChange, viewMode, drilldown, onBack }: Props) {