By severity
@foreach (var count in Model.CountsBySeverity)
{
@count.Key
@count.Value
}
@model WarningDashboardViewModel
@{
ViewData["Title"] = "Continuity Warnings";
ViewData["ProjectSection"] = "Warnings";
}
@functions {
private static string SeverityBadgeClass(string severity) => severity switch
{
"Critical" or "Error" => "bg-danger",
"Warning" => "bg-warning text-dark",
_ => "bg-info text-dark"
};
}
Continuity
@(Model.HasAnyWarnings ? "No warnings match the current filters." : "No project warnings detected.")
} else {| Severity | Category | Warning Type | Message | Scene | Status | Actions |
|---|---|---|---|---|---|---|
| @warning.Severity | @warning.Category | @warning.WarningTypeDisplayName |
@warning.Message
@if (!string.IsNullOrWhiteSpace(warning.Details))
{
@warning.Details
}
@if (!string.IsNullOrWhiteSpace(warning.PreviousKnowledgeState) && !string.IsNullOrWhiteSpace(warning.CurrentKnowledgeState))
{
@warning.PreviousKnowledgeState → @warning.CurrentKnowledgeState
}
@if (warning.IsAcknowledged && !string.IsNullOrWhiteSpace(warning.AcknowledgementNotes))
{
Note: @warning.AcknowledgementNotes
}
|
@if (warning.PreviousSceneId.HasValue || warning.CurrentSceneId.HasValue) { @if (warning.PreviousSceneId.HasValue) { Previous @warning.PreviousContextSceneDisplayName } @if (warning.CurrentSceneId.HasValue) { Current @warning.CurrentContextSceneDisplayName } } else if (warning.SceneID.HasValue) { @warning.ContextSceneDisplayName } else { Project-wide } | @if (warning.IsDismissed) { Dismissed } else if (warning.IsIntentional || warning.IsAcknowledged) { Acknowledged } else { Active } |
@if (warning.CanInvestigate)
{
Investigate
}
@if (warning.Source == "Persisted" && warning.ContinuityWarningID.HasValue)
{
@if (warning.IsDismissed || warning.IsIntentional)
{
}
else
{
}
}
else if (warning.IsAcknowledged)
{
Acknowledged
}
else
{
}
|