From 6782959253b92a75b45d16de5e91c915cdc521fb Mon Sep 17 00:00:00 2001 From: kdeterme Date: Wed, 30 Sep 2026 18:55:56 +0200 Subject: [PATCH] feat(home): filter controller shortcuts link by assigned controller and remove sub-counters - Remove 'to_be_corrected' and 'validated' sub-counters from controller shortcuts widget - Include assigned_controller parameter in widget URL using the new role-person filter - Update ControllerShortcutsWidgetTests to assert URL parameter and absence of sub-counters --- .../home/widgets/controller_shortcuts.html | 18 ++------- loko/home/tests.py | 6 ++- loko/home/views.py | 37 ++++++++++--------- 3 files changed, 28 insertions(+), 33 deletions(-) diff --git a/loko/home/templates/home/widgets/controller_shortcuts.html b/loko/home/templates/home/widgets/controller_shortcuts.html index 7f4c537..aa49f67 100644 --- a/loko/home/templates/home/widgets/controller_shortcuts.html +++ b/loko/home/templates/home/widgets/controller_shortcuts.html @@ -3,7 +3,7 @@ {# ========== Widget raccourcis pour les contrôleurs ========== #}
- {# --- Compteur principal et sous-raccourcis --- #} + {# --- Compteur principal --- #} {# --- Liste des 5 premières interventions --- #} @@ -64,7 +54,7 @@