Files
TimeTracker/tests
Dries Peeters 154f9b37a6 feat: integrate calendar feature with tasks and time entries display
Refactored the existing calendar API endpoint to properly display calendar
events, tasks, and time entries with distinct visual representations.

Changes:
- Updated /api/calendar/events endpoint in api.py to use new
  CalendarEvent.get_events_in_range() method that fetches all three item types
- Fixed user_id bug where it was defaulting to None instead of current_user.id
- Modified API response format to include all items in unified 'events' array
  with item_type field ('event', 'task', 'time_entry') for differentiation
- Updated calendar.js to parse unified response format and filter items by type
- Added visual distinctions:
  * Tasks: 📋 emoji, orange (#f59e0b) color, clickable
  * Time entries: ⏱ emoji, project-based colors, non-clickable
  * Calendar events: 📅 emoji, custom colors, clickable
- Fixed task detail route from /tasks/view/{id} to /tasks/{id}
- Updated all calendar view renderers (month, week, day) to use correct
  data structure with extendedProps
- Added cache-busting to calendar.js (v7) and calendar.css (v2)
- Preserved backward compatibility with existing calendar filtering
  (project_id, task_id, tags)

The calendar now correctly displays all time tracking data in a unified view
with proper visual hierarchy and interaction patterns.

Fixes: Calendar not showing tasks and time entries
Related: Calendar/Agenda Support feature implementation
2025-10-27 11:40:38 +01:00
..
2025-10-24 18:16:15 +02:00
2025-10-10 11:37:23 +02:00
2025-10-10 14:02:28 +02:00
2025-10-20 21:25:13 +02:00
2025-10-20 21:25:13 +02:00
2025-10-22 11:25:10 +02:00
2025-10-25 08:38:53 +02:00
2025-10-25 08:38:53 +02:00
2025-10-10 13:48:24 +02:00
2025-10-10 11:37:23 +02:00
2025-10-24 15:14:39 +02:00
2025-10-23 14:00:53 +02:00
2025-10-24 18:16:15 +02:00
2025-10-24 18:16:15 +02:00
2025-10-10 11:37:23 +02:00
2025-10-20 21:25:13 +02:00
2025-10-24 16:53:30 +02:00
2025-10-24 15:03:34 +02:00
2025-10-10 11:37:23 +02:00
2025-10-24 15:14:39 +02:00