Performance tab: pass group+routeId to scoped stats/timeseries API #51

Closed
opened 2026-03-14 21:36:56 +01:00 by claude · 0 comments
Owner

Context

The PerformanceTab component accepts group and routeId props but the useExecutionStats and useStatsTimeseries hooks don't pass these to the backend. The backend already supports ?group= and ?routeId= query params on /search/stats and /search/stats/timeseries.

What's needed

  • Update useExecutionStats and useStatsTimeseries hooks in api/queries/executions.ts to accept optional group and routeId parameters
  • Pass these to the API GET calls as query params
  • Update PerformanceTab to pass group and routeId to the hooks

Impact

Without this fix, the Performance tab shows global stats instead of stats scoped to the specific route.

## Context The `PerformanceTab` component accepts `group` and `routeId` props but the `useExecutionStats` and `useStatsTimeseries` hooks don't pass these to the backend. The backend already supports `?group=` and `?routeId=` query params on `/search/stats` and `/search/stats/timeseries`. ## What's needed - Update `useExecutionStats` and `useStatsTimeseries` hooks in `api/queries/executions.ts` to accept optional `group` and `routeId` parameters - Pass these to the API GET calls as query params - Update `PerformanceTab` to pass `group` and `routeId` to the hooks ## Impact Without this fix, the Performance tab shows global stats instead of stats scoped to the specific route.
claude added the bugroute-diagramui labels 2026-03-14 21:40:24 +01:00
Sign in to join this conversation.