Hard-filter /portfolio/:slug when it matches a category

Category chips (e.g. /portfolio/photography) now show only that
category — empty if none. Audience views like /portfolio/game-dev
still use prioritization.
This commit is contained in:
2026-07-24 11:19:47 -04:00
parent 81e80c7e2f
commit f29efb7924
3 changed files with 93 additions and 13 deletions
+4
View File
@@ -105,12 +105,16 @@ export interface ListMeta {
perPage: number;
total: number;
totalPages: number;
/** all | category (hard filter) | view (audience prioritization) */
mode?: "all" | "category" | "view";
category?: Category;
view?: {
slug: string;
name: string;
description?: string | null;
categories?: Category[];
};
search?: boolean;
}
async function request<T>(path: string, init?: RequestInit): Promise<T> {