From fe0edf5c023717d8cb62968d48ba41f4d910b03b Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Mon, 18 May 2026 20:01:46 +0000 Subject: [PATCH] home(feed): drop LEGACY category label, vertical separator, and Imported source badge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The article-row metadata strip rendered three things side-by-side: {category} | For imported WP posts whose `category` column was the placeholder string "legacy", this produced a meaningless "LEGACY | IMPORTED" row on the homepage. Now: - Hide the category text entirely when value is "legacy" (any case); it falls back to nothing while the AI-derived category propagates in a separate data pass. - Drop the vertical pipe separator. - Remove the yellow "IMPORTED" SourceBadge — the article's category is the user-relevant signal, not its data-source provenance. The SourceBadge function is now unused and removed. The source-filter control in the advanced filters panel is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/app/home-page/components/ArticleFeed.tsx | 27 ++++---------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/src/app/home-page/components/ArticleFeed.tsx b/src/app/home-page/components/ArticleFeed.tsx index 228a0b6..d5fbfce 100644 --- a/src/app/home-page/components/ArticleFeed.tsx +++ b/src/app/home-page/components/ArticleFeed.tsx @@ -52,23 +52,6 @@ function parseArticleDate(dateStr: string): Date | null { return isNaN(d.getTime()) ? null : d; } -function SourceBadge({ source }: { source: "live" | "imported" }) { - if (source === "imported") { - return ( - - - Imported - - ); - } - return ( - - - Live - - ); -} - export default function ArticleFeed() { const [page, setPage] = useState(1); const [searchQuery, setSearchQuery] = useState(""); @@ -609,11 +592,11 @@ export default function ArticleFeed() {
- - {article?.category} - - | - + {article?.category && article.category.toLowerCase() !== "legacy" && ( + + {article.category} + + )}