PlotDirector/PlotLine/Views/Shared/_NameVerification.cshtml

15 lines
2.0 KiB
Plaintext

@model NameVerificationView
@{var result=Model.Result;}
<section data-name-verification-fragment data-verification-id="@Model.NameVerificationID">
<h3>Saved contextual verification</h3>
@if(Model.Outdated){<p class="alert alert-warning" role="status">Potentially out of date: manuscript content, structure or the verification algorithm changed. These saved assessments have not been automatically rerun.</p>}
<p><strong>@(result.Complete?"Complete for the saved-source scope":"Incomplete verification")</strong> · @result.CreatedUtc.ToString("d MMM yyyy HH:mm") UTC</p>
<p>@(result.MatchesExact?"":"At least ")@result.TextualMatches.ToString("N0") textual matches · @result.Examined.ToString("N0") examined</p>
<dl class="names-metadata"><dt>Likely name use</dt><dd>@result.Likely</dd><dt>Ordinary language</dt><dd>@result.Ordinary</dd><dt>Ambiguous</dt><dd>@result.Ambiguous</dd><dt>Manuscript scope</dt><dd>Saved content across @result.Scope.BookCount active book(s): @result.Scope.SnapshotBooks paragraph snapshots; @result.Scope.LegacyBooks saved scene sources.</dd></dl>
@if(result.Limitations.Count>0){<ul>@foreach(var limitation in result.Limitations){<li>@limitation</li>}</ul>}
<p class="small muted">AI assessments are qualified suggestions. They do not establish confirmed character appearances or change recorded names and aliases. Reading saved results uses no credits.</p>
@if(result.Interrupted){<p>The previous bounded run stopped early. An explicit retry rechecks the configured scope and requires a new credit confirmation; saved findings remain readable.</p><button type="button" class="btn btn-outline-secondary btn-sm" data-name-verify data-retry-interrupted="true">✦ Retry interrupted verification…</button>}
<partial name="_NameVerificationFindings" model="new NameVerificationFindingsViewModel(Model)"/>
@if(result.Ordinary>0){<details><summary>Inspect ordinary-language findings</summary><button type="button" class="btn btn-outline-secondary btn-sm" data-verification-page="0" data-include-ordinary="true">Load all finding categories</button></details>}
</section>