Files
TimeTracker/tests
Dries Peeters e6eac1a7de feat: add invoice deletion with system-wide modal confirmation
Implemented complete invoice deletion feature allowing users to delete
incorrectly generated invoices from both the view and list pages.

Changes:
- Added delete button to invoice view page with modal confirmation
- Added delete buttons to invoice list page with modal confirmation
- Implemented custom Tailwind modal matching project design patterns
- Modal displays invoice number and cascade deletion warning
- Full dark mode support with proper accessibility (ARIA attributes)
- Modal can be closed via Cancel button, clicking outside, or ESC key

Technical details:
- Backend route already existed (/invoices/<id>/delete)
- Cascade deletion automatically removes related items, goods, and payments
- Permission checks: only invoice creator or admins can delete
- Delete route returns to invoice list with success/error messages

Testing:
- Added 12 comprehensive tests covering deletion functionality
- Unit tests for basic deletion and cascade behavior
- Route tests for permissions and success/error cases
- Smoke tests for UI elements and complex deletion scenarios
- All tests passing 

The modal implementation follows the established pattern used in
kanban/columns.html, ensuring consistency across the application.
2025-10-29 09:26:13 +01:00
..
2025-10-24 18:16:15 +02:00
2025-10-27 17:46:50 +01:00
2025-10-27 17:46:50 +01:00
2025-10-10 11:37:23 +02:00
2025-10-27 17:46:50 +01:00
2025-10-10 14:02:28 +02:00
2025-10-20 21:25:13 +02:00
2025-10-27 17:46:50 +01: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 11:37:23 +02:00
2025-10-27 17:46:50 +01:00
2025-10-27 17:46:50 +01: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