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

@@ -828,7 +828,15 @@ Deno.serve(async (req) => {
}).eq("id", runId);
} catch (e) {
console.error("V3 dual-write error:", e);
const errMsg = e instanceof Error ? e.message : String(e);
console.error("V3 dual-write error:", errMsg);
// Best-effort: record error into analysis_run so it's visible in DB
try {
await supabase.from("analysis_runs").update({
error_message: `V3 dual-write failed: ${errMsg}`,
status: "collection_error",
}).eq("id", runId);
} catch { /* ignore secondary failure */ }
}
}