feat: add HTML email templates and stabilized recovery notifications#10
Merged
javaChip56 merged 15 commits intomasterfrom Mar 20, 2026
Merged
feat: add HTML email templates and stabilized recovery notifications#10javaChip56 merged 15 commits intomasterfrom
javaChip56 merged 15 commits intomasterfrom
Conversation
…nd improved UI interactions
- Introduced email notification settings in the Import page for notification emails and CC recipients. - Enhanced the ImportModel to handle notification email inputs. - Configured SMTP settings in the application to enable email sending. - Implemented IEmailSender and SmtpEmailSender for sending emails via SMTP. - Created EndpointEmailNotificationService to manage notification logic based on endpoint status changes. - Updated PollingSchedulerService to trigger notifications on state changes. - Added email validation for notification addresses. - Updated dashboard configuration to include notification settings. - Created tests for the new email notification service and its integration with endpoint state changes.
…ds before sending alerts
…end analysis logic
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
This PR upgrades notification emails from hard-coded plain text to a file-based templating system with HTML support, and extends the notification flow to send a one-time
Stabilizedmessage when an endpoint settles after recovery.What Changed
src/ApiHealthDashboard/Templates/Emailnotification.htmlfor richer HTML email renderingnotification.txtas the plain-text fallback bodyNotificationEmailTemplateRendererto render notification content from template filesEmail:Templatesconfiguration in appsettings for template path and file namesStabilizednotification event when an endpoint moves from a non-stable recovery trend into aStable ...trendTesting
dotnet test ApiHealthDashboard.sln -c Release --no-restoreResult:
Notes