@model RelationshipEvolutionViewModel @{ViewData["DesktopLayout"]="details";ViewData["Title"]="Relationship Evolution";var r=Model.Relationship;var pages=Math.Max(1,(Model.Total+24)/25);var points=Model.Events.Where(e=>e.Intensity.HasValue&&e.EvidenceState=="Verified").ToArray();var min=Model.Events.Select(e=>e.GlobalSceneIndex).DefaultIfEmpty(0).Min();var max=Model.Events.Select(e=>e.GlobalSceneIndex).DefaultIfEmpty(1).Max();}

Relationship Evolution · Definition #@r.CharacterRelationshipID

@r.CharacterAName @(r.IsReciprocal?"↔":"→") @r.CharacterBName

@r.RelationshipTypeName · @(r.IsReciprocal?"One reciprocal definition":"Directional definition")

Return to character Relationships

@r.Notes

@(r.IsInitialRelationship?"Initial author definition":"Scene-established definition"). Events below remain distinct from the underlying definition. @Model.Total recorded event(s).

@if(Model.Events.Count>1&&points.Length>1){

Recorded intensity

Horizontal: canonical manuscript scene order (this page). Vertical: recorded intensity, 1–10. Each purple point is one verified event; missing values and intermediate states are not inferred. Select a point to inspect its event.

@foreach(var level in new[]{1,5,10}){var y=170-(level-1)*16; @level} @foreach(var e in points){var x=50+(e.GlobalSceneIndex-min)*710m/Math.Max(1,max-min);var y=170-(e.Intensity!.Value-1)*16;@e.BookDisplayTitle · Ch @e.ChapterNumber · Scene @e.SceneNumber · @e.RelationshipStateName · Intensity @e.Intensity} First recorded scene on this pageLast recorded scene on this page
}else if(Model.Total==0){

No recorded events

This author definition has no scene-based developments. No timeline or intensity has been inferred. Use the scene editor to record a development.

} else{

@(Model.Total==1?"One recorded event: its state and any recorded intensity are shown below.":"Recorded changes are shown chronologically below. This page has insufficient verified intensity values for a useful chart.")

} @if(Model.Issues.Any()){}else{

No recorded continuity warnings for this definition.

}

Recorded history

@foreach(var e in Model.Events){

@e.BookDisplayTitle · Ch @e.ChapterNumber · Scene @e.SceneNumber: @e.SceneTitle

@e.RelationshipStateName · Intensity @(e.Intensity?.ToString()??"not recorded") · @(e.IsKnownToOtherCharacter?"Known to the other character":"Not recorded as known to the other character")

@e.Description

@e.EvidenceState @(e.SourceReviewKey!=null?"· Accepted review source":"") · Event #@e.RelationshipEventID

@if(e.EvidenceState!="Verified"){

Source evidence needs review; this is not an established relationship development.

}
Open scene / source@if(Model.CanEdit){}
}
@if(Model.Page>1){Previous events}Page @Model.Page of @pages · up to 25 events per page@if(Model.PageNext events}Show on timeline

@section Scripts{}