diff --git a/apps/web/client/CommunityBoard.tsx b/apps/web/client/CommunityBoard.tsx index 7a03b37c..96ca7c18 100644 --- a/apps/web/client/CommunityBoard.tsx +++ b/apps/web/client/CommunityBoard.tsx @@ -79,7 +79,9 @@ export function CommunityBoard({ language }: { language: 'zh' | 'en' }) { event.preventDefault(); go(names[next]![0]); buttons[next]?.focus(); }; if (!overview) return
{error || tx('正在读取社区题目…', 'Loading community problems…')}
; - const signedIn = Boolean(session?.account); + const signedIn = Boolean(session?.account), { totals } = overview; + const latest = overview.activity.find(item => item.kind === 'accepted' || item.kind === 'rejected' || item.kind === 'late'); + const browse = () => { setFilter('open'); location.hash = 'tasks'; }; return
@@ -94,6 +96,17 @@ export function CommunityBoard({ language }: { language: 'zh' | 'en' }) {
{tx('解题者', 'Solvers')}
{overview.totals.people}
+
+
+ {totals.solved} / {totals.tasks}
+