test(ui): restore entry lifecycle and notebook rendering

This commit is contained in:
2026-08-20 09:33:06 +01:00
parent 86bb3426ef
commit cef8f46bd6
+2 -14
View File
@@ -225,7 +225,7 @@ export default function ScenarioForm() {
/* ── RTO.25A — passive late-result branch switcher (experimental) ── */
const [activeBranchId, setActiveBranchId] = useState("branch-b");
const [activeBranchId, setActiveBranchId] = useState("branch-a");
// Pre-seed Competitor development with a late result for RTO.27A testing
const [branchNewResults, setBranchNewResults] = useState({ "branch-a": true });
@@ -457,7 +457,7 @@ export default function ScenarioForm() {
return (
<div className="space-y-6">
{/* ── RTO.26B — standalone branch-scoped experimental view (shown when experiment is active) ───── */}
{showExperimentView && status !== "loading" && (
{showExperimentView && status !== "loading" && (result?.situationGraph || status === "success") && (
<>
<PulseStyle />
<div className="grid grid-cols-1 gap-6 lg:grid-cols-4">
@@ -518,18 +518,6 @@ export default function ScenarioForm() {
/>
</div>
</div>
{/* ── RTO.27B — simulated late update for paused branch (experimental dev control) ─ */}
<div className="mt-2 flex items-center gap-3">
<button
onClick={() => {
// Simulate a late result arriving on the customer-demand branch while paused
setBranchNewResults(prev => ({ ...prev, "branch-b": true }));
}}
className="rounded border border-purple-200/60 bg-purple-50 px-3 py-1.5 text-xs text-purple-700 hover:bg-purple-100 transition"
>
Simulate late update on Customer demand
</button>
</div>
</>
)}