auto-sync: 2026-05-06 22:50:01

This commit is contained in:
Stream
2026-05-06 22:50:01 +03:00
parent bfa2f26599
commit 4f7ea28b75
4 changed files with 32 additions and 4 deletions

View File

@@ -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"]}

View File

@@ -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); }

View File

@@ -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 = '';

View File

@@ -238,6 +238,8 @@
<button id="mini-onboard-search-btn" style="background:none;border:none;padding:4px 8px;cursor:pointer;color:var(--text2);">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>
</button>
<!-- Кнопка отмены — показывается только в режиме добавления точки -->
<button id="mini-onboard-cancel-btn" style="display:none;background:none;border:none;padding:4px 8px;cursor:pointer;color:var(--text3);font-size:20px;line-height:1;" onclick="cancelAddWaypoint()" title="Отмена"></button>
</div>
<!-- Inline search panel for onboarding -->
<div id="mini-onboard-search-panel" style="display:none; position:absolute; bottom:100%; left:0; right:0; background:var(--surface); border:1px solid var(--border); border-radius:8px 8px 0 0; padding:8px; z-index:300;">