feat(ui): analytics dashboard time-window selector (#2199) - #4945
feat(ui): analytics dashboard time-window selector (#2199)#4945RealDiligent wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4945 +/- ##
==========================================
- Coverage 94.24% 94.24% -0.01%
==========================================
Files 444 444
Lines 38854 38862 +8
Branches 14157 14159 +2
==========================================
+ Hits 36617 36624 +7
Misses 1577 1577
- Partials 660 661 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Add a persisted 7d/30d/90d toggle on /app/analytics that re-keys the operator-dashboard fetch and threads days through the backend payload. Closes JSONbored#2199 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-11 02:27:12 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (conflicts with the base branch — resolve and open a fresh PR). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |




Summary
ToggleGroupto the/app/analyticsheaderuseApiResource(operatorDashboardPath(days))so usage summary + command-usefulness re-fetch on change?days=onGET /v1/app/operator-dashboardand clamp to supported windowsScope note (addresses #4747 review): gate-precision, cycle-time, fleet, recommendation-quality, and MCP adoption keep their existing fixed lookbacks (90d / 7d). Only usage summary metrics and command usefulness follow the selector.
Closes #2199
Test plan
npm run test --workspace=@jsonbored/gittensory-ui -- src/lib/analytics-window.test.ts(6 tests)npx vitest run test/unit/operator-dashboard.test.ts(includes fixed-90d gate/cycle-time regression guard)mainUI Evidence
/app/analyticsheaderbefore: fixed 30d window, no selector
after: 7d/30d/90d toggle drives usage fetch