@model StoryIntelligenceExistingChapterQueueViewModel @{ ViewData["Title"] = "Queue Story Intelligence From Chapter"; }

Admin utility

Queue from existing chapter

Run the persisted Story Intelligence pipeline from read-only PlotDirector chapter data.

@if (!string.IsNullOrWhiteSpace(Model.ErrorMessage)) {
@Model.ErrorMessage
} @if (!string.IsNullOrWhiteSpace(Model.WarningMessage)) {
@Model.WarningMessage
}
Saved runs
@if (Model.SelectedChapter is not null) {

Selected source

Project
@Model.SelectedChapter.ProjectName
Book
@DisplayBook(Model.SelectedChapter)
Chapter
Chapter @Model.SelectedChapter.ChapterNumber: @Model.SelectedChapter.ChapterTitle
Word count
@DisplayCount(Model.SelectedChapter.SourceWordCount)
Character count
@DisplayCount(Model.SelectedChapter.SourceCharacterCount)
Text source
@(Model.SelectedChapter.HasSourceText ? "Stored chapter manuscript text is available." : "No stored chapter manuscript text is available.")
@Html.AntiForgeryToken()
} @functions { private static string DisplayCount(int? value) => value.HasValue ? value.Value.ToString("N0") : "Not available"; private static string DisplayBook(StoryIntelligenceExistingChapterSource source) => string.IsNullOrWhiteSpace(source.BookSubtitle) ? source.BookTitle : $"{source.BookTitle}: {source.BookSubtitle}"; }