Skip to content

Fix #944 — snooze hint in email and Teams/Slack payloads#947

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/944-snooze-hint-in-email-webhook
May 8, 2026
Merged

Fix #944 — snooze hint in email and Teams/Slack payloads#947
erikdarlingdata merged 1 commit intodevfrom
feature/944-snooze-hint-in-email-webhook

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

Adds a one-line discoverability footer pointing recipients at Settings → Manage Mute Rules when an alert lands in email, Teams, or Slack — none of which can round-trip a click back to the desktop process.

Footer text:

To silence this alert: open Performance Monitor Lite → Settings → Manage Mute Rules

Files

  • Lite/Services/EmailTemplateBuilder.cs — adds the hint to the HTML footer (under the existing cooldown line) and the plain-text body tail. Suppressed on the test email path.
  • Lite/Services/WebhookAlertService.cs — adds the hint as a small section in the Teams MessageCard (after the facts) and as a second context-block element at the bottom of the Slack message. Suppressed on the test webhook payloads so the verification card stays minimal.

Why these placements

  • Email footer/tail — already where the cooldown caveat lives, lowest-noise location.
  • Teams — MessageCard sections render top-to-bottom; a trailing { text } section reads as a footnote.
  • Slack — context blocks are rendered as small subtle text at the bottom of the message, which is exactly the right visual weight for a hint.

Pairs with the snooze popup from #946 to close out #944.

Test plan

  • Trigger a real alert (email + Teams + Slack all configured).
  • Email: verify the hint shows in both HTML and plain-text views, on a single line below the cooldown text.
  • Teams: verify the hint shows below the alert facts in the message card.
  • Slack: verify the hint shows in the small context line at the bottom of the message.
  • Send a test email from Settings → confirm the hint is NOT shown on the test card.
  • Send a test Teams + test Slack notification → confirm the hint is NOT shown on the test cards.

🤖 Generated with Claude Code

Adds a one-line discoverability footer to alert delivery channels other
than the desktop popup, since neither email nor webhooks can round-trip
a click back to a desktop process:

  "To silence this alert: open Performance Monitor Lite →
   Settings → Manage Mute Rules"

Placed in the email HTML footer (under the cooldown line), the
plain-text body tail, the Teams MessageCard (a small section after the
facts), and the Slack context block at the bottom of the message.
Suppressed on test deliveries so the test card stays minimal.

Pairs with the snooze popup from #946 to close out #944.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit abd66a7 into dev May 8, 2026
2 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/944-snooze-hint-in-email-webhook branch May 8, 2026 14:56
This was referenced May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant