fix(frontend): suppress shows when type filter active; clarify grouped type labels
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user