From b90db4673ae02887927ad3a1ec34525466a73092 Mon Sep 17 00:00:00 2001 From: louispaulb Date: Tue, 24 Mar 2026 14:22:19 -0400 Subject: [PATCH] Fix: restore techCtx and openTechCtx lost during map extraction These were accidentally deleted when removing ~576 lines of inline map code. Caused ReferenceError preventing the app from loading data. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/pages/DispatchV2Page.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/DispatchV2Page.vue b/src/pages/DispatchV2Page.vue index b9c5f24..14c07ea 100644 --- a/src/pages/DispatchV2Page.vue +++ b/src/pages/DispatchV2Page.vue @@ -1110,6 +1110,13 @@ async function autoDistribute () { invalidateRoutes() } +// ─── Tech context menu (was deleted during map extraction) ──────────────────── +const techCtx = ref(null) +function openTechCtx (e, tech) { + e.preventDefault(); e.stopPropagation() + techCtx.value = { x: Math.min(e.clientX, window.innerWidth - 220), y: Math.min(e.clientY, window.innerHeight - 120), tech } +} + // ─── Optimize route for a single tech ───────────────────────────────────────── async function optimizeRoute () { if (!techCtx.value) return