PlotDirector/PlotLine/Views/Shared/SceneInspectorV2/_SceneInspectorEditPage.cshtml
Nick Beckley e48889ac05 Complete desktop workspaces, context menus and plot health
Commit the pending application, help and browser regression work. Pin the patched PKCS dependency for the production release.
2026-10-31 09:27:04 +00:00

32 lines
2.4 KiB
Plaintext

@model SceneEditViewModel
@{
var areas = new[] { ("overview", "Overview", "overview"), ("story", "Story", "threads"), ("people", "People", "characters"), ("world", "World", "locations"), ("writer", "Writer", "writer"), ("continuity", "Continuity", "warnings") };
}
<div class="scene-inspector-v2 scene-inspector-v2-edit scene-workspace" data-scene-inspector-v2 data-scene-workspace data-scene-area="overview" data-scene-id="@Model.SceneID">
<nav class="scene-workspace-nav" aria-label="Scene workspace" data-pwa-context="Edit Scene" data-pwa-priority="0">
<p class="eyebrow">Scene workspace</p>
@foreach (var (key, label, icon) in areas)
{
<button type="button" class="scene-workspace-nav-command" id="scene-area-@key" data-scene-area-command="@key" data-pwa-label="@label" data-pwa-icon="@icon" aria-pressed="@(key == "overview" ? "true" : "false")" aria-controls="scene-workspace-canvas">
<span>@label</span>
@if (key == "people") { <small data-scene-people-count>@Model.SceneCharacters.Count</small> }
@if (key == "continuity") { <small data-scene-warning-count>@(Model.Warnings.Count + Model.AgeContinuityWarnings.Count)</small> }
</button>
}
</nav>
<div class="scene-workspace-workbench">
<div class="scene-inspector-v2-summary-pane" id="scene-workspace-canvas" role="region" aria-label="Overview workspace" tabindex="-1">
<div class="scene-inspector-v2-grid">
<partial name="~/Views/Shared/SceneInspectorV2/_SceneOverviewCard.cshtml" model="Model" />
<partial name="~/Views/Shared/SceneInspectorV2/_SceneStoryCard.cshtml" model="Model" />
<partial name="~/Views/Shared/SceneInspectorV2/_ScenePeopleCard.cshtml" model="Model" />
<partial name="~/Views/Shared/SceneInspectorV2/_SceneWorldCard.cshtml" model="Model" />
<partial name="~/Views/Shared/SceneInspectorV2/_SceneWriterCard.cshtml" model="Model" />
<partial name="~/Views/Shared/SceneInspectorV2/_SceneContinuityCard.cshtml" model="Model" />
</div>
</div>
<div class="scene-inspector-editor-resizer" data-scene-editor-resizer role="separator" tabindex="0" aria-orientation="vertical" aria-label="Resize focused editor" aria-valuenow="520"></div>
<partial name="~/Views/Shared/SceneInspectorV2/_SceneInspectorEditorHost.cshtml" />
</div>
</div>