fix: make step 1 clicks show connector lines like other steps

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.
This commit is contained in:
Usman Baig
2026-03-16 09:42:59 +01:00
parent df10d4e747
commit 2e444849ef
2 changed files with 1 additions and 9 deletions

View File

@@ -190,7 +190,6 @@ export default function JourneysPage() {
transitions={transitionsData?.transitions ?? []}
totalSessions={totalSessions}
depth={committedDepth}
onNodeClick={(path) => setEntryPath(path)}
/>
</div>

View File

@@ -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<Map<number, string>>(new Map())
const containerRef = useRef<HTMLDivElement>(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 ────────────────────────────────────────────────