
Implement the employee clock-in/clock-out flow for individual tasks on the lime-website platform. This includes building the timer start/stop mechanism tied to each task card, persisting sessions in IST (Indian Standard Time), and surfacing elapsed time in the task detail view.
Acceptance criteria:
Technical notes:
Use POST /api/timers/start and POST /api/timers/stop endpoints. Payload must include task_id, user_id, and an ISO 8601 timestamp localised to Asia/Kolkata. The response returns a session_id used to reconcile logged hours in the Reports module.
// Clock-in request
fetch('/api/timers/start', {
method: 'POST',
body: JSON.stringify({
task_id: 'TASK-042',
user_id: 'USR-007',
started_at: new Date().toISOString()
})
});
No comments yet. Be the first!