Deployment traces page cannot load traces beyond initial 50 entries (infinite scroll not invoked & "More" button inverted)
What happened:
When viewing the Deployment Trace page (/traces) in an environment with more than 50 deployment traces, only the first 50 entries are displayed. When scrolling down to the bottom of the list, subsequent traces are not fetched automatically, and there is no "More" button visible to load them manually.
Looking into web/src/components/deployment-trace-page/index.tsx, there are two related issues causing this:
-
Infinite scroll trigger doesn't execute: In the
useEffectlistening forinView:useEffect(() => { if (inView && hasMore && isFetching === false) { fetchMoreDeploymentTraces; // <-- missing () invocation } }, [fetchMoreDeploymentTraces, hasMore, inView, isFetching]);fetchMoreDeploymentTracesis referenced as a bare expression statement rather than being invoked as a function (fetchMoreDeploymentTraces()), so reaching the sentinel at the end of the scroll container never triggers the next page fetch. -
Manual "More" button visibility condition is inverted:
{!hasMore && ( <Button color="primary" variant="outlined" size="large" fullWidth onClick={handleMoreClick} disabled={isFetching} > {UI_TEXT_MORE} {isFetching && <SpinnerIcon />} </Button> )}The manual fallback button is rendered on
{!hasMore && ...}instead of{hasMore && ...}. WhenhasMoreistrue, the button is hidden; whenhasMoreisfalse(no more records exist), the button is shown.
Because of both bugs occurring together, any trace history past the first page is completely unreachable in the UI.
What you expected to happen:
- When scrolling down to the bottom of the list and
hasMoreis true, the next batch of deployment traces should load automatically usingfetchMoreDeploymentTraces(). - If manual loading is provided as a fallback or secondary option, the "More" button should appear when there are more items to fetch (
hasMore), not when there are none left (!hasMore).
How to reproduce it:
- Have or mock a project with >50 deployment traces.
- Navigate to the Traces page (
/traces). - Scroll down past the 50th item to the bottom of the list.
- Notice that no additional network request is dispatched and no "More" button is displayed.
Screenshot:

Environment:
pipedversion: N/A (UI issue)control-planeversion:master(60faf25a0b318cdb78bfd5cc067949e8be551aae)- Others: Tested on Chrome / Linux
Possible Solution:
In web/src/components/deployment-trace-page/index.tsx:
- Invoke the function:
- fetchMoreDeploymentTraces; + fetchMoreDeploymentTraces(); - Invert the condition for the manual button:
- {!hasMore && ( + {hasMore && (