From ede00da8589e3cc1ceb36c047d656cd0ea1ba09b Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Fri, 22 May 2026 05:19:13 +0000 Subject: [PATCH] homepage feed: remove duplicate category+date in advanced panel (kept author/source only); article page: render SidebarAdStack instead of placeholder --- .../articles/[slug]/ArticleDetailClient.tsx | 10 +--- src/app/home-page/components/ArticleFeed.tsx | 56 +------------------ 2 files changed, 4 insertions(+), 62 deletions(-) diff --git a/src/app/articles/[slug]/ArticleDetailClient.tsx b/src/app/articles/[slug]/ArticleDetailClient.tsx index 43b24d1..32f74d6 100644 --- a/src/app/articles/[slug]/ArticleDetailClient.tsx +++ b/src/app/articles/[slug]/ArticleDetailClient.tsx @@ -4,6 +4,7 @@ import Link from "next/link"; import AppImage from "@/components/ui/AppImage"; import Header from "@/components/Header"; import Footer from "@/components/Footer"; +import SidebarAdStack from "@/components/SidebarAdStack"; import { createClient } from "@/lib/supabase/client"; import type { Article } from "@/lib/articles/types"; @@ -436,13 +437,8 @@ export default function ArticleDetailClient({ article, relatedArticles }: Articl - {/* Ad placeholder */} -
-
-

Advertisement

-

300×250

-
-
+ {/* Sidebar ad stack — 300x600 + 300x250 rotating */} + diff --git a/src/app/home-page/components/ArticleFeed.tsx b/src/app/home-page/components/ArticleFeed.tsx index b7d1ba9..bdda1e5 100644 --- a/src/app/home-page/components/ArticleFeed.tsx +++ b/src/app/home-page/components/ArticleFeed.tsx @@ -437,7 +437,7 @@ export default function ArticleFeed() { role="group" aria-label="Advanced filters">
- {/* Author filter */} + {/* Author filter (category + date moved out to the always-visible row) */}
- - {/* Category filter (moved into advanced panel as well) */} -
- -
- - -
-
- - {/* Date From */} -
- - { setDateFrom(e.target.value); setPage(1); }} - max={dateTo || undefined} - className="w-full bg-[#111] border border-[#2a2a2a] text-[#ccc] font-body text-sm rounded-sm px-3 py-1.5 focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6]/30 transition-colors [color-scheme:dark]" - aria-label="Filter articles from date" - /> -
- - {/* Date To */} -
- - { setDateTo(e.target.value); setPage(1); }} - min={dateFrom || undefined} - className="w-full bg-[#111] border border-[#2a2a2a] text-[#ccc] font-body text-sm rounded-sm px-3 py-1.5 focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6]/30 transition-colors [color-scheme:dark]" - aria-label="Filter articles to date" - /> -
{/* Source filter inside advanced panel */}