Skip to content

Add Engagement Mission Control dashboard to admin panel#211

Draft
prazgaitis wants to merge 2 commits into
mainfrom
claude/engagement-mission-control-3a84D
Draft

Add Engagement Mission Control dashboard to admin panel#211
prazgaitis wants to merge 2 commits into
mainfrom
claude/engagement-mission-control-3a84D

Conversation

@prazgaitis

Copy link
Copy Markdown
Owner

Summary

Adds a comprehensive engagement analytics dashboard for challenge admins to monitor platform activity and user interactions. The new page displays:

  • Engagement metrics: Total activities, likes, comments, follows, and derived ratios (likes/activity, comments/activity)
  • Hourly distribution charts: Visual breakdown of activities, likes, comments, and follows by UTC hour
  • Follow network analysis: Table showing intra-challenge follow connections with follower/following counts and ratios
  • Feed score sorted activities: Paginated table of all activities sorted by feed score, with engagement metrics and metadata

The backend query is designed for database safety using:

  • Indexed queries scoped to challenge (activities via challengeId index)
  • Bounded scans with 8,000 record cap for likes/comments (via createdAt index, filtered in-memory)
  • Per-participant follow queries using followerId index
  • Efficient feed score sorting via challengeFeedScore index

The frontend uses existing admin UI components (AdminCard, StatCard, SectionHeader) with custom hourly bar charts and responsive tables.

Testing

  • pnpm lint
  • pnpm typecheck

Notes

  • New route: /challenges/[id]/admin/engagement
  • Added to admin navigation sidebar
  • Scan cap warning displayed when engagement data is truncated
  • Pagination controls for the feed score table (50 items per page, max 100)

https://claude.ai/code/session_01EyNyWZcN51Pd5ixUp2gwc3

@vercel

vercel Bot commented Mar 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
march-fitness-2025 Ready Ready Preview, Comment Mar 11, 2026 3:09am

Request Review

claude and others added 2 commits March 10, 2026 21:59
New admin page with hourly distribution charts for activities, likes,
comments, and follows; intra-challenge follow network table with density
metrics; and paginated activity list sorted by feed score. Backend query
uses bounded scans (8k cap on likes/comments) and indexed queries to
protect the database.

https://claude.ai/code/session_01EyNyWZcN51Pd5ixUp2gwc3
Engagement Mission Control now shows cumulative totals by day instead of
activity counts by UTC hour, giving a clearer view of growth over time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants