From 9f717d720e217afd4cc87a4fbf851050d466d8cd Mon Sep 17 00:00:00 2001 From: Mikhail Date: Fri, 21 Aug 2026 19:16:32 +0300 Subject: [PATCH] feat: show chat version and update time --- cmd/creator-web/chat_test.go | 2 +- cmd/creator-web/static/assets/chat.css | 4 ++++ cmd/creator-web/static/chat.html | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/creator-web/chat_test.go b/cmd/creator-web/chat_test.go index 736ae89..0216595 100644 --- a/cmd/creator-web/chat_test.go +++ b/cmd/creator-web/chat_test.go @@ -25,7 +25,7 @@ func TestChatPageServedWithoutInternalIDs(t *testing.T) { t.Fatalf("expected /chat status 200, got %d", recorder.Code) } body := recorder.Body.String() - for _, required := range []string{"cognitive-status", "aria-live=\"polite\"", "cognitive-console-link", "href=\"/admin\"", "Проверь канал", "Изменить настройку", "ai-data-error", "Не вставляйте пароли"} { + for _, required := range []string{"cognitive-status", "aria-live=\"polite\"", "cognitive-console-link", "href=\"/admin\"", "Проверь канал", "Изменить настройку", "ai-data-error", "Не вставляйте пароли", "версия 1.0.0", "обновлено 21.08.2026", "datetime=\"2026-08-21\""} { if !strings.Contains(body, required) { t.Fatalf("/chat is missing human status marker %q", required) } diff --git a/cmd/creator-web/static/assets/chat.css b/cmd/creator-web/static/assets/chat.css index e4b040a..3fc0dfe 100644 --- a/cmd/creator-web/static/assets/chat.css +++ b/cmd/creator-web/static/assets/chat.css @@ -42,6 +42,8 @@ textarea { resize: vertical; min-height: 84px; max-height: 240px; padding: 14px; .cognitive-status[data-state="unavailable"] { color: var(--bad); } .cognitive-status[data-state="unavailable"]::before { background: var(--bad); } .cognitive-console-link { color: var(--signal); font: 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; } +.build-meta { display: grid; gap: 3px; flex: 0 0 auto; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: .08em; text-align: right; text-transform: uppercase; white-space: nowrap; } +.build-meta time { color: #68776d; font-size: 8px; } .chat-header button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; } .human-nav { display: grid; gap: 8px; } .nav-tab, .operator-link { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); color: var(--muted); background: #0b110e; text-decoration: none; font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; } @@ -106,6 +108,8 @@ textarea { resize: vertical; min-height: 84px; max-height: 240px; padding: 14px; .conversation-starters span { width: 100%; } .chat-header { gap: 10px; padding: 0 12px; } .chat-header .cognitive-status { display: inline-flex; max-width: 150px; overflow: hidden; text-overflow: ellipsis; } + .build-meta { font-size: 8px; letter-spacing: .04em; } + .build-meta time { font-size: 7px; } .chat-layout { height: auto; display: block; } .chat-side, .chat-main { min-height: auto; max-height: none; overflow: visible; } .chat-left, .chat-right { border: 0; border-bottom: 1px solid var(--line); } diff --git a/cmd/creator-web/static/chat.html b/cmd/creator-web/static/chat.html index af74482..7f380fa 100644 --- a/cmd/creator-web/static/chat.html +++ b/cmd/creator-web/static/chat.html @@ -28,6 +28,10 @@ Домовой +
+ версия 1.0.0 + +
Консоль -- 2.54.0