diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index a92eb8d..66abf66 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -5,6 +5,7 @@ import { onMount } from 'svelte'; import { dashboardSummary, + refresh, type DashboardSummary, type PipelineStatus, type QueueLag, @@ -67,6 +68,7 @@ await api('/memos/', { method: 'POST', body: JSON.stringify({ content }) }); captureText = ''; addToast('success', '메모 저장됨'); + void refresh(); // 메모 수 등 요약 즉시 갱신(60s 폴 기다리지 않음) } catch { addToast('error', '메모 저장 실패'); } finally { @@ -103,7 +105,7 @@ article_count: topics[0].article_count, importance_score: topics[0].importance_score, country: topics[0].country, - date: d.date, + date: d.digest_date, }; } } catch { /* 디제스트 없으면 블록 자동 생략 */ } @@ -182,6 +184,7 @@ function formatTime(dateStr: string) { const d = new Date(dateStr); + if (isNaN(d.getTime())) return ''; // 빈 문자열/유효하지 않은 created_at → 'Invalid Date' 회피 const diff = Date.now() - d.getTime(); if (diff < 60000) return '방금'; if (diff < 3600000) return `${Math.floor(diff / 60000)}분 전`; @@ -262,7 +265,7 @@ -