From 908606ade24a5f15ebd8270cdc8afa9daafc2daa Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 12 Mar 2026 21:49:31 +0100 Subject: [PATCH] fix: make journey empty states consistent with dashboard blocks --- components/journeys/SankeyDiagram.tsx | 13 +++++++++++-- components/journeys/TopPathsTable.tsx | 13 ++++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/components/journeys/SankeyDiagram.tsx b/components/journeys/SankeyDiagram.tsx index 4baa053..4ac3a62 100644 --- a/components/journeys/SankeyDiagram.tsx +++ b/components/journeys/SankeyDiagram.tsx @@ -2,6 +2,7 @@ import { useMemo, useState } from 'react' import { useTheme } from '@ciphera-net/ui' +import { TreeStructure } from '@phosphor-icons/react' import type { PathTransition } from '@/lib/api/journeys' // ─── Types ────────────────────────────────────────────────────────── @@ -277,8 +278,16 @@ export default function SankeyDiagram({ if (!transitions.length || !links.length) { return ( -
- No journey data available +
+
+ +
+

+ No journey data yet +

+

+ Navigation flows will appear here as visitors browse through your site. +

) } diff --git a/components/journeys/TopPathsTable.tsx b/components/journeys/TopPathsTable.tsx index ae04ebf..d92ee70 100644 --- a/components/journeys/TopPathsTable.tsx +++ b/components/journeys/TopPathsTable.tsx @@ -2,6 +2,7 @@ import type { TopPath } from '@/lib/api/journeys' import { TableSkeleton } from '@/components/skeletons' +import { Path } from '@phosphor-icons/react' interface TopPathsTableProps { paths: TopPath[] @@ -69,9 +70,15 @@ export default function TopPathsTable({ paths, loading }: TopPathsTableProps) {
) : ( -
-

- No path data available +

+
+ +
+

+ No path data yet +

+

+ Common navigation paths will appear here as visitors browse your site.

)}