@model WritingIntentDisplayViewModel @{ var scene = Model.Context?.Scene; var goal = Model.ChapterWorkflow?.Goal; var notes = scene?.Notes.OrderByDescending(x => x.IsPinned).ThenBy(x => x.IsResolved).ThenByDescending(x => x.UpdatedDate).ToList() ?? []; static string TextOr(string? value, string fallback) => string.IsNullOrWhiteSpace(value) ? fallback : value.Trim(); }

Chapter Risks

@TextOr(goal?.RisksOrConcerns, "No chapter risks or concerns recorded.")

Scene Notes

@if (!notes.Any()) {

No writing notes for this scene.

} else { }