12 lines
2.0 KiB
Plaintext

@using System.Text.Json
@using PlotLine.Services.Investigations
@model PlotLine.Models.Investigations.Catalogue
@{ViewData["Title"]="Guided Investigation test catalogue";ViewData["ProjectSection"]="Writer";}
<div class="investigation"><h1>Guided Investigation · Development diagnostics</h1><p role="status">@ViewData["Message"]</p><p>Author-private simulation uses normal investigations in a disposable book. Choose answers in the author interface, then open its diagnostics link to inspect every evidence contribution, selected question reason, completion gap and append-only replay snapshot. Administrators cannot inspect another author's private investigation through this interface.</p>
<p><a href="/Writer/Explore">Start or resume a test investigation</a> · <a href="/admin/writer-investigations/export">Export current catalogue</a></p>
<form method="post" asp-action="Import"><label for="catalogue-json">Structured catalogue JSON</label><textarea id="catalogue-json" class="form-control" name="json" rows="22" maxlength="1000000">@JsonSerializer.Serialize(Model,CatalogueValidator.Json)</textarea><button class="btn btn-outline-secondary" name="operation" value="validate">Validate without saving</button><button class="btn btn-primary" name="operation" value="publish">Publish new immutable version</button></form>
<p>Existing investigations remain pinned to their published version. Use a new version identifier for every publication. Synthetic content is accessible only in Development. See Docs/Writer/Investigations for the schema and automated simulation workflow.</p></div>
<h2>Developer catalogue selection</h2>
<form asp-action="Index" method="get"><label>Disposable book ID <input name="bookId" type="number" min="1" required /></label><label>Catalogue version <select name="catalogueVersion"><option>synthetic-3d1-v1</option><option>synthetic-3d1-v2</option><option>guided-investigation-production-v0.1</option></select></label><button class="btn btn-outline-secondary">Open private test</button></form>