Skip to content

Add stats page with analytics dashboard#25

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/add-cool-graphs-to-stats-page
Draft

Add stats page with analytics dashboard#25
Copilot wants to merge 3 commits into
mainfrom
copilot/add-cool-graphs-to-stats-page

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 1, 2026

Adds an organization-level analytics page at /org/[slug]/stats with key metrics and visual breakdowns. No new dependencies — charts are CSS-based, matching the existing brutalist aesthetic.

Server action (actions/email.ts)

  • New getDetailedOrgStats() fetches thread counts by status, reply quality/status breakdowns, and daily activity volume over a configurable STATS_DAY_RANGE (default 7 days)

Stats page (components/organization/StatsPage.tsx)

  • Overview cards — total threads, open threads, total replies, AI accuracy %
  • Bar chart — grouped bars showing daily threads vs replies for the last 7 days
  • Thread status — open/closed progress bars
  • Reply quality — perfect (unedited) / edited / pending review breakdown
  • Reply status grid — draft, approved, sent, failed counts

Navigation

  • "View Stats" button added to WelcomeDashboard Quick Actions, linking to /org/[slug]/stats

Route

  • app/org/[slug]/stats/page.tsx — server component within the existing org layout (inherits auth + sidebar)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
answerify Ready Ready Preview, Comment Mar 1, 2026 3:19am

Co-authored-by: harshithpabbati <43822585+harshithpabbati@users.noreply.github.com>
…o accuracy label

Co-authored-by: harshithpabbati <43822585+harshithpabbati@users.noreply.github.com>
Copilot AI changed the title [WIP] Add cool graphs to display statistics in the app Add stats page with analytics dashboard Mar 1, 2026
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