From d1e6c2e0328d69f5a6b3310dffbced61aa6b2e35 Mon Sep 17 00:00:00 2001 From: robbond Date: Wed, 5 Aug 2026 12:25:44 +0100 Subject: [PATCH] experiment: facilitator panel beside workspace (Exp 05) - Replace stacked landing with responsive two-column layout - Left panel (1/3 desktop): facilitator intro card with dismiss checkbox - Right panel (2/3 desktop): Tell me what's happening textarea + Analyse - Mobile/tablet stack vertically as before - 'Don't show' uses sessionStorage; future: user profile settings - Close Exp 04 (Partially confirmed) in evolution log - Add Exp 05 entry + Facilitator Behaviour UX section --- .claude/ux-guidelines.md | 12 ++++ components/scenario-form.jsx | 111 ++++++++++++++++++++++------------- docs/design-evolution-log.md | 49 ++++++++++++++++ 3 files changed, 132 insertions(+), 40 deletions(-) diff --git a/.claude/ux-guidelines.md b/.claude/ux-guidelines.md index 0ec43f3..5ea2c05 100644 --- a/.claude/ux-guidelines.md +++ b/.claude/ux-guidelines.md @@ -336,3 +336,15 @@ Complexity appears progressively. Users begin with observations rather than conclusions. The Confidence Engine behaves like a facilitator introducing a workshop — calm, patient, and focused on understanding before acting. + +## Facilitator Behaviour + +Orientation should support work, not interrupt it. + +The facilitator is present by invitation, not obligation. + +Returning users should control repeated guidance. + +The workspace should remain the primary visual focus. + +Information should naturally flow from left to right. diff --git a/components/scenario-form.jsx b/components/scenario-form.jsx index d65be3d..5696e62 100644 --- a/components/scenario-form.jsx +++ b/components/scenario-form.jsx @@ -218,6 +218,7 @@ export default function ScenarioForm() { const [lastSubmittedAnswer, setLastSubmittedAnswer] = useState(""); const [currentUnderstanding, setCurrentUnderstanding] = useState(null); const [mockScenario, setMockScenario] = useState(""); + const [hideFacilitatorOnLanding, setHideFacilitatorOnLanding] = useState(false); const textareaRef = useRef(null); /* Restore persisted session on mount (Phase 3) ─────────── */ @@ -231,6 +232,15 @@ export default function ScenarioForm() { setStatus("success"); }, []); + /* Restore facilitator dismiss preference (Experiment 05) ─── */ + useEffect(() => { + if (typeof window === "undefined") return; + try { + const pref = sessionStorage.getItem("ce-facilitator-dismissed"); + setHideFacilitatorOnLanding(pref === "true"); + } catch (_) {} + }, []); + /* Inject mock globals so the interceptor can read them at runtime */ useMockGlobals(); @@ -379,50 +389,71 @@ export default function ScenarioForm() { {status === "idle" && (
- {/* Welcome introduction */} -
-

Before we begin

-

- The Confidence Engine helps build confidence by understanding situations before deciding what to do. -

-

- You do not need to know exactly what the problem is. -

-

- Simply describe what you have observed. We will work through it together, one question at a time. -

-
+ {/* Two-column landing workspace */} +
- {/* Scenario input */} -
-