feat(control-panel): complete usage and value analytics dashboard - #354
Merged
JSONbored merged 4 commits intoJun 4, 2026
Merged
Conversation
kiannidev
added a commit
to kiannidev/gittensory
that referenced
this pull request
Jun 3, 2026
Resolves CI eslint/prettier failures on usage-analytics-panels and app.analytics for PR JSONbored#354. Co-authored-by: Cursor <cursoragent@cursor.com>
kiannidev
added a commit
to kiannidev/gittensory
that referenced
this pull request
Jun 3, 2026
Resolves CI eslint/prettier failures on usage-analytics-panels and app.analytics for PR JSONbored#354.
kiannidev
force-pushed
the
feat/issue-134-usage-value-analytics
branch
from
June 3, 2026 21:07
bf600c8 to
b2220d2
Compare
Expose rollup-backed adoption, retention, command usefulness, and weekly value metrics in the operator analytics UI while keeping product telemetry separate from security audit events. Fixes JSONbored#134 Co-authored-by: Cursor <cursoragent@cursor.com>
kiannidev
force-pushed
the
feat/issue-134-usage-value-analytics
branch
from
June 3, 2026 21:09
b2220d2 to
2c1b603
Compare
JSONbored
requested changes
Jun 3, 2026
JSONbored
left a comment
Owner
There was a problem hiding this comment.
@kiannidev this is close.
A few notes:
- The operator dashboard split and redaction-focused tests look directionally right.
- CI is green now.
- The remaining blocker is PR evidence, not the implementation direction.
Required changes:
- Add a clear
ScreenshotsorUI Evidencesection to the PR description. - Include small clickable thumbnails with state labels for the loaded operator analytics view and any empty/error state that renders differently.
Validation expected:
- Keep the current green CI.
- Reconfirm the screenshots match the current
/app/analyticsimplementation.
Contributor
Author
Hi, @JSONbored I added UI Evidence to the description. |
JSONbored
approved these changes
Jun 4, 2026
JSONbored
left a comment
Owner
There was a problem hiding this comment.
@kiannidev this now looks merge-ready from this pass.
A few notes:
- The operator dashboard extraction is cleaner than keeping the full payload assembly inside the route.
- The analytics UI evidence is in the PR description with loaded, empty, and error states.
- Validation evidence is complete, including UI checks and coverage.
No code changes are requested from this review pass.
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.
Fixes #134
Summary
/app/analyticsusing hashedproduct_usage_*rollups (notaudit_eventsor raw source).buildOperatorDashboardPayloadinsrc/services/operator-dashboard.tsand addstest/unit/operator-dashboard.test.tsfor payload shape and redaction.GET /v1/app/operator-dashboardauth.Scope
CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
Verified locally with
npm run test:cion Node v24.15.0 (repo requires Node >= 22 per.nvmrc). Fixes CI UI check failure on run 26912190264 (prettier/prettierinusage-analytics-panels.tsxandapp.analytics.tsx).git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally; global coverage stays at or above 97% for lines, statements, functions, and branches (aim for 98%+ branch coverage locally so CI variance does not fail near the threshold)npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
Coverage summary (
npm run test:coverage): statements 99.08%, branches 97.00%, functions 98.40%, lines 99.66%. New tests:test/unit/operator-dashboard.test.ts(2 cases).Safety
Notes
/app/operatorand existing scheduled/internal jobs;/app/analyticsdisplays rollup-backed metrics fromGET /v1/app/operator-dashboard.test/unit/product-usage.test.ts,test/unit/weekly-value-report.test.ts,test/integration/api.test.ts(operator-dashboard paths). New:test/unit/operator-dashboard.test.ts./app/analytics(operator session) before merge if reviewers require UI proof.UI Evidence