diff --git a/frontend/src/pages/CreatorDetail.tsx b/frontend/src/pages/CreatorDetail.tsx index 672709e..2b70de4 100644 --- a/frontend/src/pages/CreatorDetail.tsx +++ b/frontend/src/pages/CreatorDetail.tsx @@ -106,8 +106,25 @@ export default function CreatorDetail() { )} {creator.video_count} video{creator.video_count !== 1 ? "s" : ""} - · - {creator.view_count.toLocaleString()} views + {techniques.length > 0 && ( + <> + · + {Object.entries( + techniques.reduce>((acc, t) => { + const cat = t.topic_category || "Uncategorized"; + acc[cat] = (acc[cat] || 0) + 1; + return acc; + }, {}), + ) + .sort(([, a], [, b]) => b - a) + .map(([cat, count], i) => ( + + {i > 0 && ·} + {cat}: {count} + + ))} + + )}