From 2e444849ef6dd0da620d808ed99d7e8ee25044e6 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Mon, 16 Mar 2026 09:42:59 +0100 Subject: [PATCH] fix: make step 1 clicks show connector lines like other steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously clicking a step 1 block would set it as an entry point filter instead of showing connection lines. Now all steps behave consistently — clicking any step toggles selection and draws connector lines to the next column. Entry point filtering remains available via the dropdown. --- app/sites/[id]/journeys/page.tsx | 1 - components/journeys/ColumnJourney.tsx | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/app/sites/[id]/journeys/page.tsx b/app/sites/[id]/journeys/page.tsx index 67f5a41..ccf3ebc 100644 --- a/app/sites/[id]/journeys/page.tsx +++ b/app/sites/[id]/journeys/page.tsx @@ -190,7 +190,6 @@ export default function JourneysPage() { transitions={transitionsData?.transitions ?? []} totalSessions={totalSessions} depth={committedDepth} - onNodeClick={(path) => setEntryPath(path)} /> diff --git a/components/journeys/ColumnJourney.tsx b/components/journeys/ColumnJourney.tsx index 2fe1c84..bae0d9c 100644 --- a/components/journeys/ColumnJourney.tsx +++ b/components/journeys/ColumnJourney.tsx @@ -10,7 +10,6 @@ interface ColumnJourneyProps { transitions: PathTransition[] totalSessions: number depth: number - onNodeClick?: (path: string) => void } interface ColumnPage { @@ -431,7 +430,6 @@ export default function ColumnJourney({ transitions, totalSessions, depth, - onNodeClick, }: ColumnJourneyProps) { const [selections, setSelections] = useState>(new Map()) const containerRef = useRef(null) @@ -455,11 +453,6 @@ export default function ColumnJourney({ const handleSelect = useCallback( (colIndex: number, path: string) => { - if (colIndex === 0 && onNodeClick) { - onNodeClick(path) - return - } - setSelections((prev) => { const next = new Map(prev) if (next.get(colIndex) === path) { @@ -473,7 +466,7 @@ export default function ColumnJourney({ return next }) }, - [onNodeClick] + [] ) // ─── Empty state ────────────────────────────────────────────────