From dae9338933bfccf5d73ccdad562160701ff3f209 Mon Sep 17 00:00:00 2001 From: spencrmartin Date: Tue, 18 Nov 2025 10:19:01 -0500 Subject: [PATCH] debug: add visual debug info and render logging - Added debug info boxes to both fallback and main render - Added console logging at render time to track component state - Visual debug boxes will show session counts and canvas dimensions - This will help identify if component is rendering at all --- .../src/components/sessions/SessionTimelineView.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/desktop/src/components/sessions/SessionTimelineView.tsx b/ui/desktop/src/components/sessions/SessionTimelineView.tsx index d2d0ac15d4..72e4096dfa 100644 --- a/ui/desktop/src/components/sessions/SessionTimelineView.tsx +++ b/ui/desktop/src/components/sessions/SessionTimelineView.tsx @@ -342,16 +342,24 @@ const SessionTimelineView: React.FC = ({ onSelectSession(nodeId); }; + console.log('SessionTimelineView: About to render, treeData.nodes.length =', treeData.nodes.length); + if (treeData.nodes.length === 0) { + console.log('SessionTimelineView: Rendering fallback - no nodes'); return (

No sessions to display

Your session tree will appear here

+

+ DEBUG: {sessions.length} sessions passed, {treeData.nodes.length} nodes created +

); } + console.log('SessionTimelineView: Rendering tree with', treeData.nodes.length, 'nodes'); + return (
{/* Header */} @@ -360,6 +368,9 @@ const SessionTimelineView: React.FC = ({

Tree visualization of {sessions.length} sessions showing temporal and topical relationships with curved connections.

+

+ DEBUG: Rendering {treeData.nodes.length} nodes, canvas: {treeData.width}x{treeData.height} +