@model StoryIntelligenceProgressViewModel @{ ViewData["Title"] = "Review locations"; const int previewLimit = 50; var showAll = string.Equals(Context.Request.Query["view"], "all", StringComparison.OrdinalIgnoreCase); var locationCandidates = showAll ? Model.LocationReview.Candidates.ToList() : Model.LocationReview.Candidates.Take(previewLimit).ToList(); var hiddenCandidateCount = Math.Max(0, Model.LocationReview.Candidates.Count - locationCandidates.Count); }

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 {
@if (hiddenCandidateCount > 0) { View all @Model.LocationReview.Candidates.Count.ToString("N0") }
@for (var i = 0; i < locationCandidates.Count; i++) { var candidate = locationCandidates[i];
@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.IsExistingMatch) {
Possible existing location

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

}
Decision
}
@if (hiddenCandidateCount > 0) { @hiddenCandidateCount.ToString("N0") more location decision@(hiddenCandidateCount == 1 ? string.Empty : "s") available after this batch. } Back to Review Centre
}
@section Scripts { } @functions { private static string Display(string? value) => string.IsNullOrWhiteSpace(value) ? "Not detected" : value; }