From e5a27787520d81cb148a0e5206a48fe88efa04bd Mon Sep 17 00:00:00 2001 From: kimjaehyeon0101 <47347352-kimjaehyeon0101@users.noreply.replit.com> Date: Tue, 30 Sep 2025 06:14:27 +0000 Subject: [PATCH] Add debugging logs for article and media outlet counts on the main page Add console logs to client/src/components/MainContent.tsx to display article counts per media outlet and other related statistics for debugging purposes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0fb68265-c270-4198-9584-3d9be9bddb41 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/0fb68265-c270-4198-9584-3d9be9bddb41/16cZmxV --- client/src/components/MainContent.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/components/MainContent.tsx b/client/src/components/MainContent.tsx index c32a837..03a5765 100644 --- a/client/src/components/MainContent.tsx +++ b/client/src/components/MainContent.tsx @@ -53,6 +53,13 @@ export default function MainContent() { acc[article.mediaOutletId] = (acc[article.mediaOutletId] || 0) + 1; return acc; }, {} as Record); + + console.log('📊 Article Count Debug:', { + totalArticles: allArticles.length, + totalOutlets: allOutlets.length, + articleCountByOutlet, + outletsWithArticles: Object.keys(articleCountByOutlet).length + }); // Group outlets by category and sort const getOutletsByCategory = (category: string) => {