@model WritingContextDisplayViewModel @{var position=Model.Context!.Position;var participants=Model.Context.Scene!.SceneCharacters.Select(c=>c.CharacterID).ToHashSet();if(Model.Context.Scene.POVCharacterID is int pov)participants.Add(pov); var rows=(Model.AtPoint?.Relationships??Model.RelationshipMap?.Relationships??[]).OrderByDescending(r=>participants.Contains(r.CharacterAID)&&participants.Contains(r.CharacterBID)).ThenBy(r=>r.CharacterAName).ToList();var canEdit=Model.CharacterExplorer?.CanEdit==true;}

Verified author reference at this scene. Reader and other-character flags are recorded separately by the underlying system; neither proves what the viewpoint character knows. Unverified claims are excluded from this state.

@foreach(var family in new[]{true,false}){

@(family?"Family connections":"Narrative connections")

@foreach(var r in rows.Where(r=>string.Equals(r.RelationshipCategoryName,"Family",StringComparison.OrdinalIgnoreCase)==family)){
@r.CharacterAName @(r.IsReciprocal?"↔":"→") @r.CharacterBName@r.RelationshipTypeName · @r.CurrentStateName

@r.RelationshipCategoryName · @(r.IsReciprocal?"Reciprocal connection":"Directional connection: From → To") @if(r.CurrentIntensity.HasValue){· Intensity @r.CurrentIntensity / 10}

@if(!string.IsNullOrWhiteSpace(r.Notes)){

Recorded notes: @r.Notes

}else{

No author notes recorded for this state.

}

First meeting: no structured marker is available. Explicit meeting evidence, if recorded, remains in the notes and developments below; earliest co-occurrence is never treated as a meeting.

Latest recorded developments (@r.History.Count)
    @foreach(var item in r.History.OrderBy(h=>h.SceneID.HasValue?(Model.Context.Narrative?.Scenes.ToList().FindIndex(s=>s.SceneID==h.SceneID)??-1):-1).Reverse().Take(3)){
  • @item.Label · @item.StateName @item.Notes @if(item.SceneID.HasValue){Source scene}
  • }
@if(canEdit){
@if(r.InitialStateEditable){}
} Open in Relationships Editor
}
} @if(canEdit){
}

Open in Relationships Editor