Commit graph

50 commits

Author SHA1 Message Date
a6378eee90 feat(contracts): add column sorting by code and dates to contracts list 2026-10-10 14:47:28 +02:00
0732f89274 perf(contracts): optimize queries, add server-side pagination, search, thematic/contract filters and redesign UI 2026-10-10 14:39:40 +02:00
875efc67f4 feat(home): add user_history widget for viewers and adjust quick action shortcuts 2026-10-07 15:54:57 +02:00
51e6680763 fix(interventions,contracts): enforce can_view_intervention on detail views and allow contract posts access for global viewers 2026-10-07 14:15:53 +02:00
b307791b90 feat(contracts): add global permissions to view contract posts and prices on UserConfig
- Add can_view_all_posts and can_view_all_prices boolean fields to UserConfig
- Add migration 0020 with automatic data migration for Legal Office users
- Update permissions helpers, UserConfigAdmin, copy_user_config and intervention detail view
- Add unit tests for global posts and prices permissions
2026-10-07 11:57:57 +02:00
8807531eb3 feat(contracts): add contractual lot perimeters overlay on nature assets map 2026-10-05 14:35:31 +02:00
f81ca93590 feat: add geographic polygon and color fields to Contract model and admin 2026-10-05 14:19:07 +02:00
927c049d02 git add loko/contracts/ loko/interventions/
git commit -m "feat(interventions): configure team maintain types for control auto-assignment and remove structures limitation"
2026-09-30 19:20:59 +02:00
41679d82e9 perf(contracts): optimize ContractAdmin queries on add and change views
- Avoid loading all database ContractPost instances when adding a new contract
- Use select_related('contract') on ContractPost to prevent N+1 queries in __str__
- Only include ContractOperationTemplatePostInline on saved contracts
- Add prefetch_related('teams') for CompanyMember in pause reason assignments
- Optimize ContractAdmin changelist queryset with select_related and prefetch_related
2026-09-30 19:04:39 +02:00
b86d805cb5 feat(contracts,home): include finished status in controller shortcuts and display assigned controller in order interventions
- Add 'finished' status to controller shortcuts widget filter and links
- Add conditional 'Contrôleur assigné' column in order interventions table for contracts with auto_assign_control_team
- Optimize order interventions query with select_related for controllers
- Update and compile translations (fr, nl, en)
- Add unit tests for order detail controller display and widget status inclusion
2026-09-30 18:17:30 +02:00
79154085ee fix(teams): record automatic leave date on team reassignment and reconcile history 2026-09-30 09:24:09 +02:00
0bbe267498 feat(contracts): auto-sync team schedule daily and on mobile access
- Register sync_teams_schedule in init_scheduled_tasks (daily at 04:00 local)
- Trigger sync_member_current_teams on mobile intervention list load
- Trigger sync_member_current_teams on user login signal
2026-09-28 14:17:44 +02:00
5e9fced68f feat: add 7j view mode to team planning 2026-09-25 09:27:32 +02:00
40ce03d812 feat: add rolling horizons and aggregated column support to team planning view modes 2026-09-25 09:18:40 +02:00
Karl Determe
096886a194 feat: add Django admin configuration, team services, and test planning for contracts 2026-09-24 11:33:53 +02:00
73738b6757 feat: support multi-commune contracts, base asset categories, and filtered municipality access 2026-09-19 18:33:39 +02:00
6e4a304930 fix(teams): eliminate double scrollbar and white void in planning, highlight week/month scope controls 2026-09-19 14:42:13 +02:00
74c1bf2447 feat: add intervention control team assignment, contract auto-assignment, and controller shortcuts dashboard widget 2026-09-19 14:25:52 +02:00
a0ffebc489 feat: add monthly team planning scopes and operation types to company teams 2026-09-19 12:07:53 +02:00
7ca27197bf feat: add custom admin assets to dynamically toggle approval_except_urgent field visibility 2026-09-17 15:41:57 +02:00
8fc2798c52 feat: add approval exception for urgent contract interventions and update status transition permissions 2026-09-17 14:35:53 +02:00
6d2de3a7c8 feat: add mobile asset views and templates with localization updates 2026-09-13 09:24:55 +02:00
c8e8223ffa fix: prevent future history corruption and handle duplicate entries in company member records 2026-09-12 12:08:23 +02:00
d45feb9f6e feat: implement team daily members AJAX endpoint and add support for managing team composition and member history in calendar views 2026-09-11 13:31:34 +02:00
261ce2dd14 chore: update localization files and templates for stock and intervention modules 2026-09-11 11:37:51 +02:00
79697f392c feat: enable multi-team support for company members via updated history service and synchronization logic 2026-09-09 15:14:25 +02:00
89794fa294 feat: implement can_tag permission for team mentions and restrict search visibility based on access control 2026-09-09 13:47:32 +02:00
0ac214f459 feat: implement automatic duplication from Friday to following Monday in work week view and update associated tests 2026-09-04 11:53:28 +02:00
23936a5767 refactor: restrict is_blocked_due_to_contract flag to specific intervention statuses and sync via model save method 2026-09-04 11:15:15 +02:00
d131fcb0d6 fix: initialize missing member history and handle bidirectional m2m team updates in signals 2026-09-02 17:38:26 +02:00
32053f3635 feat: filter copied absences by allowed team IDs in services_teams.py 2026-09-02 12:28:23 +02:00
fad90d91c9 feat: add team synchronization service, management command, and improve calendar header UI 2026-09-02 12:20:42 +02:00
da7de1ac7d chore: update internationalization translation files and model reference locations 2026-09-02 12:09:55 +02:00
28696e7339 refactor: optimize member history scheduling logic and implement localStorage persistence for team planning UI state 2026-09-02 11:59:12 +02:00
efdafa43de fix: allow direct deletion of future team assignments and remove redundant confirmation dialog 2026-09-02 11:47:21 +02:00
71b445797d fix: restrict future planning visibility to explicit assignments and update team index UI styles. 2026-09-02 11:38:51 +02:00
11c81c8e00 fix(teams-planning): immediate day J assignment, sticky headers, past days greyed out and team distinction 2026-09-02 11:29:29 +02:00
7c8360bfc1 fix(teams): escape quotes and apostrophes in JavaScript translation tags 2026-09-02 11:10:23 +02:00
faafa8ec23 feat: add CompanyMemberAbsence model and integrate absence display into the team planning calendar view 2026-09-02 11:05:16 +02:00
4824415290 feat: introduce contract blocking mechanism to suspend interventions and notifications for external users 2026-09-02 09:44:34 +02:00
1df0c1b8c1 feat: track status changes in InterventionTimeLine when generating contract documents 2026-08-28 16:05:52 +02:00
4599537be3 fix: update template string quoting and regenerate translation files 2026-08-21 12:09:09 +02:00
be04a5e4c0 feat: implement automatic contract post assignment for interventions based on operation templates 2026-08-19 15:19:05 +02:00
e2eb20536d feat: add allow_team_members_edit option to contracts and update permissions to allow intra-team intervention management 2026-08-19 11:55:16 +02:00
f810041e98 feat: add external interventions widget to home dashboard and update localization file references 2026-08-19 09:51:46 +02:00
4024dad7bc chore: update and prune translation files across multiple locales 2026-08-17 12:27:28 +02:00
5878bff447 chore: update and compile application translations 2026-08-17 12:15:13 +02:00
f1f8897ad3 feat: implement mobile controls UI and synchronize application translations 2026-08-17 12:08:52 +02:00
016ce202b4 feat: improve contract selection with descriptions, enhanced visibility filtering, and user access controls 2026-08-17 08:18:25 +02:00
6de48bee77 refactor: rename to loko; implement base template and add static assets for Loko branding 2026-08-16 15:09:01 +02:00