From babf5b99e7473e3ce15b82b0f5ddc50c6e751a73 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 21 May 2026 02:49:17 -0400 Subject: [PATCH] feat(ui): notification detail modal shows message body + recipients --- .../Notifications/NotificationReport.razor | 136 +++++++++++++++++- .../NotificationReportDetailModalTests.cs | 109 ++++++++++++++ 2 files changed, 243 insertions(+), 2 deletions(-) diff --git a/src/ScadaLink.CentralUI/Components/Pages/Notifications/NotificationReport.razor b/src/ScadaLink.CentralUI/Components/Pages/Notifications/NotificationReport.razor index 7b2b491..44798ce 100644 --- a/src/ScadaLink.CentralUI/Components/Pages/Notifications/NotificationReport.razor +++ b/src/ScadaLink.CentralUI/Components/Pages/Notifications/NotificationReport.razor @@ -268,6 +268,64 @@
@d.LastError
} + + @* ── Recipients ── *@ +
+
Recipients
+ @if (_detailLoading) + { +
+ + Loading details… +
+ } + else if (_detailError != null) + { +
@_detailError
+ } + else if (_detail != null) + { + var recipients = ParseRecipients(_detail.ResolvedTargets); + if (recipients.Count > 0) + { + + } + else + { +
+ Not yet resolved — recipients are resolved from list + "@d.ListName" at delivery time. +
+ } + } + + @* ── Body ── *@ +
+
Message body
+ @if (_detailLoading) + { +
+ + Loading details… +
+ } + else if (_detailError != null) + { +
@_detailError
+ } + else if (_detail != null) + { + @* Email bodies are plain text (design: BCC delivery, plain text). + Rendered as preformatted text — never as a MarkupString, which + would be an XSS vector. *@ +
@_detail.Body
+ }