From 515bc2a93fee81746f58b5873a969fe43b1918c0 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 26 Feb 2026 19:24:19 +0100 Subject: [PATCH] fix: runs page date picker query parameter handling (#8120) * fix: runs page date picker query parameter handling - Route query params by job status: queue-only statuses (running/suspended/waiting) use createdBeforeQueue/createdAfterQueue, completed-only statuses (success/failure) skip queue params, and no filter uses both - Pass completedAfter (extendedMinTs) on initial load to avoid overfetching - Skip auto-refresh syncer for manual timeframes (fixed past date ranges) - Debounce param change effect to prevent double API calls - Remove redundant timeframe dependency from effect (already tracked via filters) Co-Authored-By: Claude Opus 4.6 * fix: only show Load more when jobs count >= perPage - Default lastFetchWentToEnd to true so Load more is hidden until a full page is confirmed - Set lastFetchWentToEnd after initial load, not just after loadExtra - Add jobs.length >= perPage guard in template to prevent flicker Co-Authored-By: Claude Opus 4.6 --------- Co-authored-by: Claude Opus 4.6 --- frontend/src/lib/components/RunsPage.svelte | 2 +- .../components/runs/useJobsLoader.svelte.ts | 54 +++++++++++++------ 2 files changed, 39 insertions(+), 17 deletions(-) diff --git a/frontend/src/lib/components/RunsPage.svelte b/frontend/src/lib/components/RunsPage.svelte index f01e068132..94939143cc 100644 --- a/frontend/src/lib/components/RunsPage.svelte +++ b/frontend/src/lib/components/RunsPage.svelte @@ -760,7 +760,7 @@ transformInputSelectedText={(_, v) => `${pluralize(v, 'day')} lookback`} tooltip={'How far behind the min datetime to start considering jobs for the concurrency graph. Change this value to include jobs started before the set time window for the computation of the graph'} /> - {:else if !lastFetchWentToEnd} + {:else if !lastFetchWentToEnd && (jobs?.length ?? 0) >= (perPage.val ?? 1000)}