Skip to content

feat(settings): Paginate project environments - #122108

Open
scttcper wants to merge 4 commits into
masterfrom
scttcper/project-environment-pagination
Open

feat(settings): Paginate project environments#122108
scttcper wants to merge 4 commits into
masterfrom
scttcper/project-environment-pagination

Conversation

@scttcper

@scttcper scttcper commented Aug 14, 2026

Copy link
Copy Markdown
Member

fixes an issue where 200k environments would try to be displayed and crash the page

example with 200k

  • adds frontend based pagination, filtering
  • lets you sort the two columns we currently display
image

Large projects can render hundreds of thousands of environment rows at once and lock up the settings page.

Render 100 at a time, add client-side search and sortable headers, and persist the table state in the URL.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 14, 2026
Match environment names with the existing fzf helper so non-contiguous searches work too.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@scttcper scttcper changed the title perf(settings): Paginate project environments feat(settings): Paginate project environments Aug 14, 2026
@scttcper
scttcper marked this pull request as ready for review August 14, 2026 22:57
@scttcper
scttcper requested a review from a team as a code owner August 14, 2026 22:57
@scttcper
scttcper requested a review from a team August 14, 2026 22:57
Comment thread static/app/views/settings/project/projectEnvironments.tsx

@cursor cursor Bot left a comment

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.

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.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f669de0. Configure here.

<SimpleTable.HeaderCell
sort={sort === 'events' ? direction : undefined}
handleSortClick={() => handleSort('events')}
>

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.

Nested interactive sort header

Medium Severity

Making the events column sortable turns the header into a button, while InfoText still renders a focusable control inside it. That nests interactive elements, so keyboard focus and activation for the tooltip versus sort compete and produce invalid markup.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f669de0. Configure here.

Use sensible initial directions for each sortable field and keep the events tooltip on the header button instead of nesting focus targets.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Comment thread static/app/views/settings/project/projectEnvironments.tsx
Keep the all-environments summary at the top of the unfiltered active list instead of repeating it on every page.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
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.

1 participant