feat: three extra cards in Stat page
This commit is contained in:
@@ -196,6 +196,35 @@ return (
|
||||
|
||||
{/* main 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
|
||||
label="Time Range"
|
||||
value={
|
||||
|
||||
Reference in New Issue
Block a user