diff --git a/main.py b/main.py index a205636..2e3fcfe 100644 --- a/main.py +++ b/main.py @@ -545,7 +545,7 @@ MAX_MESSAGE_LEN = 10_000 # ⚠️ Версия UI — единый источник. БАМПАТЬ ПРИ КАЖДОМ ДЕПЛОЕ (формат: YYYY-MM-DD + буква). # Фронт берёт её через GET /api/version (chat.html + admin.html, элемент .app-version). -APP_VERSION = "2026-11-21l" +APP_VERSION = "2026-11-21m" # Audit: path → action name mapping _AUDIT_MAP = [ @@ -3584,18 +3584,18 @@ async def reviews_report(review_id: int, request: Request): f"attachment; filename*=UTF-8''{quote(filename)}"}) -@app.get("/review", response_class=HTMLResponse) +@app.get("/review") async def review_list_page(): - from pathlib import Path as _P - return HTMLResponse(_P("static/review-list.html").read_text(encoding="utf-8"), - headers={"Cache-Control": "no-store"}) + """Заглушка проверяющего закрыта (Хозяин, 21.11.2026): пустая страница без действий. + Рабочее место будет переделано в браузере; до тех пор — назад в чат, а не ошибка.""" + from fastapi.responses import RedirectResponse + return RedirectResponse(url="/", status_code=302) -@app.get("/review/{review_id}", response_class=HTMLResponse) +@app.get("/review/{review_id}") async def review_page(review_id: int): - from pathlib import Path as _P - return HTMLResponse(_P("static/review.html").read_text(encoding="utf-8"), - headers={"Cache-Control": "no-store"}) + from fastapi.responses import RedirectResponse + return RedirectResponse(url="/", status_code=302) @app.get("/api/admin/normative-status") diff --git a/static/changelog.json b/static/changelog.json index f70bf47..81411c1 100644 --- a/static/changelog.json +++ b/static/changelog.json @@ -1,4 +1,11 @@ [ + { + "version": "2026-11-21m", + "date": "2026-11-21", + "changes": [ + "Страница «Проверки замечаний» убрана до переделки: вход из чата снят, старый адрес возвращает в чат" + ] + }, { "version": "2026-11-21l", "date": "2026-11-21", @@ -26,13 +33,5 @@ "changes": [ "Кнопка-остаток в шапке стала зелёной — сразу видно, сколько осталось" ] - }, - { - "version": "2026-11-21g", - "date": "2026-11-21", - "changes": [ - "Кнопка «Внести» в карточке клиента стала зелёной — денежное действие заметнее", - "Подсказка у остатка в пробном доступе говорит про вопросы, а не про сутки" - ] } ] diff --git a/static/chat.html b/static/chat.html index d42b64a..3f5a45d 100644 --- a/static/chat.html +++ b/static/chat.html @@ -4,11 +4,11 @@ Сметный ИИ-ассистент @@ -711,12 +711,6 @@ html { color-scheme: light; } --> - - - -