mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-05 11:09:55 -06:00
- Add GET /api/analytics/today-by-task to return today’s totals grouped by task - Defaults to current user; admins can pass user_id - Optional date=YYYY-MM-DD - Groups by project/task; includes project-level entries without a task as “No task” - Sums durations across multiple entries for the same task (e.g., 08–09 + 11–12 = 2.00h) - Returns project_name, task_name, total_hours, total_seconds - Dashboard: add “Today by Task” card that fetches and renders aggregated hours - Shows empty-state message when no data - Adds small i18n keys for labels No DB migrations. Backwards compatible.