()
| 198 | const staleClass = session.isStale ? 'bg-status-warning/10' : ''; |
| 199 | |
| 200 | const handleSessionClick = async () => { |
| 201 | console.log('[ProjectDashboard] Session clicked:', session.sessionId, session.sessionName); |
| 202 | try { |
| 203 | await useSessionStore.getState().setActiveSession(session.sessionId); |
| 204 | console.log('[ProjectDashboard] Session set, now navigating to sessions view'); |
| 205 | useNavigationStore.getState().navigateToSessions(); |
| 206 | console.log('[ProjectDashboard] Navigation completed'); |
| 207 | } catch (error) { |
| 208 | console.error('[ProjectDashboard] Error in handleSessionClick:', error); |
| 209 | } |
| 210 | }; |
| 211 | |
| 212 | return ( |
| 213 | <tr key={session.sessionId} className={`hover:bg-surface-hover ${staleClass} cursor-pointer`} onClick={handleSessionClick}> |
nothing calls this directly
no test coverage detected