14 Commits

Author SHA1 Message Date
fc97a990fb feat: Refactor task management to support recursive parent-child relationships and update database schema 2026-03-01 11:39:28 +01:00
f6ba7ebc36 update 2026-02-28 14:48:24 +01:00
a4a35c8d62 feat: Implement module permissions system with database-driven access control
- Added `users_permissions` table for managing user permissions.
- Created `PermissionRepository` for handling permission logic.
- Refactored `controls\Users::permissions()` to utilize the new database structure.
- Introduced AJAX endpoint for saving user permissions.
- Enhanced user management UI with permission checkboxes.
- Added vacation management template for handling employee absences.
- Implemented tests for `PermissionRepository`.
2026-02-26 20:17:03 +01:00
8f2e332069 Add unit tests for MailToTaskImporter attachment name normalization
- Implemented tests for various scenarios of attachment name normalization in MailToTaskImporter.
- Covered cases for technical names, named files, missing extensions, and content-based detection.
- Added tests for extracting names from MIME headers, including handling of Content-Description.
2026-02-18 23:30:11 +01:00
203a45e199 feat: Update MailToTaskImporter to handle attachment MIME types and improve filename handling; add CLAUDE.md for project guidance; create TODO.md for PDF attachment issue 2026-02-18 21:50:42 +01:00
f3be8e1025 feat: Refactor CRM and Finances modules
- Updated client-edit template to change 'Firma' to 'Nazwa' and added 'Nazwa firmy' input field.
- Modified main-view template to reflect the new naming conventions for clients.
- Enhanced finances main-view to display a list of clients with revenue details.
- Added client selection dropdown in operation-edit template.
- Improved work-time template by adding keyboard shortcut for task confirmation.
- Introduced CrmController for handling client-related actions.
- Created FinancesController to manage finance operations and categories.
- Implemented ClientRepository for client data management.
- Developed FinanceRepository for finance operations and data handling.
2026-02-14 21:30:02 +01:00
a4a8f6882b update 2026-02-11 15:28:33 +01:00
67ed085b38 feat: Enhance MailToTaskImporter with inline image support and update task content handling 2026-02-10 15:37:27 +01:00
482ca312aa feat: Enhance MailToTaskImporter with AI error handling and update OpenAI model to gpt-4o-mini
feat: Add Gantt task normalization and filter selection in main_view.php
2026-02-09 23:34:50 +01:00
304c87f933 feat: Implement user management functionality with impersonation support 2026-02-09 17:22:52 +01:00
63268e35dc feat: Integrate OpenAI API for email task parsing and update configuration 2026-02-08 22:48:57 +01:00
ba84cdab3d feat: Implement email task import functionality
- Added `import_tasks_from_email` method in `Cron` class to handle task imports from email.
- Created `MailToTaskImporter` class for processing emails and creating tasks based on their content.
- Updated configuration to include IMAP settings for email import.
- Enhanced `Tasks` class with a method to change the client associated with a task.
- Modified task details view to include a dropdown for selecting clients.
- Improved task timer functionality with separate start and stop functions.
- Added logic to handle task work duration validation.
- Updated JavaScript to manage task timers and client changes more effectively.
2026-02-07 00:53:48 +01:00
47ffc19a23 Refactor task management and add attachment functionality
- Updated task editing template to handle default status for new tasks and corrected variable names.
- Enhanced work time reporting by rounding time to the nearest quarter hour and adjusting amount formatting.
- Introduced TasksController to manage task-related operations, including status resolution and email notifications.
- Added TaskAttachmentRepository for handling task attachments, including upload, rename, and delete functionalities.
- Implemented WorkTimeRepository to fetch clients with unsettled tasks and calculate total work time.
- Created unit tests for TasksController and TaskAttachmentRepository to ensure functionality and correctness.
2026-02-06 23:11:48 +01:00
5161d0f979 Refactor work time management and billing summary
- Introduced a new `TasksController` to handle work time logic, moving it from the factory layer to the domain layer.
- Created `WorkTimeRepository` to encapsulate data access for work time tasks, including methods to retrieve clients with unsettled tasks and calculate task times.
- Updated the work time view to display a consolidated billing summary with improved UI elements and AJAX functionality for closing tasks.
- Added new styles for the billing summary section in `style.scss`.
- Implemented tests for the `TasksController` and `WorkTimeRepository` to ensure functionality and correctness.
- Established a refactoring plan for future improvements and migrations within the CRM system.
2026-02-06 21:32:11 +01:00