diff --git a/app/api/dashboard.py b/app/api/dashboard.py index 5c9246d..8263b7c 100644 --- a/app/api/dashboard.py +++ b/app/api/dashboard.py @@ -86,11 +86,11 @@ async def get_dashboard( ) law_alerts = law_result.scalar() or 0 - # 최근 문서 5건 + # 최근 문서 7건 recent_result = await session.execute( select(Document) .order_by(Document.created_at.desc()) - .limit(5) + .limit(7) ) recent_docs = recent_result.scalars().all() diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index 59d6fda..3fd506c 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -1,5 +1,7 @@
문서함
+{(summary.documents_count ?? 0).toLocaleString()}
++ {#if summary.today_added > 0} + +{summary.today_added} 오늘 + {:else} + 일반 문서 + {/if} +
+메모
+{(summary.memos_count ?? 0).toLocaleString()}
+직접 작성
+뉴스
+{(summary.news_count ?? 0).toLocaleString()}
+수집 기사
+승인 대기
++ {summary.inbox_count} +
+ {#if summary.inbox_count > 0} +검토하기 →
+ {:else} +미분류 없음
+ {/if} +최근 24시간
+ {#if pipelineRows.length > 0} +{domainLabel(doc.ai_domain)}
- -법령 알림
-{summary.law_alerts}
- {#if summary.law_alerts > 0} - 확인하기 → - {:else} -오늘 변경 없음
- {/if} -시스템 상태
-{systemView.label}
-{systemView.sub}
- {/if} -