@model WritingIntentDisplayViewModel @{ var scene = Model.Context?.Scene; var workflow = Model.ChapterWorkflow; var chapter = workflow?.Chapter ?? Model.Context?.Chapter; var goal = workflow?.Goal; static string TextOr(string? value, string fallback) => string.IsNullOrWhiteSpace(value) ? fallback : value.Trim(); }

Chapter Plan

Chapter @chapter?.ChapterNumber:g: @chapter?.ChapterTitle

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

Purpose
@TextOr(chapter?.ChapterPurposeName, "No chapter purpose selected.")
Goal
@TextOr(goal?.GoalSummary, "No chapter goal summary yet.")

Current Scene

@if (scene is null) {

No current scene. Chapter intent is shown until Word reports a scene.

} else {

Scene @scene.SceneNumber:g: @scene.SceneTitle

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

}

Scene Purpose

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

Expected Outcome

@TextOr(scene?.SceneOutcomeNotes, "No expected outcome has been captured for this scene.")

Emotional Goal

@TextOr(goal?.EmotionalGoal, "No emotional goal recorded for this chapter.")

Reader Takeaway

@TextOr(goal?.ReaderTakeaway, "No reader takeaway recorded for this chapter.")