feat: sidebar redesign — activity feed, grouped nav, AI split #107
@@ -27,6 +27,10 @@ function calcActiveSeconds(startTimes: string[]): number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function SidebarStatsBar({ resolved, active, completedMinutes, activeSessionStartTimes }: SidebarStatsBarProps) {
|
export function SidebarStatsBar({ resolved, active, completedMinutes, activeSessionStartTimes }: SidebarStatsBarProps) {
|
||||||
|
// Debug: remove after fixing
|
||||||
|
if (activeSessionStartTimes.length > 0) {
|
||||||
|
console.log('[SidebarStats] startTimes:', activeSessionStartTimes, 'calcSeconds:', calcActiveSeconds(activeSessionStartTimes), 'now:', Date.now(), 'parsed:', activeSessionStartTimes.map(st => new Date(st).getTime()))
|
||||||
|
}
|
||||||
const [liveSeconds, setLiveSeconds] = useState(() => calcActiveSeconds(activeSessionStartTimes))
|
const [liveSeconds, setLiveSeconds] = useState(() => calcActiveSeconds(activeSessionStartTimes))
|
||||||
|
|
||||||
// Tick every second to keep the timer in sync with the session timer
|
// Tick every second to keep the timer in sync with the session timer
|
||||||
|
|||||||
Reference in New Issue
Block a user