diff --git a/apps/ops/src/components/shared/TaskNode.vue b/apps/ops/src/components/shared/TaskNode.vue index 6d3e720..daadc14 100644 --- a/apps/ops/src/components/shared/TaskNode.vue +++ b/apps/ops/src/components/shared/TaskNode.vue @@ -351,9 +351,9 @@ function confirmDelete () { }) } -// ── Navigate to dispatch ── +// ── Navigate to planification (ex-Dispatch, page retirée) ── function goToDispatch () { - router.push('/dispatch') + router.push('/planification') } // ── Visual computed ── diff --git a/apps/ops/src/config/nav.js b/apps/ops/src/config/nav.js index b5fc160..ecd31e5 100644 --- a/apps/ops/src/config/nav.js +++ b/apps/ops/src/config/nav.js @@ -17,8 +17,7 @@ export const navItems = [ { path: '/tickets', icon: 'Ticket', label: 'Tickets', requires: 'view_all_tickets', section: 'service' }, { path: '/evaluations', icon: 'Star', label: 'Évaluations', requires: 'view_clients', section: 'service' }, { path: '/pipeline', icon: 'Filter', label: 'Pipeline (ventes)', requires: 'view_clients', section: 'service' }, - // ── Terrain (effectifs / interventions) ── - { path: '/dispatch', icon: 'Truck', label: 'Dispatch', requires: 'view_all_jobs', section: 'terrain' }, + // ── Terrain (effectifs / interventions) — page Dispatch retirée, tout est sur Planification ── { path: '/planification', icon: 'CalendarRange', label: 'Planification', requires: 'view_all_jobs', section: 'terrain' }, { path: '/rdv', icon: 'CalendarClock', label: 'Rendez-vous', requires: 'view_all_jobs', section: 'terrain' }, { path: '/copilote', icon: 'Sparkles', label: 'Copilote', requires: 'view_all_jobs', section: 'terrain' }, diff --git a/apps/ops/src/pages/DashboardPage.vue b/apps/ops/src/pages/DashboardPage.vue index 6729f59..8ad5732 100644 --- a/apps/ops/src/pages/DashboardPage.vue +++ b/apps/ops/src/pages/DashboardPage.vue @@ -141,7 +141,7 @@ - + diff --git a/apps/ops/src/pages/DispatchPage.vue b/apps/ops/src/pages/DispatchPage.vue deleted file mode 100644 index 07d5c2e..0000000 --- a/apps/ops/src/pages/DispatchPage.vue +++ /dev/null @@ -1,2179 +0,0 @@ - - - - - diff --git a/apps/ops/src/pages/PlanificationPage.vue b/apps/ops/src/pages/PlanificationPage.vue index f7f68f2..4b775a1 100644 --- a/apps/ops/src/pages/PlanificationPage.vue +++ b/apps/ops/src/pages/PlanificationPage.vue @@ -16,7 +16,6 @@ Générer (auto) Congés / absences - Tableau Dispatch Notifier par SMS Créer un job @@ -105,7 +104,6 @@ Synchroniser les techniciens Durées par caractéristique Jobs à assigner (glisser-déposer) - Tableau Dispatch (détails & priorités) Congés / absences @@ -3225,7 +3223,7 @@ function gotoDispatch (t, dateIso) { const q = {} if (t) q.tech = t.id q.date = dateIso || (timelineDays.value[0] && timelineDays.value[0].iso) || start.value - router.push({ path: '/dispatch', query: q }) + router.push({ path: '/planification', query: q }) // page Dispatch retirée → reste sur Planification } // ── Éditeur de JOURNÉE (fenêtre contextuelle ciblée — clic sur le progressbar) ── // Garde le contexte de la grille derrière. Timeline + réordonnancement DRAG-DROP + retrait d'un job. diff --git a/apps/ops/src/router/index.js b/apps/ops/src/router/index.js index af53bba..f36d5bb 100644 --- a/apps/ops/src/router/index.js +++ b/apps/ops/src/router/index.js @@ -47,7 +47,7 @@ const routes = [ { path: 'theme', component: () => import('src/pages/ThemePage.vue') }, { path: 'facturation/approbations', component: () => import('src/pages/BillingApprovalsPage.vue') }, { path: 'telephony', component: () => import('src/pages/TelephonyPage.vue') }, - { path: 'dispatch', component: () => import('src/pages/DispatchPage.vue') }, + { path: 'dispatch', redirect: '/planification' }, // page Dispatch retirée → redirige (anciens signets) { path: 'historique', component: () => import('src/pages/HistoriquePage.vue') }, { path: 'evaluations', component: () => import('src/pages/EvaluationsPage.vue') }, { path: 'planification', component: () => import('src/pages/PlanificationPage.vue') },