diff --git a/main.py b/main.py index 6f83956..8d31be1 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-04f" +APP_VERSION = "2026-12-04g" # Audit: path → action name mapping _AUDIT_MAP = [ diff --git a/static/changelog.json b/static/changelog.json index 6b56031..5f384a0 100644 --- a/static/changelog.json +++ b/static/changelog.json @@ -1,4 +1,11 @@ [ + { + "version": "2026-12-04g", + "date": "2026-12-04", + "changes": [ + "Каталог норм получил таблицу с пятью колонками и два треугольника у каждой нормы: состав работ и ресурсы раскрываются отдельными строками" + ] + }, { "version": "2026-12-04f", "date": "2026-12-04", @@ -26,13 +33,5 @@ "changes": [ "Таблица ресурсов в подборе норм теперь прокручивается внутри карточки и не растягивает страницу телефона" ] - }, - { - "version": "2026-12-04b", - "date": "2026-12-04", - "changes": [ - "Подбор норм открыт без входа: поиск по работе и шифру, варианты таблиц и сравнение состава", - "Несколько норм можно сохранить в подборку и пересчитать по зоне и кварталу; неполные цены отмечаются отдельно" - ] } ] diff --git a/static/norm-finder.html b/static/norm-finder.html index a4dc4a7..27c62bf 100644 --- a/static/norm-finder.html +++ b/static/norm-finder.html @@ -77,23 +77,37 @@ .tree-list { list-style:none; margin:0; padding:0 0 0 12px; border-left:1px solid var(--line); } .tree-list button { width:100%; text-align:left; border:0; border-radius:5px; background:transparent; padding:6px; color:var(--text); font-size:.84rem; line-height:1.3; } + .tree-arrow { display:inline-block; width:17px; color:#526569; } + .tree-root-toggle { width:100%; border:0; background:#e8f0f3; text-align:left; + padding:7px; font-size:.85rem; font-weight:650; } .tree-list button:hover,.tree-list button[aria-current="true"] { background:#e9f4f1; color:var(--accent); } .table-panel { min-width:0; } .table-panel h2 { margin:0; } .table-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; } .norm-scroll { max-width:100%; overflow-x:auto; } - .norm-table { min-width:680px; } - .norm-table th { background:#f6f7f4; position:sticky; top:0; z-index:1; } - .norm-table .norm-row:hover { background:#f8faf8; } - .norm-table .norm-row button { min-height:32px; } - .norm-table .norm-name { min-width:240px; } - .norm-table .inline-cell { padding:0; background:#f8faf8; } - .inline-content { padding:16px; border-left:3px solid var(--accent); } - .inline-content .detail-grid { grid-template-columns:minmax(0,1fr); } - .inline-content .panel { border:0; padding:12px 0; background:transparent; } - .inline-content #quote-panel { border-top:1px solid var(--line); } - .inline-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; } - .inline-actions .secondary { min-height:32px; } + .norm-table { min-width:720px; table-layout:fixed; font-size:.78rem; line-height:1.28; } + .norm-table th,.norm-table td { border:1px solid #d9e0e2; padding:4px 6px; vertical-align:middle; } + .norm-table th { background:#eef2f4; position:sticky; top:0; z-index:1; } + .norm-table .norm-row:hover { background:#f2f7f7; } + .norm-table .norm-row td,.norm-table .norm-resource-row td, + .norm-table .norm-work-row td { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } + .norm-table .norm-family-row { background:#e8f0f3; font-weight:650; } + .norm-table .norm-family-row td { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } + .norm-table .norm-section-heading { background:#f7fafb; } + .norm-table .norm-section-heading td:nth-child(2) { text-decoration:underline; } + .norm-table .norm-work-row,.norm-table .norm-resource-row { background:#fbfcfc; } + .norm-table .norm-name { min-width:0; } + .norm-code-cell { white-space:nowrap; } + .norm-toggle { display:inline-grid; place-items:center; width:19px; height:19px; + padding:0; margin-right:2px; border:1px solid #89999b; border-radius:2px; + background:#fff; color:#526569; font-size:.84rem; line-height:1; vertical-align:middle; } + .norm-toggle:hover,.norm-toggle[aria-expanded="true"] { background:#dcebed; color:#164e57; } + .norm-code { margin-left:5px; font-variant-numeric:tabular-nums; } + .norm-tools-row td { background:#f7fafb; } + .norm-tools { display:flex; gap:6px; align-items:center; flex-wrap:wrap; } + .norm-tools .secondary { min-height:26px; padding:2px 8px; font-size:.75rem; } + .norm-tools .variant-list { width:100%; } + .table-mobile-hint { display:none; } .breadcrumb { color:var(--muted); font-size:.84rem; overflow-wrap:anywhere; } .catalog-mobile { display:none; } [hidden] { display:none !important; } @@ -104,25 +118,8 @@ .catalog-mobile { display:block; margin-bottom:10px; } .catalog-tree { position:static; max-height:45vh; margin-bottom:12px; } .catalog-tree[hidden] { display:none !important; } - .norm-scroll { overflow:visible; } - .norm-table,.norm-table > tbody,.norm-table > tbody > .norm-detail-row, - .norm-table > tbody > .norm-detail-row > td { display:block; min-width:0; width:100%; } - .norm-table thead { display:none; } - .norm-table .norm-row { display:grid; grid-template-columns:minmax(0,1fr) auto; - gap:5px 12px; padding:13px 0; border-top:1px solid var(--line); } - .norm-table .norm-row td { border:0; padding:0; min-width:0; } - .norm-table .norm-row td:nth-child(1) { grid-column:1 / -1; } - .norm-table .norm-row td:nth-child(2) { grid-column:1 / -1; overflow-wrap:anywhere; } - .norm-table .norm-row td:nth-child(3) { grid-column:1; } - .norm-table .norm-row td:nth-child(4) { grid-column:2; } - .norm-table .norm-row td:nth-child(5) { grid-column:1 / -1; } - .norm-table .norm-row .inline-actions { gap:6px; } - .norm-table .norm-row .inline-actions button { flex:1 1 auto; } - .inline-content { padding:12px 10px; } - .inline-content #detail-title { font-size:1.05rem; overflow-wrap:anywhere; } - .inline-content .scroll { overflow-x:auto; } - .inline-content .scroll table { min-width:560px; } - .inline-content .detail-grid { display:block; } + .table-mobile-hint { display:block; } + .norm-table { min-width:760px; } } @@ -150,7 +147,8 @@ Нормы сборника - ШифрНаименованиеЕд. изм.Базисная стоимостьДействия + Таблица прокручивается по горизонтали. + ШифрНаименованиеЕд. изм.РасходПЗ, руб. Показать ещё нормы @@ -181,6 +179,6 @@ Сравнение норм - +
Таблица прокручивается по горизонтали.