Skip to content

ref(ui): Drop unused optional args in core splitPanel, form, and input - #123212

Merged
TkDodo merged 3 commits into
getsentry:masterfrom
JonasBa:jonas/unused-args/components-core-2
Sep 4, 2026
Merged

ref(ui): Drop unused optional args in core splitPanel, form, and input#123212
TkDodo merged 3 commits into
getsentry:masterfrom
JonasBa:jonas/unused-args/components-core-2

Conversation

@JonasBa

@JonasBa JonasBa commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Split out of #122373 and #122624 so this folder can be reviewed on its own (~144 LOC).

Summary

  • Remove unused optional arguments and fields under static/app/components/core.
  • Same approach as the original PRs: drop args/fields nothing passes, keep public hook/component options, inline previous defaults.

Files

  • static/app/components/core/form/field/radioField.spec.tsx
  • static/app/components/core/form/field/radioField.tsx
  • static/app/components/core/form/fields.mdx
  • static/app/components/core/input/useAutosizeInput.tsx
  • static/app/components/core/splitPanel/splitPanel.spec.tsx
  • static/app/components/core/splitPanel/splitPanel.tsx

Test plan

  • CI typecheck / frontend tests for this slice.
  • Spot-check call sites in static/app/components/core.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@JonasBa
JonasBa requested a review from a team as a code owner August 31, 2026 20:38
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 31, 2026

@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.

Reviewed by Cursor Bugbot for commit 95e9cd8. Configure here.

Comment thread static/app/components/core/splitPanel/splitPanel.tsx
Comment thread static/app/components/core/splitPanel/splitPanel.tsx
Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread static/app/components/core/form/field/radioField.tsx
Comment thread static/app/components/core/splitPanel/splitPanel.tsx Outdated
description is unused today but every other field has it. onResize is optional on the drawer hook, so SplitPanel does not need an empty callback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@TkDodo TkDodo added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Sep 4, 2026
@TkDodo
TkDodo merged commit 7c1f03a into getsentry:master Sep 4, 2026
83 of 85 checks passed
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 Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants