From e18cec023b37a4fb3018432284b56b5da916095a Mon Sep 17 00:00:00 2001 From: Arnaud Gissinger Date: Mon, 13 Jul 2026 16:43:54 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20feat:=20tag=20page=20lists=20ev?= =?UTF-8?q?ery=20node=20kind=20(issues,=20solutions,=20case=20studies)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /tag/[slug] page called /api/issues, which only returns top-level issues, so a tag's page showed a handful of nodes while the topics index badge counted every tagged issue and solution (e.g. "17" vs "Found 2"). Add /api/tag/[slug]: returns all approved, non-spam issues and solutions carrying the tag, plus the case studies attached to any tagged solution (case studies have no tags of their own, so they surface transitively). Filters match /api/tags. The page now groups results into Issues, Solutions, and Case studies sections with per-kind counts. Extend the /api/tags `uses` badge to also count those transitive case studies so the badge equals the page total again. Co-Authored-By: Claude Opus 4.8 (1M context) --- app/pages/tag/[slug].vue | 129 ++++++++++++++++++++++------------- server/api/tag/[slug].get.ts | 71 +++++++++++++++++++ server/api/tags.get.ts | 24 +++++-- 3 files changed, 174 insertions(+), 50 deletions(-) create mode 100644 server/api/tag/[slug].get.ts diff --git a/app/pages/tag/[slug].vue b/app/pages/tag/[slug].vue index 7189518..572e87f 100644 --- a/app/pages/tag/[slug].vue +++ b/app/pages/tag/[slug].vue @@ -1,7 +1,7 @@