feat: three extra cards in Stat page

This commit is contained in:
2026-02-03 10:31:05 +00:00
parent 30b11ce66e
commit 44e9c0e9b8

View File

@@ -196,6 +196,35 @@ return (
{/* main grid*/} {/* main grid*/}
<div style={{ ...styles.container, ...styles.grid}}> <div style={{ ...styles.container, ...styles.grid}}>
<Card
label="Total Events"
value={summary?.total_events ?? "—"}
sublabel="Posts + comments"
style={{
gridColumn: "span 4"
}}
/>
<Card
label="Unique Users"
value={summary?.unique_users ?? "—"}
sublabel="Distinct authors"
style={{
gridColumn: "span 4"
}}
/>
<Card
label="Posts / Comments"
value={
summary
? `${summary.total_posts} / ${summary.total_comments}`
: "—"
}
sublabel={`Comments per post: ${summary?.comments_per_post ?? "—"}`}
style={{
gridColumn: "span 4"
}}
/>
<Card <Card
label="Time Range" label="Time Range"
value={ value={