feat(ui): analytics dashboard time-window selector (#2199) - #5268
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 #5268 +/- ##
==========================================
- Coverage 94.37% 94.36% -0.01%
==========================================
Files 474 474
Lines 40114 40122 +8
Branches 14627 14629 +2
==========================================
+ Hits 37856 37863 +7
Misses 1583 1583
- Partials 675 676 +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-12 12:54:43 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 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.
|
JSONbored
left a comment
There was a problem hiding this comment.
Moving forward, please use the AI skill found in the repo when including screenshots, as in the next day or so, screenshot/recording evidence will be enforced by gittensory-orb when submitting PRs that touch frontend code.
Your submitted screenshots are embedded as PNGs that need to be downloaded, which I don't do for security reasons.
Merging.
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: gate-precision, cycle-time, fleet, recommendation-quality, calibration, slop calibration, and MCP adoption keep their existing fixed lookbacks. 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.tsmain(supersedes feat(ui): analytics dashboard time-window selector (#2199) #4945, closed for merge conflicts)UI Evidence
/app/analyticsheaderbefore: fixed window, no selector
after: 7d/30d/90d toggle drives usage fetch