From e4fd99ff3579e8da7419b6c5ae024a9d479e056c Mon Sep 17 00:00:00 2001 From: anor Date: Fri, 4 Dec 2026 05:13:32 +1000 Subject: [PATCH] Expose norm finder in chat header --- main.py | 2 +- static/changelog.json | 7 +++++++ static/chat.html | 8 +++++--- tests/test_inline_estimate_ui.py | 11 +++++++++++ 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 87442fe..c1114f8 100644 --- a/main.py +++ b/main.py @@ -555,7 +555,7 @@ MAX_MESSAGE_LEN = 10_000 # ⚠️ Версия UI — единый источник. БАМПАТЬ ПРИ КАЖДОМ ДЕПЛОЕ (формат: YYYY-MM-DD + буква). # Фронт берёт её через GET /api/version (chat.html + admin.html, элемент .app-version). -APP_VERSION = "2026-12-02e" +APP_VERSION = "2026-12-04a" # Audit: path → action name mapping _AUDIT_MAP = [ diff --git a/static/changelog.json b/static/changelog.json index 2ef3651..7a6470d 100644 --- a/static/changelog.json +++ b/static/changelog.json @@ -1,4 +1,11 @@ [ + { + "version": "2026-12-04a", + "date": "2026-12-04", + "changes": [ + "Подбор норм теперь доступен отдельной кнопкой в шапке чата" + ] + }, { "version": "2026-12-02e", "date": "2026-12-02", diff --git a/static/chat.html b/static/chat.html index cb3e82d..89f7bf0 100644 --- a/static/chat.html +++ b/static/chat.html @@ -244,8 +244,9 @@ button { font-family: inherit; } #header { background: var(--bg-card); padding: .6rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); } #header h1 { font-size: 1rem; font-weight: 650; color: var(--text); letter-spacing: -.012em; } .header-actions { display: flex; gap: .4rem; } -.header-actions button { padding: .38rem .8rem; background: transparent; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: .78rem; color: var(--text-muted); font-weight: 500; transition: all .15s; } -.header-actions button:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); } +.header-actions button, .header-actions .header-link { padding: .38rem .8rem; background: transparent; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: .78rem; color: var(--text-muted); font-weight: 500; transition: all .15s; } +.header-actions .header-link { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; } +.header-actions button:hover, .header-actions .header-link:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); } .header-actions button:active { transform: translateY(1px); } /* Аккаунт — крайняя правая кнопка: кружок с инициалом и почтой, по нажатию меню с полным адресом и «Выйти». Логин кнопкой среди действий — не дизайн (Хозяин, 21.11.2026). */ @@ -521,7 +522,7 @@ button { font-family: inherit; } /* Телефон: значки — первой строкой, кнопки — всегда второй, с прокруткой вбок. */ #header > div:first-child { flex: 1 1 100%; } .header-actions { flex: 1 1 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: .3rem; padding: 3px 2px; scroll-padding-inline: 3px; } - .header-actions button { white-space: nowrap; flex: 0 0 auto; } + .header-actions button, .header-actions .header-link { white-space: nowrap; flex: 0 0 auto; } #messages { padding-left: .7rem; padding-right: .7rem; } .msg { max-width: 92%; } .onboarding { margin: 1.2rem auto; padding: 1rem; } @@ -803,6 +804,7 @@ html { color-scheme: light; }
+ Подбор норм