mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-02-05 03:38:52 -06:00
This commit includes multiple performance optimizations, error handling improvements, and bug fixes across the application. Performance Improvements: - Add caching for task status_display property to avoid N+1 queries - Pre-calculate task counts by status in route handler instead of template - Pre-load kanban columns in TaskService to eliminate N+1 queries - Remove unnecessary db.session.expire_all() call in tasks route - Always use pagination for task lists to improve performance Error Handling & Robustness: - Add graceful handling for missing time_entry_approvals table in timer deletion - Improve safe_commit to handle ProgrammingError for optional relationships - Add VAPID key validation and error handling in PWA push notifications - Make custom_field_definitions migration idempotent Bug Fixes: - Fix IndexedDB boolean query issues in offline-sync.js by using cursor iteration - Fix app context handling in scheduled reports processing - Improve error messages for push notification subscription failures