From 3f2c73b2109f097a5a683117650a3b3611501c4d Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 1 Jun 2026 20:46:22 +0000 Subject: [PATCH] Phase B2: grouping pills + Explore-by-family (frontend) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "wander" layer for the multi-tag model, sitting beneath the brief: - Cards show up to 3 tappable grouping pills (the article's tags), falling back to the primary topic for articles the re-tag hasn't reached. Tap a pill → that tag's lane. Tags read as little doorways, not metadata confetti. - New tag-lane view (select 'tag:' → /api/feed?tag=) with a calm heading and the parent family's description as subtitle. - Replace the flat "Explore by topic" strip with four calm family bands (Discovery & Wonder / People & Kindness / Solutions & Progress / Mind & Craft) from /api/families; zero-count tags hide until tagging fills them in. - Mood nav stays the primary emotional layer; the brief stays the front door. - /api/families fetch is non-fatal so the page degrades gracefully when the B1 backend isn't deployed yet. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/lib/components/ArticleCard.svelte | 30 +++++-- frontend/src/routes/+page.svelte | 78 ++++++++++++++----- 2 files changed, 83 insertions(+), 25 deletions(-) diff --git a/frontend/src/lib/components/ArticleCard.svelte b/frontend/src/lib/components/ArticleCard.svelte index a917f44..82a8958 100644 --- a/frontend/src/lib/components/ArticleCard.svelte +++ b/frontend/src/lib/components/ArticleCard.svelte @@ -1,5 +1,12 @@