Commit the pending application, help and browser regression work. Pin the patched PKCS dependency for the production release.
49 lines
4.4 KiB
Plaintext
49 lines
4.4 KiB
Plaintext
@model PlotLineWorkspaceViewModel
|
|
@foreach (var line in Model.Health.Lines)
|
|
{
|
|
<div data-health-detail="@line.PlotLineID">
|
|
<header class="plot-inspector-header"><h2>Plot Line health</h2><button type="button" class="btn btn-outline-secondary" data-inspector-close>Close</button></header>
|
|
<p><strong>@Model.PlotLines.FirstOrDefault(l => l.Line.PlotLineID == line.PlotLineID)?.Line.PlotLineName</strong></p>
|
|
<p class="muted">@Model.Health.Scope.ScopeLabel · @Model.Health.Scope.OrderLabel · cutoff position @Model.Health.Scope.CutoffPosition of @Model.Health.Scope.SceneCount</p>
|
|
<p class="muted">Health evaluates the whole selected line, independently of thread filters and scene search. Stored status is not changed.</p>
|
|
@if (!Model.Health.Scope.EvidenceComplete)
|
|
{ <p class="plot-health-partial">Partial evidence: @Model.Health.Scope.MissingSceneCount scenes are omitted from this order. Absence-based findings are informational.</p> }
|
|
@foreach (var thread in line.Threads)
|
|
{
|
|
<section class="plot-health-thread">
|
|
<h3>@thread.ThreadTitle</h3>
|
|
<p><strong>Stored author status:</strong> @thread.StoredStatus</p>
|
|
<p><strong>Observed activity:</strong> @(thread.ObservedSignals.Count == 0 ? "No recorded contributions in this scope." : string.Join(" · ", thread.ObservedSignals))</p>
|
|
<dl class="plot-facts">
|
|
<dt>Leading silence</dt><dd>@thread.LeadingScenes scenes before first recorded touch (or through cutoff if unstarted).</dd>
|
|
<dt>Last touch</dt><dd>@(thread.LastTouch is null ? "None recorded" : $"{thread.LastTouch.SceneTitle} · {thread.LastTouch.Signal} · position {thread.LastTouch.Position}")</dd>
|
|
<dt>Touch silence</dt><dd>@(thread.ScenesSinceTouch?.ToString() ?? "Unknown") scenes · @(thread.ChaptersSinceTouch?.ToString() ?? "Unknown") ordered chapters</dd>
|
|
<dt>Last progress</dt><dd>@(thread.LastProgress is null ? "None recorded" : $"{thread.LastProgress.SceneTitle} · {thread.LastProgress.Signal} · position {thread.LastProgress.Position}")</dd>
|
|
<dt>Progress silence</dt><dd>@(thread.ScenesSinceProgress?.ToString() ?? "Unknown") scenes · @(thread.ChaptersSinceProgress?.ToString() ?? "Unknown") ordered chapters</dd>
|
|
</dl>
|
|
@if (Model.PlotLines.SelectMany(l => l.Threads).FirstOrDefault(t => t.PlotThreadID == thread.PlotThreadID) is { } declared)
|
|
{
|
|
<p class="muted">Declared introduction: @(declared.IntroducedSceneLabel ?? (declared.IntroducedSceneID.HasValue ? $"Scene {declared.IntroducedSceneID} — not available in this order/scope" : "Not set"))<br />
|
|
Declared actual resolution: @(declared.ActualResolutionSceneLabel ?? (declared.ActualResolutionSceneID.HasValue ? $"Scene {declared.ActualResolutionSceneID} — not available in this order/scope" : "Not set"))</p>
|
|
}
|
|
<a asp-controller="PlotThreads" asp-action="Edit" asp-route-id="@thread.PlotThreadID">Inspect/edit thread</a>
|
|
@foreach (var finding in thread.Findings.OrderByDescending(f => f.Level).ThenBy(f => f.RuleID))
|
|
{
|
|
<article class="plot-health-finding" data-health-rule="@finding.RuleID" data-health-scene="@finding.MarkerSceneID">
|
|
<small>@finding.Level · @finding.RuleID · @(finding.EvidenceComplete ? "Complete order coverage" : "Partial order coverage")</small>
|
|
<h4>@finding.Title</h4><p>@finding.Explanation</p>
|
|
@foreach (var evidence in finding.Evidence)
|
|
{
|
|
<div class="plot-health-evidence">
|
|
<span>Position @evidence.Position · @evidence.Signal · @evidence.SceneTitle</span>
|
|
<button type="button" class="btn btn-sm btn-outline-secondary" data-scene-inspector="@evidence.SceneID">Inspect contribution</button>
|
|
<a asp-controller="Scenes" asp-action="Edit" asp-route-id="@evidence.SceneID" asp-route-projectId="@Model.Project.ProjectID" asp-route-bookId="@evidence.BookID">Go to scene</a>
|
|
</div>
|
|
}
|
|
</article>
|
|
}
|
|
</section>
|
|
}
|
|
</div>
|
|
}
|