feat: Registry-verified badge + registryData data flow + V3 error recording

- ClinicSnapshot.tsx: 'Registry 검증' badge (ShieldCheck icon), district/branches/brandGroup pills, external links (강남언니/네이버플레이스/구글맵) when source=registry
- report.ts: add source and registryData fields to ClinicSnapshot type
- transformReport.ts: ApiMetadata now accepts source/registryData; passes to clinicSnapshot
- useReport.ts: DB load path extracts scrape_data.source + scrape_data.registryData → transformApiReport
- V3 dual-write error recording: discover-channels, collect-channel-data, generate-report now write error_message + error status to analysis_runs on catch instead of silently swallowing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Sonnet 4.6 committed 2026-04-07 10:01:19 +09:00
1 parent 36d2f1cf49
commit ae87953fa0
7 files changed
+143 -4

No files matched your search

+12
View File
@@ -59,6 +59,18 @@ export interface ClinicSnapshot {
accent: string;
text: string;
};
/** 'registry' = Registry DB에서 검증된 채널로 분석. 'scrape' = 홈페이지 실시간 탐색. */
source?: 'registry' | 'scrape';
/** Registry에서 가져온 병원 메타데이터 */
registryData?: {
district?: string; // 지역구 (강남, 압구정, 서초, 역삼)
branches?: string; // 분점 정보
brandGroup?: string; // 분류 (프리미엄/하이타깃 후보)
websiteEn?: string; // 영문 사이트 URL
naverPlaceUrl?: string;
gangnamUnniUrl?: string;
googleMapsUrl?: string;
};
}
export interface TopVideo {