Skip to content

ref(compactSelect): remove unused onSectionToggle callback#115809

Merged
TkDodo merged 5 commits into
masterfrom
tkdodo/ref/remove-onSectionToggle
May 20, 2026
Merged

ref(compactSelect): remove unused onSectionToggle callback#115809
TkDodo merged 5 commits into
masterfrom
tkdodo/ref/remove-onSectionToggle

Conversation

@TkDodo
Copy link
Copy Markdown
Collaborator

@TkDodo TkDodo commented May 19, 2026

There are places where we use the showToggleAll feature, which shows a toggleAll button. This button used to have a dedicated extra callback onSectionToggle, which is unused.

Clicking Toggle All will just trigger individual change events, which is what consumers listen to.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 19, 2026
@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%

@TkDodo TkDodo marked this pull request as ready for review May 19, 2026 17:00
@TkDodo TkDodo requested a review from a team as a code owner May 19, 2026 17:00
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 2968284. Configure here.

Comment thread static/app/components/pageFilters/useStagedCompactSelect.tsx
Copy link
Copy Markdown
Member

@JonasBa JonasBa left a comment

Choose a reason for hiding this comment

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

I'm a simple man... I see deleted code, I approve

@TkDodo TkDodo merged commit 667a171 into master May 20, 2026
69 of 70 checks passed
@TkDodo TkDodo deleted the tkdodo/ref/remove-onSectionToggle branch May 20, 2026 07:21
JonasBa pushed a commit that referenced this pull request May 21, 2026
There are places where we use the `showToggleAll` feature, which shows a
`toggleAll` button. This button used to have a dedicated extra callback
`onSectionToggle`, which is unused.

Clicking Toggle All will just trigger individual change events, which is
what consumers listen to.
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