Skip to content

Commit ca438ce

Browse files
kconsgeorge-sentry
authored andcommitted
fix(alerts): Better messaging for missing snoozeCreatedBy (#112506)
Fixes ISWF-2409. Before: <img width="860" height="197" alt="Screenshot 2026-04-08 at 12 34 30 PM" src="https://github.com/user-attachments/assets/2740589d-7c49-4f35-81a9-276c6896e407" /> After: <img width="679" height="207" alt="Screenshot 2026-04-08 at 12 34 06 PM" src="https://github.com/user-attachments/assets/c1efa3f1-cee8-4e2a-86f6-cdce5b11eec4" />
1 parent 664daea commit ca438ce

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

static/app/views/alerts/rules/issue/details/ruleDetails.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,14 @@ export default function AlertRuleDetails() {
473473
<Alert.Container>
474474
{rule.snoozeForEveryone ? (
475475
<Alert variant="info">
476-
{tct(
477-
"[creator] muted this alert for everyone so you won't get these notifications in the future.",
478-
{
479-
creator: rule.snoozeCreatedBy,
480-
}
481-
)}
476+
{rule.snoozeCreatedBy
477+
? tct(
478+
"[creator] muted this alert for everyone so you won't get these notifications in the future.",
479+
{creator: rule.snoozeCreatedBy}
480+
)
481+
: t(
482+
"This alert has been muted for everyone so you won't get these notifications in the future."
483+
)}
482484
</Alert>
483485
) : (
484486
<UserSnoozeDeprecationBanner projectId={project.id} />

static/app/views/alerts/rules/metric/details/body.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,14 @@ export function MetricDetailsBody({
175175
<Alert.Container>
176176
{rule.snoozeForEveryone ? (
177177
<Alert variant="info">
178-
{tct(
179-
"[creator] muted this alert for everyone so you won't get these notifications in the future.",
180-
{
181-
creator: rule.snoozeCreatedBy,
182-
}
183-
)}
178+
{rule.snoozeCreatedBy
179+
? tct(
180+
"[creator] muted this alert for everyone so you won't get these notifications in the future.",
181+
{creator: rule.snoozeCreatedBy}
182+
)
183+
: t(
184+
"This alert has been muted for everyone so you won't get these notifications in the future."
185+
)}
184186
</Alert>
185187
) : (
186188
<UserSnoozeDeprecationBanner projectId={project.id} />

0 commit comments

Comments
 (0)