Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(web): real activity on /analytics moderation metrics

4 months ago

45832ac
Authored
grim7/11/2026, 10:57:37 PM
- db insights: listRecentRuns (verdict-filtered, with rule/failed step counts)
  + listRecentDecisions — the runs/decisions behind each metric
- web: getAnalyticsActivity server fn maps them to the activity feed —
  pending=needs_review runs, automod=blocked runs, resolved=decisions,
  banned=[] (no ban concept); automod source stays seeded (still mock)
- analytics route uses real activity for source=moderation; empty state added
- (chart series were already real via insights.getHomeStats)

Parent594aedb

5 files changed
  • apps/web/src/components/analytics/analytics-events.tsx+15−9
  • apps/web/src/lib/analytics-activity.functions.ts+71−0
  • apps/web/src/lib/analytics-activity.query.ts+15−0
  • apps/web/src/routes/analytics.tsx+8−2
  • packages/db/src/services/insights.ts+98−1