test(ui): restore entry lifecycle and notebook rendering
This commit is contained in:
@@ -225,7 +225,7 @@ export default function ScenarioForm() {
|
|||||||
|
|
||||||
/* ── RTO.25A — passive late-result branch switcher (experimental) ── */
|
/* ── 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
|
// Pre-seed Competitor development with a late result for RTO.27A testing
|
||||||
const [branchNewResults, setBranchNewResults] = useState({ "branch-a": true });
|
const [branchNewResults, setBranchNewResults] = useState({ "branch-a": true });
|
||||||
|
|
||||||
@@ -457,7 +457,7 @@ export default function ScenarioForm() {
|
|||||||
return (
|
return (
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
{/* ── RTO.26B — standalone branch-scoped experimental view (shown when experiment is active) ───── */}
|
{/* ── RTO.26B — standalone branch-scoped experimental view (shown when experiment is active) ───── */}
|
||||||
{showExperimentView && status !== "loading" && (
|
{showExperimentView && status !== "loading" && (result?.situationGraph || status === "success") && (
|
||||||
<>
|
<>
|
||||||
<PulseStyle />
|
<PulseStyle />
|
||||||
<div className="grid grid-cols-1 gap-6 lg:grid-cols-4">
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-4">
|
||||||
@@ -518,18 +518,6 @@ export default function ScenarioForm() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user