feat(den-web): Analytics page in the Den org admin dashboard#2149
Open
benjaminshafii wants to merge 3 commits into
Open
feat(den-web): Analytics page in the Den org admin dashboard#2149benjaminshafii wants to merge 3 commits into
benjaminshafii wants to merge 3 commits into
Conversation
New admin-only Analytics page consuming GET /v1/telemetry/analytics: - summary cards: OpenWork users, active this week, sessions, tasks + success rate - 12-week trend charts: weekly active users, sessions per week, and tasks per week (completed vs failed) - 30-day detail: avg task duration, tasks completed/failed - sidebar nav entry + page title, privacy note (metadata only)
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- header is now "Usage & adoption" with an "Included with 10+ seats" plan badge instead of the rhetorical question - workspaces under 10 seats see a locked panel with seat count and Invite members / Manage seats & billing actions instead of the data
Member
Author
|
Update pushed (02b7c77): reframed the header from the rhetorical "Is anyone actually using AI?" to dashboard-style "Usage & adoption", with an "Included with 10+ seats" plan badge. Workspaces under 10 seats now see a locked panel (seat count + Invite members / Manage seats & billing CTAs) instead of the data. Verified live against the local stack: 17-seat demo org shows full analytics with the badge; a real 1-seat org ("Tiny Startup") shows the locked state with the actual 10-seat threshold. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Second PR of the OpenWork Analytics stack (Layers 1+2). Adds an admin-only Analytics page to the Den dashboard, consuming the
GET /v1/telemetry/analyticsendpoint from #2148.(admin)/analytics+AnalyticsScreen(ee/apps/den-web/app/(den)/dashboard/_components/analytics-screen.tsx)Tests
Commands run:
npx tsc --noEmitinee/apps/den-web— passespnpm --filter @openwork-ee/den-web build— production build passes,/dashboard/analyticsroute emittedacme-robotics-demoorg with 12 weeks of telemetry events): signed in as the org owner via headless Chrome (CDP), navigated to/dashboard/analytics, verified all cards and charts render real aggregates (17 users, 14 active this week, 44 sessions, 40 tasks at 93% success, growing 12-week trends, 3m 22s avg duration). Screenshots captured (attaching below).Non-admin access is blocked by the existing
(admin)route-group layout guard.Screenshots
Screenshots of the page rendering live seeded data are attached as a comment (captured via headless Chrome against the local stack).