Commit Graph

271 Commits

Author SHA1 Message Date
Ross 09c8124cdd add workers check 2026-06-03 20:38:10 +01:00
Ross 2949327d39 match cons export format 2026-06-03 20:29:33 +01:00
Ross ea68885ff3 start rota export in grid format 2026-06-03 20:15:34 +01:00
Ross e288585cd3 feat: add max days per week block constraint to Worker class
- Introduced a new method `add_max_days_per_week_block_constraint` to the Worker class.
- This method allows for the addition of constraints that limit the number of days a worker can be assigned within a specified sliding block of weeks.
- The method accepts parameters for maximum days, the week block size, and optional dates to ignore.
2026-06-02 13:50:31 +01:00
Ross 4cad1158c6 use cons sync view 2026-05-20 21:12:42 +01:00
Ross f90e6895b4 Add functionality to export timetable.js and enhance worker list rendering with detailed information 2026-05-19 22:13:00 +01:00
Ross 827753644f Add debug logging to renderWorkerList for improved troubleshooting 2026-05-19 21:38:12 +01:00
Ross 935b4baaba Add ignore_dates field to worker constraints and implement related tests 2026-05-19 21:31:05 +01:00
Ross dee80ed4fa Add constraints for maximum days and unique shifts per week block in worker model 2026-05-19 21:23:09 +01:00
Ross a071b1b027 Update worker scheduling constraints in load_workers for improved shift management 2026-05-19 21:01:18 +01:00
Ross ee263aade1 Refactor worker scheduling constraints in load_workers and main functions for improved clarity and functionality 2026-05-19 20:45:23 +01:00
Ross 68b80ace23 Refactor date parsing and configuration constants in gen_cons.py for improved clarity and maintainability 2026-05-19 20:37:06 +01:00
Ross 4bb4f5b97a Refactor total shifts calculation in generateExtra and worker row processing for improved clarity and error handling 2026-05-19 15:33:37 +01:00
Ross d741d7e23c Update shift configurations and parameters in RotaBuilder for enhanced scheduling 2026-01-07 22:28:58 +00:00
Ross 64c4189d5f Add functionality to handle missing shifts in RotaBuilder and include worker grades in the timetable 2026-01-07 22:14:43 +00:00
Ross 277f14747a Increase max_number in LimitGradeNumberConstraint from 1 to 2 for better shift allocation and add internal leave removal functionality 2026-01-07 21:58:50 +00:00
Ross e637c5ac60 Increase max_shifts in MaxShiftsPerWeekConstraint from 1 to 2 for improved scheduling flexibility 2026-01-07 20:59:37 +00:00
Ross c71ae4285a Change weekend_shift_target_number type from int to float for improved precision 2026-01-07 20:38:21 +00:00
Ross c248e67304 Refactor site title rendering in RotaBuilder to improve clarity and consistency in timetable display 2026-01-07 20:37:04 +00:00
Ross 628114ad91 Refactor timetable and shifts generation to ensure proper HTML structure with sticky headers 2026-01-07 20:26:18 +00:00
Ross f8c6e38841 Add sticky header styles and improve visibility for timetable display 2026-01-07 20:10:18 +00:00
ross ba268f9b48 Increase default time_to_run in main function from 4 to 8 hours for extended processing duration 2026-01-07 19:49:36 +00:00
ross e7f27a8ee6 Refactor process title handling in RotaBuilder for improved clarity and functionality 2026-01-06 22:15:12 +00:00
ross 1d7202bf04 Add shift filtering and rendering functionality in shifts settings 2026-01-06 17:02:26 +00:00
ross 82868f8c22 Add float support to balarce offset modified 2026-01-06 09:57:29 +00:00
Ross d66ddf29ad Add support for avoiding shifts on specific dates with reasons 2026-01-05 22:07:23 +00:00
Ross e6bdd4a09e Add support for avoiding shifts on specific dates for workers
- Introduced AvoidShiftOnDates model to define constraints for workers.
- Enhanced Worker class to register avoid-shift rules with the rota builder.
- Implemented logic in RotaBuilder to enforce these constraints during shift assignment.
- Added tests to verify functionality for avoiding shifts on single dates and date ranges.
2026-01-05 21:44:34 +00:00
Ross 62e48ef205 Improve date parsing in OOP handling to support additional formats and enhance error reporting. 2026-01-05 20:03:41 +00:00
Ross b98c28401f Enhance error handling in leave loading and update date parsing logic; add new site preference for Exeter shifts. 2026-01-05 20:01:41 +00:00
Ross 94b921192f Refactor gen.py and gen_proc.py to improve shift handling and add constraints; update leave.py to fetch new leave data source. 2026-01-05 17:46:33 +00:00
Ross 23529ba441 add ics export support 2025-12-29 22:22:29 +00:00
Ross fe1414a7bf Merge branch 'master' of git.xkjq.uk:ross/proc-rota 2025-12-19 22:06:00 +00:00
Ross 0f9cd52911 Enhance worker creation modal to include rota-specific choices and shift options, improving user experience and data handling. 2025-12-19 22:03:34 +00:00
Ross cf9e9ee854 Refactor rota detail view for improved layout and usability, including enhanced solver settings and RotaBuilder summary sections, and add import button for workers. 2025-12-19 21:52:31 +00:00
Ross 120dd16845 Enhance rota run detail view with real-time log and result updates, and add "View final output" button 2025-12-19 21:30:28 +00:00
Ross 62010dd09f Add run status polling endpoint and update rota run detail view for real-time status updates 2025-12-19 21:20:08 +00:00
Ross 0cbe968aa5 Refactor rota detail view to include worker and shift lists only once, and update button text for clarity 2025-12-19 21:18:28 +00:00
Ross 5cf2480602 Refactor Assignment model to enforce single rota assignment per worker and update related view logic to prevent multiple assignments 2025-12-19 21:10:43 +00:00
Ross 1bae1246f9 Update rota configuration for February 2026 and refine shift constraints handling 2025-12-18 22:06:31 +00:00
Ross f4ab0be347 Add worker import functionality with CSV upload and text input options 2025-12-17 18:04:53 +00:00
Ross dadf035627 Add solver settings display and configuration options to rota detail view 2025-12-17 17:58:32 +00:00
Ross 023e345591 Add rota-builder summary to detail view with weeks, shifts, and workers count 2025-12-17 17:25:22 +00:00
Ross 8458279e19 Enhance constraint handling with safe accessors to avoid Pydantic errors and improve compatibility with legacy data structures 2025-12-17 17:16:19 +00:00
Ross 4230e2af6a Filter out non-constraint keys in rota detail view for improved data presentation 2025-12-17 16:32:22 +00:00
Ross e2c3eecc63 Enhance constraint display in rota detail view with default value indication and improved layout 2025-12-17 16:28:57 +00:00
Ross 105b37feae Add worker overview and leave management features with modals for enhanced usability 2025-12-17 16:26:11 +00:00
Ross 86201ec1d7 Enhance focus handling in modals to improve user experience by scrolling to and focusing on relevant fields 2025-12-17 16:11:37 +00:00
Ross c59a03fa31 Add worker-specific constraint snippets with hover details in worker list 2025-12-17 16:06:48 +00:00
Ross 3fd0e1ed99 Refactor worker form modal to enhance layout and improve button labeling for better usability 2025-12-17 16:03:06 +00:00
Ross b6f5288eed Enhance normalization function to handle sets and improve recursion for Pydantic models 2025-12-17 15:58:47 +00:00