Skip to content

fix(aci): Update create alert buttons to reference monitors#104656

Merged
malwilley merged 3 commits intomasterfrom
malwilley/fix/update-create-alert-buttons-to-reference-monitors
Dec 10, 2025
Merged

fix(aci): Update create alert buttons to reference monitors#104656
malwilley merged 3 commits intomasterfrom
malwilley/fix/update-create-alert-buttons-to-reference-monitors

Conversation

@malwilley
Copy link
Copy Markdown
Member

There are a few different areas that refer to "Create an Alert" instead of "Create a Monitor"

CleanShot 2025-12-09 at 15 45 07@2x CleanShot 2025-12-09 at 15 45 01@2x CleanShot 2025-12-09 at 15 44 57@2x

@malwilley malwilley requested review from a team as code owners December 9, 2025 23:46
@malwilley malwilley requested a review from a team December 9, 2025 23:47
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 9, 2025
@malwilley malwilley removed request for a team December 9, 2025 23:47
onClick={handleClick}
to={to}
aria-label={t('Create Alert')}
aria-label={createButtonLabel}
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.

Bug: Prop spread order causes aria-label to be overridden

In CreateAlertFromViewButton, the aria-label is set to createButtonLabel but then ...buttonProps is spread afterward. Since callers like those in static/app/views/discover/savedQuery/index.tsx and static/app/views/performance/transactionSummary/header.tsx explicitly pass aria-label={t('Create Alert')}, this will override the computed label. When workflow-engine-ui is enabled, the button should display "Create Monitor" but the caller's explicit "Create Alert" aria-label will take precedence. The ...buttonProps spread needs to come before the explicit aria-label prop, or the aria-label should be filtered out of buttonProps.

Fix in Cursor Fix in Web

@malwilley malwilley merged commit 4fd3c43 into master Dec 10, 2025
48 checks passed
@malwilley malwilley deleted the malwilley/fix/update-create-alert-buttons-to-reference-monitors branch December 10, 2025 21:50
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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