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
This commit is contained in:
kimjaehyeon0101
2025-09-30 06:14:27 +00:00
parent a4b72a7f80
commit e5a2778752

View File

@ -53,6 +53,13 @@ export default function MainContent() {
acc[article.mediaOutletId] = (acc[article.mediaOutletId] || 0) + 1;
return acc;
}, {} as Record<string, number>);
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) => {