@model WarningDashboardViewModel @{ ViewData["Title"] = "Continuity Warnings"; }
Workspace context @Model.Project.ProjectName

Continuity

@Model.Project.ProjectName

@if (Model.BookID.HasValue) {
}
@if (Model.LastValidationSummary is not null) {
Validation complete. @Model.LastValidationSummary.ErrorCount errors @Model.LastValidationSummary.WarningCount warnings @Model.LastValidationSummary.InfoCount info
}

By severity

@foreach (var count in Model.CountsBySeverity) {
@count.Key @count.Value
}

By type

@foreach (var count in Model.CountsByType.Take(8)) {
@count.Key @count.Value
}

Warnings

@if (!Model.Warnings.Any()) {

No warnings match this view.

} else {
@foreach (var warning in Model.Warnings) {
@warning.SeverityName @warning.WarningTypeName @if (warning.IsDismissed) { dismissed } @if (warning.IsIntentional) { intentional }

@warning.Message

@if (!string.IsNullOrWhiteSpace(warning.Details)) {

@warning.Details

}

@(warning.BookTitle ?? "Project") @if (warning.SceneID.HasValue) { / Scene @warning.SceneNumber: @warning.SceneTitle } / @warning.EntityType / Last seen @warning.LastDetectedDate.ToString("dd MMM yyyy HH:mm")

@if (warning.SceneID.HasValue) { Open scene } @if (warning.IsDismissed || warning.IsIntentional) {
} else {
}
}
}