Commit graph

124 commits

Author SHA1 Message Date
31d6951f42 fix(calendar): define isMemberHistoryAllowed in renderTeamsDailyGrid 2026-10-12 13:04:35 +02:00
ee73aa3912 feat(interventions): afficher et sélectionner les bornes ITS et caméras sur la carte
- Ajout de l'endpoint GeoJSON pour les traverses, plots de bornes et caméras ITS
- Affichage des lignes, points et étiquettes de code avec halo sur la carte d'ajout
- Activation/désactivation dynamique selon la catégorie de bornes rétractables
- Sélection directe de l'asset au clic sur la carte avec conservation des coordonnées cliquées
- Ajout des tests unitaires automatisés pour l'endpoint GeoJSON
2026-10-12 11:53:58 +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
499ffe824e refactor: redesign calendar notes and documents view with chronological sequencing blocks 2026-10-07 10:45:37 +02:00
2ef730508f feat(calendar): intégrer les notes et documents dans la modale d'intervention 2026-10-07 10:26:08 +02:00
512f6786e3 refactor: move team daily view helper functions and state variables to file scope 2026-10-05 09:56:25 +02:00
93f3a49983 fix(calendar): fix canEditThisTeam and isPastDay ReferenceError in renderTeamsDailyGrid 2026-10-05 09:48:53 +02:00
6ee0aa470b feat(calendar): enable drag and drop for team members in daily view
- Render team members as individual draggable chips in daily teams calendar view
- Decouple click (modal inspection) from drag and drop (team/date reassignment)
- Add multi-team conflict confirmation modal on drop
- Maintain permission checks and past date protection
2026-10-05 09:42:10 +02:00
3920648000 fix(interventions): assign controller only when intervention status changes to finished 2026-10-01 09:53:06 +02:00
8df84704dc fix(interventions): resolve UnboundLocalError contracts_qs for external managers 2026-10-01 09:29:54 +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
3d9e7c3202 feat(interventions): add combined filter for manager, controller and inspector with shortnames and teams 2026-09-30 18:49:19 +02:00
dc6638c4a5 feat: add daily intervention visibility restrictions and mobile filters for technicians with tests 2026-09-30 09:47:45 +02:00
79154085ee fix(teams): record automatic leave date on team reassignment and reconcile history 2026-09-30 09:24:09 +02:00
8b13236a26 fix(interventions,mobile): allow multi-thematic visibility for contractor teams and prevent persistent search query 2026-09-28 21:01:59 +02:00
de73de7328 feat(interventions,stock): sync preparation orders and material status on intervention cancellation
- Fix preparation status calculation by ignoring cancelled orders, preventing false green 'stock ready' icon
- Update item prepared state when preparation order is marked as processed
- Automatically cancel unprepared preparation orders when intervention is canceled
- Send alert notification to stock managers when canceled intervention has already prepared orders
- Add alert banner with direct restock/cancellation action on preparation order detail views
- Prevent editing material switches or creating orders for canceled interventions
- Add and compile translations for FR, EN and NL
- Add comprehensive automated unit tests
2026-09-28 20:01:39 +02:00
c00212f79e fix(interventions): translate modal status and apply assigned color on interventions list and map 2026-09-28 16:26:44 +02:00
37c1016b57 feat(interventions): distinguer les interventions 'à traiter' déjà assignées en rose (#d81b60)
- Ajout de la couleur 'to_be_processed_assigned' (#d81b60) dans STATUS_COLORS (Python & JS).
- Ajout de la propriété is_assigned sur le modèle Intervention.
- Prise en compte de la couleur dans les vues calendrier (membres, timeline, backlog, équipes) et sur la carte MapLibre du modal calendrier.
- Enrichissement des popups carte et des badges du backlog avec l'équipe/membre assigné.
- Ajout de tests unitaires validant la couleur et la sérialisation is_assigned.
2026-09-28 14:45:17 +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
f4460a5323 feat: add edit note functionality and UI action buttons 2026-09-25 23:36:04 +02:00
205a05cb5b feat(interventions): aligner les permissions des notes par statut et historiser le mobile
- Autoriser les modifications/suppressions de notes jusqu'au statut 'traité' pour les externes
- Autoriser les modifications/suppressions de notes jusqu'au statut 'validé' pour les internes
- Supprimer la contrainte horaire de 1h sur la modification des notes
- Brancher l'historisation de la chronologie sur la création et modification de notes mobile
- Tracer l'upload des photos de formulaires mobiles dans la chronologie
- Ajouter les tests unitaires et d'intégration correspondants
2026-09-25 23:20:09 +02:00
7911369740 feat: restrict intervention timeline history and filter controls to internal users 2026-09-25 22:53:32 +02:00
2df4621e5b feat(interventions): afficher les statuts de la chronologie sous forme de cercles numérotés
- Reprend le code visuel du stepper supérieur pour les transitions de statut dans l'historique
- Affiche une boule colorée avec le numéro canonique (1 à 15) et le libellé sous chaque statut
- Aligne la flèche de transition au centre des cercles
- Ajuste les contrastes de texte (noir/blanc) selon la luminosité du statut
2026-09-25 22:35:29 +02:00
fd794737a8 style(interventions): standardize timeline status badge widths and use distinct purple for status event
- Assign fixed 115px width to all status badges for vertical alignment of transitions
- Unify left event badge width to 85px for a clean tabular layout
- Use purple (#6f42c1) for the 'Statut' badge and node icon to avoid visual collision with status colors
- Update timeline unit tests accordingly
2026-09-25 22:24:05 +02:00
f510a086bd feat(interventions): trace notes, documents and element links in full timeline
- Add 'note', 'document', and 'link' event types to InterventionTimeLine
- Record timeline events for note additions/edits/deletions (standalone and batch)
- Record document uploads and deletions (desktop and mobile APIs)
- Record asset linking/unlinking with friendly names and linked interventions
- Display detailed items exclusively in the toggleable "Historique complet" view
- Maintain shortname display for all event authors
- Update and compile FR, EN and NL translation catalogs
- Add comprehensive test coverage for all new timeline event records
2026-09-25 22:05:22 +02:00
79af86fb7f feat(interventions): amélioration de la chronologie et traçabilité complète de l'historique
- Ajout des types d'événements 'assignment' et 'modification' sur InterventionTimeLine
- Enregistrement des attributs modifiés (field_changes JSON) et des descriptions d'événements
- Création du service InterventionChangeTracker pour historiser les changements de champs et d'assignations
- Refonte visuelle de card_chronologie avec vue par défaut (statuts + assignations) et bascule vers l'historique complet
- Préservation des shortnames pour tous les auteurs des modifications
- Ajout des traductions i18n et de tests unitaires dédiés
2026-09-25 21:29:42 +02:00
71cb8369a0 feat(interventions): improve non-applicable button symbology in operations 2026-09-25 16:14:13 +02:00
ce924d7af4 fix(interventions): import Contract and ContractPost in admin to fix OperationTemplate change view 2026-09-25 14:40:38 +02:00
ca8d8187c1 feat: hide standard inspection sections for GIEP-specific inspections 2026-09-25 11:34:04 +02:00
63c888fdbd feat: add territory mapping layers, dashboard widgets, and asset import management commands 2026-09-20 23:01:52 +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
250a2b4f2f feat: add related inspections to intervention detail views and templates 2026-09-18 10:44:58 +02:00
6c80028906 feat: add concerned categories and target asset model to intervention subtypes for dynamic inspection targeting 2026-09-17 17:07:51 +02:00
368a167b9c feat: add support for dynamic intervention subtype filtering and validation 2026-09-17 16:27:33 +02:00
396d26414c refactor: support multiple intervention types in subtypes and update non-compliance notifications for company members 2026-09-17 16:05:36 +02:00
8fc2798c52 feat: add approval exception for urgent contract interventions and update status transition permissions 2026-09-17 14:35:53 +02:00
Karl Determe
676e781943 feat: add inspections application and update interventions module with new models, views, and migrations 2026-09-17 08:55:47 +02:00
Karl Determe
836b5c8edb feat: add custom notification recipient fields and helpers to Symptom model 2026-09-15 16:10:31 +02:00
5ebcc1e3c9 i18n: remove obsolete PREGO translations and update PMO terms in locale files 2026-09-14 15:43:45 +02:00
660c40f0f7 feat: improve intervention visibility rules to correctly handle active and replanned interventions 2026-09-14 11:33:24 +02:00
9522eed8f8 style: improve typography and contrast for member names in calendar UI 2026-09-14 10:19:44 +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
2c207fcfbb fix(calendar): stack member history modal on top of team daily modal 2026-09-11 14:15:59 +02:00
41898f211f fix(calendar): reactive update of daily team members in calendar grid 2026-09-11 14:06:09 +02:00
fdc315788f fix(calendar): fix team daily members URL generation to avoid duplicate members path 2026-09-11 13:45:42 +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