@model StoryIntelligenceRelationshipImportResultViewModel
@{
    ViewData["Title"] = "Relationships created";
}

<section class="onboarding-shell" aria-labelledby="story-relationship-complete-title">
    <div class="onboarding-panel onboarding-review-panel">
        <partial name="_StoryIntelligencePipelineHeader" model="@(new StoryIntelligencePipelineHeaderViewModel { CurrentStage = "Complete" })" />
        <div class="onboarding-copy">
            <p class="eyebrow">Build Story Database</p>
            <div class="onboarding-success-heading">
                <span aria-hidden="true">&check;</span>
                <h1 id="story-relationship-complete-title">Relationships created</h1>
            </div>
            <p>PlotDirector updated your story database from the approved relationship decisions. Next, review the knowledge changes detected in the imported scenes.</p>
        </div>

        <div class="onboarding-scan-counts onboarding-review-counts">
            <div>
                <span>Relationships created</span>
                <strong>@Model.RelationshipsCreated.ToString("N0")</strong>
            </div>
            <div>
                <span>Relationships linked</span>
                <strong>@Model.RelationshipsLinked.ToString("N0")</strong>
            </div>
            <div>
                <span>Relationships merged</span>
                <strong>@Model.RelationshipsMerged.ToString("N0")</strong>
            </div>
            <div>
                <span>Relationships ignored</span>
                <strong>@Model.RelationshipsIgnored.ToString("N0")</strong>
            </div>
            <div>
                <span>Relationship events added</span>
                <strong>@Model.RelationshipEventsCreated.ToString("N0")</strong>
            </div>
        </div>

        <div class="story-future-stage-grid">
            <article class="story-future-stage"><strong>Review Continuity</strong><span>Coming Soon</span></article>
            <article class="story-future-stage"><strong>Timeline Events</strong><span>Coming Soon</span></article>
        </div>

        <div class="onboarding-actions">
            <a class="btn btn-outline-secondary" asp-action="StoryIntelligenceRelationships" asp-route-batchId="@Model.BatchID">Back to relationships</a>
            <a class="btn btn-primary" asp-action="StoryIntelligenceKnowledge" asp-route-batchId="@Model.BatchID">Review knowledge</a>
        </div>
    </div>
</section>
