fix: restore English loading steps, hide channel panel, fix blank report page

- Loading steps back to English (Scanning website, Collecting data, etc.)
- Removed verified channels panel from loading screen
- Fixed blank report page: detect empty report JSON from DB and show
  appropriate error message instead of rendering empty components
- Navigation state: only pass if report+metadata exist

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-03 23:35:06 +09:00
1 parent caac2f22c5
commit a6bb31a093
2 files changed
+36 -103

No files matched your search

+10
View File
@@ -72,6 +72,16 @@ export function useReport(id: string | undefined): UseReportResult {
fetchReportById(id)
.then((row) => {
const reportJson = row.report as Record<string, unknown>;
// V2 pipeline: if report is empty but status is not 'complete', show message
if (!reportJson || Object.keys(reportJson).length === 0 || reportJson.parseError) {
const status = (row as Record<string, unknown>).status as string | undefined;
if (status && status !== 'complete') {
throw new Error(`리포트 생성 중입니다 (${status}). 잠시 후 새로고침 해주세요.`);
}
throw new Error('리포트 데이터가 비어있습니다. 분석을 다시 실행해주세요.');
}
const scrapeData = row.scrape_data as Record<string, unknown> | undefined;
const transformed = transformApiReport(