@model WritingContextDisplayViewModel @{ var scene = Model.Context!.Scene!; var pov = scene.CharacterOptions.FirstOrDefault(x => x.Value == scene.POVCharacterID?.ToString())?.Text ?? scene.SceneCharacters.FirstOrDefault(x => x.CharacterID == scene.POVCharacterID)?.CharacterName ?? "No POV set"; var primaryLocation = scene.LocationOptions.FirstOrDefault(x => x.Value == scene.PrimaryLocationID?.ToString())?.Text?.Trim() ?? "No primary location"; var purposeLabels = scene.ScenePurposeTypes .Where(x => scene.SelectedPurposeTypeIds.Contains(x.ScenePurposeTypeID)) .OrderBy(x => x.SortOrder) .Select(x => x.PurposeName) .ToList(); static string TextOr(string? value, string fallback) => string.IsNullOrWhiteSpace(value) ? fallback : value.Trim(); }

Current Scene

@scene.SceneTitle

@TextOr(scene.Summary, "No scene summary has been written yet.")

Where and When

POV
@pov
Date
@(scene.StartDateTime?.ToString("d MMM yyyy") ?? scene.RelativeTimeText ?? "Unknown")
Time
@(scene.StartDateTime?.ToString("HH:mm") ?? scene.TimeModeName ?? "Unknown")
Location
@primaryLocation
Status
@(scene.RevisionStatuses.FirstOrDefault(x => x.Value == scene.RevisionStatusID.ToString())?.Text ?? scene.RevisionStatusID.ToString())

Purpose

@if (purposeLabels.Any()) {
@foreach (var purpose in purposeLabels) { @purpose }
} else {

No scene purpose selected.

}

@TextOr(scene.ScenePurposeNotes, "No purpose notes yet.")

Outcome

@TextOr(scene.SceneOutcomeNotes, "No outcome notes yet.")

Continuity

@if (scene.Warnings.Any() || scene.AgeContinuityWarnings.Any()) { } else {

No continuity warnings.

}

Around this story date

@if(!scene.StartDateTime.HasValue){

No absolute story date saved. Relative timing is shown above; no nearby dates are inferred.

} else if(!Model.NearbyScenes.Any()){

No other dated scenes in this book within three days.

} else{}

People at this point

@if(!scene.SceneCharacters.Any()){

No participants saved for this scene.

}else{}

Active story threads

@if(!scene.ThreadEvents.Any()){

No saved thread developments for this scene.

}else{}

Place and floor

@primaryLocation

@(Model.FloorPlan?.FloorPlan.Name??"No floor plan linked")

@if(scene.InitialFloorPlanFloorID.HasValue){

@(Model.FloorPlan?.Floors.FirstOrDefault(f=>f.FloorPlanFloorID==scene.InitialFloorPlanFloorID)?.Name??"Saved floor is unavailable")

}

Use Place for saved room occupancy. Story Maps opens your saved maps; a location is never guessed from manuscript text.