Skip to content

fix(autofix): Show Add Integration CTA when no coding agents installed#112625

Merged
JoshFerge merged 4 commits intomasterfrom
joshferge/fix/show-add-integration-cta-zero-agents
Apr 9, 2026
Merged

fix(autofix): Show Add Integration CTA when no coding agents installed#112625
JoshFerge merged 4 commits intomasterfrom
joshferge/fix/show-add-integration-cta-zero-agents

Conversation

@JoshFerge
Copy link
Copy Markdown
Member

@JoshFerge JoshFerge commented Apr 9, 2026

The coding agent dropdown in the autofix next-step UI was gated on
codingAgentOptions.length > 0, which meant the "Add Integration" CTA
link inside the dropdown footer was only visible to orgs that already had
at least one coding agent integration installed. Orgs with zero
integrations had no way to discover or install one from the autofix flow.

Changed the guard to render the dropdown whenever codingAgentIntegrations
is defined (i.e. the current step supports coding agents), regardless of
whether any are installed. The dropdown now shows the "Add Integration"
footer link even when empty, directing users to the integrations settings
page.

Agent transcript: https://claudescope.sentry.dev/share/PXwCZuS75XHaHSRH9gv580ohH3NWiDH8vmAajsJ010c

The coding agent dropdown (which contains the 'Add Integration' link) was
only rendered when codingAgentOptions.length > 0. This meant orgs with zero
coding agent integrations had no way to discover or install one from the
autofix flow.

Change the guard to check whether codingAgentIntegrations is defined
(i.e. the step supports coding agents) rather than whether any exist,
so the dropdown with the CTA always appears on relevant steps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/vM7qy1Z72d-FTlutPQFEXRVgHQcSlaKFH8eEv6_DB3M
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 9, 2026
@JoshFerge JoshFerge marked this pull request as ready for review April 9, 2026 21:06
@JoshFerge JoshFerge requested a review from a team as a code owner April 9, 2026 21:06
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 2cb111c. Configure here.

Comment thread static/app/components/events/autofix/v3/nextStep.tsx
JoshFerge and others added 3 commits April 9, 2026 17:09
DropdownMenu defaults isDisabled=true when items is empty. Pass
isDisabled={isProcessing} explicitly so the dropdown remains clickable
when no coding agent integrations are installed, allowing users to
reach the 'Add Integration' footer CTA.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/wa0Z3OptkpbQPvh2KPaAfODNa6tnRIKLisMHhKhifvU
The trigger button already handles disabled state via its own
disabled={isProcessing} prop. The DropdownMenu isDisabled just needs
to override the auto-disable-on-empty-items default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Covers the exact bug scenario: when the API returns an empty
integrations list, the dropdown trigger should still render and the
Add Integration CTA should be accessible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JoshFerge JoshFerge merged commit 3445a4a into master Apr 9, 2026
65 checks passed
@JoshFerge JoshFerge deleted the joshferge/fix/show-add-integration-cta-zero-agents branch April 9, 2026 21:31
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