mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-18 12:19:18 -05:00
115db52b2b
- Fix approve crash: make _mark_entry_approved a no-op (approval state from TimeEntryApproval only; TimeEntry has no metadata column). - Fix PostgreSQL enum: use values_callable on ApprovalStatus so DB receives 'pending' not 'PENDING' (matches approvalstatus enum). - Fix approval templates: use requester/approver, request_comment, time_entry.notes; reject form field name 'reason'; add can_approve to view and pass from route. - Filter get_pending_approvals by current approver (policy/project fallback). - Add Time Approvals nav link under Work in base.html (module-enabled). - Add Request approval in time entries list (icon) and view_timer (sidebar); redirect to list_approvals after request. - Fix empty_state calls in approvals/list.html (use icon_class positional args to match components/ui.html macro).