feat: admin-панель для просмотра сессий пользователей

- /admin — таблица всех сессий (время, юзер, кол-во сообщений, последний вопрос)
- Кнопка «Открыть» → /?tab=UUID — переход в чат пользователя
- /?tab=UUID — поддержка прямых ссылок на сессии

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-26 17:45:39 +10:00
co-authored by Claude Opus 4.6
parent a976588356
commit dc444376c8
3 changed files with 74 additions and 1 deletions
+3 -1
View File
@@ -160,7 +160,9 @@ let token = localStorage.getItem('token');
let pendingFiles = [];
let streaming = false;
// Each tab gets its own session — allows multiple windows
let tabId = sessionStorage.getItem('tabId') || crypto.randomUUID();
// Support ?tab=UUID to open specific session
const urlTab = new URLSearchParams(window.location.search).get('tab');
let tabId = urlTab || sessionStorage.getItem('tabId') || crypto.randomUUID();
sessionStorage.setItem('tabId', tabId);
// --- Init ---