@model WritingIntentDisplayViewModel
@{
var scene = Model.Context?.Scene;
var workflow = scene?.Workflow;
var checklist = scene?.ChecklistItems.OrderBy(x => x.IsCompleted).ThenBy(x => x.SortOrder).ThenBy(x => x.ItemText).ToList() ?? [];
var completed = checklist.Count(x => x.IsCompleted);
}
Workflow
@if (workflow is null || scene is null)
{
No current scene workflow.
}
else
{
- Status
- @workflow.DraftStatus
- Priority
- @(workflow.Priority?.ToString() ?? "None")
- Estimate
- @(workflow.EstimatedWordCount?.ToString("N0") ?? "Not set")
- Actual
- @(workflow.ActualWordCount?.ToString("N0") ?? "Not set")
- Blocked
- @(workflow.IsBlocked ? (workflow.BlockedReason ?? "Blocked") : "No")
}
Checklist
@if (!checklist.Any())
{
No checklist items.
}
else
{
@completed / @checklist.Count completed
@foreach (var item in checklist)
{
-
@(item.IsCompleted ? "Done" : "Planned")
@item.ItemText
}
}
Future Fulfilment
Stored checklist and workflow states are shown as recorded. Automatic fulfilment detection is not enabled here.