Skip to content

ref(ui): Drop unused optional args in explore - #123227

Open
JonasBa wants to merge 4 commits into
getsentry:masterfrom
JonasBa:jonas/unused-args/views-explore
Open

ref(ui): Drop unused optional args in explore#123227
JonasBa wants to merge 4 commits into
getsentry:masterfrom
JonasBa:jonas/unused-args/views-explore

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 (~190 LOC).

Summary

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

Files

  • static/app/views/explore/conversations/components/conversationSummary.tsx
  • static/app/views/explore/conversations/utils/urlParams.tsx
  • static/app/views/explore/hooks/useSaveMultiQuery.tsx
  • static/app/views/explore/hooks/useTraceItemAttributes.tsx
  • static/app/views/explore/hooks/useTraceItemDetails.tsx
  • static/app/views/explore/hooks/useTraces.spec.tsx
  • static/app/views/explore/hooks/useTraces.tsx
  • static/app/views/explore/logs/useLogsQuery.tsx
  • static/app/views/explore/logs/useValidateLogsTab.tsx
  • static/app/views/explore/metrics/hooks/metricBoundsApiOptions.tsx
  • static/app/views/explore/metrics/hooks/metricHeatMapApiOptions.tsx
  • static/app/views/explore/metrics/hooks/useSaveMetricsMultiQuery.tsx
  • static/app/views/explore/metrics/metricsQueryParams.tsx
  • static/app/views/explore/queryParams/visualize.ts
  • static/app/views/explore/releases/detail/utils.tsx
  • static/app/views/explore/releases/list/releaseCard/releaseCardProjectRow.tsx
  • static/app/views/explore/releases/releaseBubbles/useReleaseBubbles.tsx
  • static/app/views/explore/releases/utils/index.tsx
  • static/app/views/explore/replays/detail/playlist/index.tsx
  • static/app/views/explore/replays/detail/useAllMobileProj.tsx
  • static/app/views/explore/replays/list.tsx
  • static/app/views/explore/replays/list/replayIndexTable.tsx
  • static/app/views/explore/replays/list/replayOnboardingPanel.tsx
  • static/app/views/explore/tables/tracesTable/fieldRenderers.tsx
  • static/app/views/explore/tables/tracesTable/utils.tsx
  • static/app/views/explore/utils/validateEventParamsOptions.tsx

Test plan

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

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 review from a team as code owners August 31, 2026 20:40
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 31, 2026
...data,
name: newTitle,
starred,
starred: true,

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.

Starred toggle ignored when saving

Medium Severity

saveQuery is passed to openSaveQueryModal, which calls it with the user's Starred toggle. Dropping that argument and hardcoding starred: true means unchecking Starred still saves the query as starred in multi-query and metrics save flows.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9f0fcc0. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@JonasBa
JonasBa requested a review from a team as a code owner September 1, 2026 04:36
Restores the list the hook used before the unused-args cleanup so knip sees the export.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread static/app/views/explore/replays/detail/useAllMobileProj.tsx Outdated

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

There are 2 total unresolved issues (including 1 from previous review).

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 8908fcf. Configure here.

Comment thread static/app/views/explore/replays/detail/useAllMobileProj.tsx Outdated
The unused-args cleanup dropped parameters that callers still pass:
saveQuery must honor the modal Starred toggle, and useAllMobileProj()
must use the broader mobile list unless replayPlatforms is set.

Co-authored-by: Cursor <cursoragent@cursor.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