@model StoryIntelligenceProgressViewModel @{ ViewData["Title"] = "Review locations"; var locationCandidates = Model.LocationReview.Candidates.ToList(); }

Story Intelligence

Review Locations

Review place suggestions that need a create, link, alias, or ignore decision.

@if (TempData["OnboardingStoryIntelligenceError"] is string error) {
@error
} @if (TempData["OnboardingStoryIntelligenceMessage"] is string message) {
@message
}
@if (Model.LocationReview.Candidates.Count == 0) {
No location decisions are waiting.

Locations are already up to date, or there were no location suggestions ready to import.

} else {
Showing @Math.Min(locationCandidates.Count, 24).ToString("N0") of @locationCandidates.Count.ToString("N0")
@for (var i = 0; i < locationCandidates.Count; i++) { var candidate = locationCandidates[i]; var status = candidate.IsExistingMatch ? "existing" : "new"; var searchText = string.Join(" ", new[] { candidate.LocationName, candidate.ExistingLocationName, candidate.Category, candidate.ParentLocationHint });
@candidate.LocationName @candidate.Category · @candidate.AppearsInScenes.ToString("N0") scene@(candidate.AppearsInScenes == 1 ? string.Empty : "s") @candidate.Confidence
First appearance
@Display(candidate.ExampleFirstAppearance)
Parent hint
@Display(candidate.ParentLocationHint)
Existing match
@(candidate.ExistingLocationName ?? "None")
@if (!string.IsNullOrWhiteSpace(candidate.ExampleContext)) {
Scene context

@candidate.ExampleContext

} @if (candidate.EvidenceSummaries.Any()) {
Evidence from @candidate.AppearsInScenes.ToString("N0") scene@(candidate.AppearsInScenes == 1 ? string.Empty : "s")
    @foreach (var evidence in candidate.EvidenceSummaries) {
  • @evidence
  • }
} @if (candidate.IsExistingMatch) {
Possible existing location

@candidate.LocationName may already be @candidate.ExistingLocationName. Choose whether to link them or create a separate location.

}
Decision
}
Back to Review Centre
}
@section Scripts { } @functions { private static string Display(string? value) => string.IsNullOrWhiteSpace(value) ? "Not detected" : value; }