d310c6b8cbcb1d52889ebcd023297c028c8399ca
The green highlight on the currently-in-progress meeting row would get stuck when the user locked their iPad, switched apps, or the device slept. The 60-second setInterval timer that drives `nowTick` is frozen by the browser during background/sleep states. When the user returned, the timer wouldn't fire immediately, leaving the highlight on the old meeting. Fix: Added a `visibilitychange` event listener alongside the existing interval timer. When the document becomes visible again, it immediately calls `setNowTick(Date.now())`, which triggers `computeCurrentMeetingId` to re-evaluate via the existing useMemo dependency. The listener is properly cleaned up in the effect's return function. Changed file: - artifacts/tx-os/src/pages/executive-meetings.tsx (lines 1065-1084)
Description
No description provided
Languages
TypeScript
69.4%
JavaScript
29%
CSS
0.6%
Shell
0.6%
Dockerfile
0.2%
Other
0.2%