You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improvement(usage): add a period-labelled chart to the workspace drill-down (#7219)
* improvement(usage): add a period-labelled chart to the workspace drill-down
The Workspaces drill-down showed two ranked lists and no chart, and stated
its window nowhere — the period picker lives on the list behind it, so the
carried-over window was invisible once you were inside.
- Draw the summary's headline, delta, and trend chart at the top of the
drill-down, narrowed to that workspace
- Label its section with the selected period, which is now the only place
the drill-down states its window
- Carry workspaceId through the summary contract, route, use case, query
key, and hook so the chart reads one workspace
- Move the workspace narrowing onto buildUsageAnalyticsScope, so the chart,
the headline, and both lists derive it from one definition instead of the
breakdown query owning a second copy
The comparison window takes the same narrowing, or the delta would measure
one workspace against the whole organization. No allowance figure is shown,
unlike the Overview: the limit is pooled across the organization and would
read as that workspace's own cap.
* fix(usage): stop a retained summary from crossing workspace scopes
The summary key now carries a workspaceId, and keepPreviousData retains
across any key change — so moving between two drill-downs drew one
workspace's headline, delta, and chart under the other's name until the
fetch landed.
- Narrow placeholderData to a period change only, matching the breakdown's
existing scoped predicate, and share the one key-identity helper
- Order the summary key so window is the trailing segment, making the
scope a plain prefix as it already is on the breakdown
- Give UsageSummary the isPlaceholderData signal UsageConsumers already
takes, so retained figures dim instead of reading as fresh ones
0 commit comments