@model PlotLine.Services.Writer.ReviewPanel @{var data=Model.Intentions;var goal=data.Sections.First(x=>x.Kind=="Goals");var scene=data.Sections.FirstOrDefault(x=>x.Kind=="Scene");string Compact(string value)=>value.Length>360?value[..360]+"…":value;}

What did I want this to achieve?

@Model.ReferenceMessage

@if(scene!=null){

@data.Scene?.SceneTitle

@(string.IsNullOrWhiteSpace(scene.Value("ScenePurposeNotes"))?"No scene intention recorded.":Compact(scene.Value("ScenePurposeNotes")))

@Compact(scene.Value("SceneOutcomeNotes"))

Recorded scene state: @data.Scene?.RevisionStatusName

}

@(string.IsNullOrWhiteSpace(goal.Value("GoalSummary"))?"No chapter intention recorded. You can review without one.":Compact(goal.Value("GoalSummary")))

Chapter details, reminders & editing @foreach(var section in data.Sections.Where(x=>x.Kind is "Chapter" or "Goals")){@foreach(var field in section.Fields){var value=section.Value(field.Name);if(field.Type=="purpose"&&!string.IsNullOrWhiteSpace(value))value=section.Purposes.FirstOrDefault(p=>p.Value==value).Label??"Recorded purpose is unavailable";@if(!string.IsNullOrWhiteSpace(value)){

@field.Label@value

}}} @foreach(var note in data.Sections.Where(x=>x.Kind=="Note"&&x.Value("IsResolved")!="true"||x.Kind=="Checklist"&&x.Value("IsCompleted")!="true").Take(10)){

@(note.Kind=="Note"?note.Value("NoteText"):note.Value("ItemText"))

} @{var flow=data.Sections.FirstOrDefault(x=>x.Kind=="Workflow");}@if(flow!=null){

Priority: @flow.Value("Priority"). @flow.Value("BlockedReason")

} Edit chapter intentions in the existing editor @if(data.SceneID.HasValue){Edit scene intentions, notes and working details}

Your observations

@if(Model.Observations.Count==0){

No observations on this page. Record something when it helps your review.

} @foreach(var row in Model.Observations){

@(row.Status=="Open"?"Needs attention":row.Status=="Working"?"Working on it":"Resolved")

@row.Observation

@row.Decision

@row.AnchorState reference · @(row.SnapshotRevision<0?"No accepted version at capture":"Accepted version "+row.SnapshotRevision) · created @row.CreatedUtc.ToString("dd MMM yyyy HH:mm:ss") UTC · updated @row.UpdatedUtc.ToString("dd MMM yyyy HH:mm:ss") UTC

@if(row.StartParagraph.HasValue){}
}
@if(Model.Page>1){}@if(Model.HasMore){}