Skip to content

fix(seer): Keep repo loading indicator active#115854

Merged
scttcper merged 2 commits into
masterfrom
scttcper/seer-repo-loading
May 19, 2026
Merged

fix(seer): Keep repo loading indicator active#115854
scttcper merged 2 commits into
masterfrom
scttcper/seer-repo-loading

Conversation

@scttcper
Copy link
Copy Markdown
Member

@scttcper scttcper commented May 19, 2026

The repo table auto-fetches every page, but the spinner was tied to each individual page request. That made it briefly unmount between cursors and restart.

Use a combined flag while more pages remain so the loading indicator stays mounted through the full fetch loop.

example page

The repo table auto-fetches every page, but the spinner was tied to the individual page request state. That can briefly drop between cursors and make the loading indicator restart.

Use a combined loading flag while more pages remain so the indicator stays mounted through the full fetch loop.

Co-Authored-By: Codex GPT-5 <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 19, 2026
@scttcper scttcper marked this pull request as ready for review May 19, 2026 22:45
@scttcper scttcper requested a review from a team as a code owner May 19, 2026 22:45
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f223082. Configure here.

</InputGroup>

{isFetchingNextPage ? <LoadingIndicator mini /> : null}
{isFetchingAllPages ? <LoadingIndicator mini /> : null}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spinner persists after page error

Low Severity

After a failed fetchNextPage, hasNextPage can stay true while isFetchingNextPage is false. isFetchingAllPages then keeps the toolbar mini LoadingIndicator mounted even though the table body shows LoadingError and no further pages are being requested.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f223082. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.56%

The continuous loading flag should only stay active while pagination can keep making progress.

If a page fetch fails, stop treating hasNextPage as loading so the toolbar spinner does not persist next to the error state.

Co-Authored-By: Codex GPT-5 <noreply@openai.com>
isPending,
isFetchingNextPage,
} = result;
const isFetchingAllPages = !isError && (hasNextPage || isFetchingNextPage);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya, this is the pair of things to check every time

@scttcper scttcper merged commit 987a893 into master May 19, 2026
68 of 69 checks passed
@scttcper scttcper deleted the scttcper/seer-repo-loading branch May 19, 2026 23:14
JonasBa pushed a commit that referenced this pull request May 21, 2026
The repo table auto-fetches every page, but the spinner was tied to each
individual page request. That made it briefly unmount between cursors
and restart.

Use a combined flag while more pages remain so the loading indicator
stays mounted through the full fetch loop.

[example page](https://sentry.sentry.io/settings/seer/repos/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants