From 4f7ea28b75d30231312e44959063b8a14df180bd Mon Sep 17 00:00:00 2001 From: Stream Date: Wed, 6 May 2026 22:50:01 +0300 Subject: [PATCH] auto-sync: 2026-05-06 22:50:01 --- installer/registry.jsonl | 2 ++ tasks/enduro-trails/prototype/static/app.css | 9 ++++---- tasks/enduro-trails/prototype/static/app.js | 23 +++++++++++++++++++ .../enduro-trails/prototype/static/index.html | 2 ++ 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/installer/registry.jsonl b/installer/registry.jsonl index 583316f..27eeee6 100644 --- a/installer/registry.jsonl +++ b/installer/registry.jsonl @@ -23,3 +23,5 @@ {"ts":"2026-05-04T09:24:59Z","action":"cleanup","deleted_orphaned_sessions":0,"deleted_logs":0,"retention_days":30} {"ts":"2026-05-06T08:05:10Z","action":"cleanup","deleted_orphaned_sessions":0,"deleted_logs":0,"retention_days":30} {"ts":"2026-05-06T08:09:32Z","session":"20260506-080710_mva154_enduro-route-mini-onboarding_5c7e","host":"mva154","status":"success","agent":"dev","files":["/home/slin/enduro-trails/prototype/static/app.js","/home/slin/enduro-trails/prototype/static/app.css","/home/slin/enduro-trails/prototype/static/index.html"]} +{"ts":"2026-05-06T19:43:25Z","action":"cleanup","deleted_orphaned_sessions":0,"deleted_logs":0,"retention_days":30} +{"ts":"2026-05-06T19:49:29Z","session":"20260506-194401_mva154_enduro-minibar-ux_db5d","host":"mva154","status":"success","agent":"dev","files":["/home/slin/enduro-trails/prototype/static/app.js","/home/slin/enduro-trails/prototype/static/app.css","/home/slin/enduro-trails/prototype/static/index.html"]} diff --git a/tasks/enduro-trails/prototype/static/app.css b/tasks/enduro-trails/prototype/static/app.css index da98e3a..b09e447 100644 --- a/tasks/enduro-trails/prototype/static/app.css +++ b/tasks/enduro-trails/prototype/static/app.css @@ -707,21 +707,22 @@ body.has-map-mode #sheet-backdrop.visible { pointer-events: none; } .mini-route-text { flex: 1; min-width: 0; } .mini-route-label { font-size: 13px; font-weight: 700; color: var(--text); } .mini-route-stats { font-size: 11px; color: var(--text2); } -.mini-route-arrows { display: flex; gap: 4px; flex-shrink: 0; } +.mini-route-arrows { display: flex; gap: 6px; flex-shrink: 0; margin-left: 8px; } .mini-arrow { - width: 28px; height: 28px; + width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); - border-radius: 8px; font-size: 18px; color: var(--text2); + border-radius: 10px; font-size: 22px; color: var(--text2); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } .mini-arrow:active { background: var(--accent); color: #fff; border-color: var(--accent); } .mini-add-btn { - width: 32px; height: 32px; + width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--accent); border: none; border-radius: 10px; color: #fff; cursor: pointer; flex-shrink: 0; + margin-left: 4px; -webkit-tap-highlight-color: transparent; } .mini-add-btn:active { opacity: 0.8; transform: scale(0.94); } diff --git a/tasks/enduro-trails/prototype/static/app.js b/tasks/enduro-trails/prototype/static/app.js index d021fca..46ea91e 100644 --- a/tasks/enduro-trails/prototype/static/app.js +++ b/tasks/enduro-trails/prototype/static/app.js @@ -494,6 +494,10 @@ function _showMiniOnboardWaypoint() { // Search button const searchBtn = document.getElementById('mini-onboard-search-btn'); searchBtn.onclick = () => toggleMiniOnboardSearch('waypoint'); + + // Показать кнопку отмены + const cancelBtn = document.getElementById('mini-onboard-cancel-btn'); + if (cancelBtn) { cancelBtn.style.display = ''; cancelBtn.onclick = cancelAddWaypoint; } } // ─── Маркеры точек ───────────────────────────────────────────────── @@ -2359,7 +2363,24 @@ function miniAddWaypoint() { if (statsEl) statsEl.textContent = 'Тапни на карте для добавления точки'; } +function cancelAddWaypoint() { + addingWaypoint = false; + window._map.getCanvas().style.cursor = routeMode ? 'crosshair' : ''; + hideMiniOnboard(); + // Вернуть обычный мини-бар если маршрут уже построен + if (routeResults.length > 0) { + showMiniRouteSheet(); + } else if (routeWaypoints.length > 0) { + showRouteOnboardingMini(); + } else { + hideMiniRouteSheet(); + } +} + function showRouteOnboardingMini() { + const cancelBtn = document.getElementById('mini-onboard-cancel-btn'); + if (cancelBtn) cancelBtn.style.display = 'none'; + if (routeWaypoints.length >= 2) { hideMiniOnboard(); showMiniRouteSheet(); @@ -2398,6 +2419,8 @@ function showRouteOnboardingMini() { function hideMiniOnboard() { document.getElementById('mini-onboard').style.display = 'none'; document.getElementById('mini-onboard-search-panel').style.display = 'none'; + const cancelBtn = document.getElementById('mini-onboard-cancel-btn'); + if (cancelBtn) cancelBtn.style.display = 'none'; // Restore normal mini-bar elements document.getElementById('mini-dot').style.display = ''; document.getElementById('mini-label').style.display = ''; diff --git a/tasks/enduro-trails/prototype/static/index.html b/tasks/enduro-trails/prototype/static/index.html index 279887e..b96248c 100644 --- a/tasks/enduro-trails/prototype/static/index.html +++ b/tasks/enduro-trails/prototype/static/index.html @@ -238,6 +238,8 @@ + +