You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
The main dashboard lacks direct control over the global workout timer. Administrators must currently use a separate control panel or debugging tools to manage the session state (WORK, REST, PAUSE).
Technical Analysis:
Current Gap: While types/websocket.ts defines TimerCommandMessage with START and STOP commands, there is no corresponding UI component on the dashboard to trigger them. The file components/WorkoutControls.tsx is missing from the codebase.
Required Change:
New Component: Create components/WorkoutControls.tsx featuring "Start" (Play icon) and "Stop" (Square icon) buttons.
Integration: Wire the buttons to emit TIMER_COMMAND WebSocket messages.
Display: Add a large, high-visibility timer readout (MM:SS) that subscribes to the timerData.timeRemaining broadcast.
OPEN(Linked to PR Add Start/Stop Workout button and timer display #697)The main dashboard lacks direct control over the global workout timer. Administrators must currently use a separate control panel or debugging tools to manage the session state (
WORK,REST,PAUSE).types/websocket.tsdefinesTimerCommandMessagewithSTARTandSTOPcommands, there is no corresponding UI component on the dashboard to trigger them. The filecomponents/WorkoutControls.tsxis missing from the codebase.components/WorkoutControls.tsxfeaturing "Start" (Play icon) and "Stop" (Square icon) buttons.TIMER_COMMANDWebSocket messages.timerData.timeRemainingbroadcast.Cloned from #710