From 67395cd35ef672aa77575fc0dbbf2e57c25fe24b Mon Sep 17 00:00:00 2001 From: louispaulb Date: Sat, 6 Jun 2026 10:19:03 -0400 Subject: [PATCH] =?UTF-8?q?feat(dispatch):=20pastille=20couleur=20par=20ty?= =?UTF-8?q?pe=20+=20badge=20=C2=AB=20en=20retard=20=C2=BB=20dans=20le=20po?= =?UTF-8?q?ol=20&=20le=20d=C3=A9tail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BottomPanel : pastille couleur (jobColor → type legacy) par ligne + badge ⏰ EN RETARD sur les groupes de date passée (le pool est déjà groupé/trié par date) - RightPanel : badge « en retard » près de la date planifiée (hors Completed) Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/ops/src/modules/dispatch/components/BottomPanel.vue | 5 +++++ apps/ops/src/modules/dispatch/components/RightPanel.vue | 3 +++ 2 files changed, 8 insertions(+) diff --git a/apps/ops/src/modules/dispatch/components/BottomPanel.vue b/apps/ops/src/modules/dispatch/components/BottomPanel.vue index 0bc9b42..be39412 100644 --- a/apps/ops/src/modules/dispatch/components/BottomPanel.vue +++ b/apps/ops/src/modules/dispatch/components/BottomPanel.vue @@ -25,6 +25,9 @@ const jobColor = inject('jobColor') const btColW = inject('btColW') const startColResize = inject('startColResize') +// Aujourd'hui (fuseau Québec) → un groupe de date PASSÉE = tickets « en retard » (à traiter/fermer). +const todayISO = new Date().toLocaleDateString('en-CA', { timeZone: 'America/Toronto' }) + // ── Lasso selection ─────────────────────────────────────────────────────────── const btLasso = ref(null) const btScrollRef = ref(null) @@ -142,6 +145,7 @@ function btLassoEnd () {
{{ group.label }} {{ group.jobs.length }} + ⏰ EN RETARD
@@ -159,6 +163,7 @@ function btLassoEnd () { diff --git a/apps/ops/src/modules/dispatch/components/RightPanel.vue b/apps/ops/src/modules/dispatch/components/RightPanel.vue index 6ec5141..39cb116 100644 --- a/apps/ops/src/modules/dispatch/components/RightPanel.vue +++ b/apps/ops/src/modules/dispatch/components/RightPanel.vue @@ -16,6 +16,7 @@ const emit = defineEmits([ const store = inject('store') const TECH_COLORS = inject('TECH_COLORS') const jobColor = inject('jobColor') +const todayISO = new Date().toLocaleDateString('en-CA', { timeZone: 'America/Toronto' }) // pour le badge « en retard » const getTagColor = inject('getTagColor') const onCreateTag = inject('onCreateTag') const onUpdateTag = inject('onUpdateTag') @@ -72,6 +73,8 @@ const onDeleteTag = inject('onDeleteTag')
Date planifiée {{ panel.data?.job?.scheduledDate || '—' }} → {{ panel.data.job.endDate }} + ⏰ en retard
Date de fin
+ {{ job.subject }} {{ shortAddr(job.address) || '—' }}