@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();
}
Saved author plan and scene reference. Opening this view does not rewrite intent or accept suggestions.
Chapter Plan
Chapter @(chapter?.ChapterNumber.ToString("0.##")): @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.")
Saved scene reference
@if (scene is null)
{
No current scene. Chapter intent is shown until Word reports a scene.
}
else
{
Scene @(scene.SceneNumber.ToString("0.##")): @scene.SceneTitle
@TextOr(scene.Summary, "No scene summary has been written yet.")
}
Scene Purpose
@if(scene!=null){@foreach(var purpose in scene.ScenePurposeTypes.Where(p=>scene.SelectedPurposeTypeIds.Contains(p.ScenePurposeTypeID)).OrderBy(p=>p.SortOrder)){@purpose.PurposeName}
}
@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.")