From 4f18215cc3c31882da86cd4324b6023f73808682 Mon Sep 17 00:00:00 2001 From: Zhenhao Liu <176368005+LikC1606@users.noreply.github.com> Date: Mon, 30 Nov 2026 00:18:09 +0800 Subject: [PATCH] Community board: progress, latest check, join guide, board periods, activity paging Modeled on the goldbach-proofs community page: - A pulse row under the header shows solved/total progress, how many people hold a live claim, and the latest check result linking to its problem. - A collapsible three-step guide (pick a problem, issue a token, hand the instructions to an agent) opens by default for visitors on wide screens. - Leaderboards gain an all-time / last-7-days switch, the scoring rules, and a "next name here could be yours" row. - Activity gains an all / check-results filter and 20-per-page paging; the overview now returns the latest 200 entries instead of 60. Server: overview adds `week` boards and `totals.working`. Co-Authored-By: Claude Opus 5.5 --- apps/web/client/CommunityBoard.tsx | 94 +++++++++++++++++++++++++----- apps/web/client/community.css | 34 +++++++++++ apps/web/community.ts | 13 +++-- apps/web/communityTypes.ts | 7 ++- scripts/test-web-community.ts | 35 ++++++++++- tests/webCommunity.test.ts | 14 +++++ 6 files changed, 173 insertions(+), 24 deletions(-) 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}
+