Repository navigation
feat(console): add plain-language alert catalogue, deduplicated notifications, and audited mutes (#103) - #310
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…ications, and audited mutes (#103)
jusso-dev
force-pushed
the
feat/console-alert-notifications
branch
from
November 21, 2026 23:05
6778c75 to
bc92c24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #103.
Completes plain-language alerts and notifications with deduplication, audited muting, and optional Teams webhook / SMTP email delivery:
AlertCatalogue.cs,AlertModels.cs):GET /api/alerts/catalogue(View) mapping every health condition (offline,history-changed,not-sending,stale,queue-full,send-trouble,pending,suspended,set-aside,backlog,quiet-source,policy-not-applied,privacy-not-applied,job-failed,no-collectors, Sentinel proof states) and collector EventIds (1008,1302,1500,1501,1600,1702,2101) to plain wording, severity, and suggested fixes.ManagementStore.Alerts.cs,AlertEndpoints.cs,HomeModels.cs,ManagementStore.Home.cs):alert_mutestable andGET /api/alerts/mutes(View),POST /api/alerts/mute(Operate, bounded 15m–30d duration + required reason), andPOST /api/alerts/mutes/{id}/unmute(Operate).alert.muted/alert.unmutedaudit rows in the same SQLite transaction and annotates activeHomeAttentionitems with optionalmuted,muteId,mutedUntil,muteReasonfields.AlertNotificationService.cs,Jobs/AlertNotificationJob.cs):alert-notifications(every 5 minutes) evaluating active fleet alerts, skipping audited mutes, deduplicating repeated notifications withinBOWER_ALERT_DEDUP_MINUTES(default 60m, range 5–1440m), marking cleared conditions resolved so recurrences re-notify, and writingalert.notification-sentaudit rows.BOWER_ALERT_TEAMS_WEBHOOK_FILE, HTTPS required) and SMTP email (BOWER_ALERT_EMAIL_*, password fromBOWER_ALERT_EMAIL_PASSWORD_FILE— zero new NuGet packages). Secrets are loaded strictly from files on disk and never stored in SQLite or returned via HTTP (GET /api/alerts/channelsreturns metadata-only flags)./alertslink — never raw event content.HomePage.tsx,types.ts,AlertsMute.test.tsx):/alertsplus muted status badges.docs/security/threat-model.md.Verification
dotnet build --configuration Release— 0 warnings, 0 errorsdotnet test(AlertNotificationTests,HomeStatusTests,ManagementApiTests) — 14 passed, 0 faileddotnet format --verify-no-changes— passedcd ui/Bower.Management.Web && npm run lint && npm test && npm run build— 17/17 test files (109/109 tests) passed, production bundle built cleanlypython3 -m unittest tools/docs/tests/test_build_tools.py— 7/7 passedSecurity and compatibility impact
HomeAttentionfields are strictly additive and Native AOT source-generated (ManagementJsonContext)./alerts.