From cb1920fe7e8e5173a04143cbcb82972b0c71bc20 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 26 Feb 2026 18:23:29 +0000 Subject: [PATCH] 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 --- frontend/src/lib/components/RunsPage.svelte | 2 +- frontend/src/lib/components/runs/useJobsLoader.svelte.ts | 4 +++- 2 files changed, 4 insertions(+), 2 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)}