feat: real API integration + YouTube Data API v3 + progressive loading

- Replace mock useReport() with real Supabase API data pipeline
- Add transformReport.ts to map API responses to MarketingReport type
- Add useEnrichment() hook for background channel data enrichment
- Replace Apify YouTube scraper with YouTube Data API v3
- Add mergeEnrichment() for progressive data loading
- Add EmptyState component for graceful empty data handling
- Add socialHandles to generate-report metadata
- Graceful empty data in ClinicSnapshot, YouTube, Instagram, Facebook
- Add Supabase Edge Functions and DB migrations
- Add developer handoff documentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 4.6 committed 2026-04-02 10:57:14 +09:00
1 parent c6e18b6a67
commit 60cd055042
30 files changed
+2905 -142

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
import { motion } from 'motion/react';
import { Search } from 'lucide-react';
interface EmptyStateProps {
message?: string;
subtext?: string;
}
/**
* Shown inside report sections when data is not yet available
* (e.g., before enrichment completes or when a channel is not found).
*/
export function EmptyState({
message = '데이터 수집 중',
subtext = '채널 데이터 보강이 완료되면 자동으로 업데이트됩니다.',
}: EmptyStateProps) {
return (
<motion.div
className="flex flex-col items-center justify-center py-12 text-center"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.4 }}
>
<div className="w-12 h-12 rounded-2xl bg-slate-100 flex items-center justify-center mb-4">
<Search size={20} className="text-slate-400" />
</div>
<p className="text-sm font-medium text-slate-500">{message}</p>
<p className="text-xs text-slate-400 mt-1 max-w-xs">{subtext}</p>
</motion.div>
);
}