feat: add a dashboard timeline of provider and config changes#26
feat: add a dashboard timeline of provider and config changes#26EricGrill wants to merge 1 commit intomm7894215:mainfrom
Conversation
|
Thanks for the contribution. This needs changes before merge. The API/hook currently hardcode user-facing timeline titles and details in English, which bypasses |
This adds a local change timeline that surfaces first-seen providers, first-seen models, project attribution activation, and cloud sync configuration as a compact dashboard card. The goal is to make spikes more explainable without forcing users to infer what changed from raw charts alone. Constraint: Reuse local tracker data and avoid introducing a new persistent event log for the first timeline version Rejected: Build a full event-sourcing layer before shipping the timeline card | too much infrastructure for a first explanatory timeline Confidence: high Scope-risk: moderate Reversibility: clean Directive: Keep timeline events factual and derived from observable local state; do not infer speculative changes that the app cannot justify from data Tested: node --test test/change-timeline.test.js Tested: npm run validate:copy Not-tested: Full npm test (workspace still lacks root dev modules such as esbuild and @sourcegraph/scip-typescript) Not-tested: Dashboard runtime rendering in a browser session Related: mm7894215#22
a9232fa to
26437c1
Compare
|
Addressed review feedback:
Rebased onto current |
|
Thanks for taking on #22 — the PR is well-scoped and the test coverage is nice to see. I'm going to close it though. The main dashboard is tightly focused on token-usage signal (totals, trends, breakdowns, limits). A timeline of "first time we saw provider X" / "cloud sync turned on at T" is metadata about TokenTracker itself rather than about a user's usage, and I don't think it earns a top-level dashboard card. For that kind of audit info I'd lean toward surfacing it in I'll leave #22 open for now in case there's a different surface where this fits later. Appreciate the contribution. |
Why
Issue #22 asks for a timeline that helps explain what changed when usage shifts.
What changed
Verification
node --test test/change-timeline.test.jsnpm run validate:copyCloses #22