v1.7.1: fix all P1-P4, C1-C6, H1-H6, M1-M7, L1-L3 from error.md — async migrations, CSS variables, SQL validation, event loop, prompt injection, VCF parsing, race conditions, unused imports, gitignore

This commit is contained in:
2026-05-29 03:46:41 +03:00
parent 72b6879f4b
commit 54af5892d5
21 changed files with 406 additions and 156 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog — AegisOne Service Portal
## 1.7.1 (29.05.2026)
### Исправления
- **P2 (CSS):** bot_consent, bot_tickets, bot_kb, bot_settings — var(--light-bg)→var(--bg-card), хардкод цвета→CSS-переменные
- **M7 (bot_test.html):** тема наследуется через CSS-переменные + скрипт инициализации
- **C3 (Email typo):** contact proxy — user.email вместо user.phone
## 1.7.0 (29.05.2026)
### Новые функции
- **Прокси-роуты для бота:** /api/bot/webhook с пробросом X-Max-Bot-Api-Secret
@@ -3,10 +3,10 @@
<style>
.consent-table { width:100%; border-collapse:collapse; }
.consent-table th, .consent-table td { padding:10px 14px; text-align:left; border-bottom:1px solid var(--border); font-size:13px; }
.consent-table th { font-weight:600; color:var(--text-muted); background:var(--light-bg); }
.consent-table th { font-weight:600; color:var(--text-muted); background:var(--bg-card); }
.consent-table td { vertical-align:middle; }
.consent-yes { color:#155724; font-weight:600; }
.consent-no { color:#721c24; font-weight:600; }
.consent-yes { color:var(--success, #155724); font-weight:600; }
.consent-no { color:var(--danger, #721c24); font-weight:600; }
.filter-bar { display:flex; gap:12px; margin-bottom:16px; align-items:center; flex-wrap:wrap; }
.filter-bar input, .filter-bar select { padding:8px 12px; border:1px solid var(--border); border-radius:6px; font-size:13px; }
.broadcast-card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:20px; margin-top:16px; }
+3 -3
View File
@@ -3,11 +3,11 @@
<style>
.kb-table { width:100%; border-collapse:collapse; }
.kb-table th, .kb-table td { padding:10px 14px; text-align:left; border-bottom:1px solid var(--border); font-size:13px; }
.kb-table th { font-weight:600; color:var(--text-muted); background:var(--light-bg); }
.kb-table th { font-weight:600; color:var(--text-muted); background:var(--bg-card); }
.kb-table td { vertical-align:top; }
.kb-table .active-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; }
.kb-table .active-badge.yes { background:#d4edda; color:#155724; }
.kb-table .active-badge.no { background:#f8d7da; color:#721c24; }
.kb-table .active-badge.yes { background:var(--success-bg, #d4edda); color:var(--success, #155724); }
.kb-table .active-badge.no { background:var(--danger-bg, #f8d7da); color:var(--danger, #721c24); }
.kb-modal { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4);
z-index:1000; align-items:center; justify-content:center; }
.kb-modal.open { display:flex; }
@@ -16,7 +16,7 @@
transition:border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,150,200,0.1);
outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.form-group textarea { min-height:100px; resize:vertical; }
.form-actions { grid-column:1/-1; display:flex; gap:12px; margin-top:8px; }
+19 -15
View File
@@ -3,26 +3,30 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/css/service-theme.css">
<style>
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter','Segoe UI',sans-serif; background:#1B2838; color:#E8EDF2; font-size:13px; height:100vh; display:flex; flex-direction:column; }
body { font-family:'Inter','Segoe UI',sans-serif; background:var(--bg-page, #1B2838); color:var(--text-primary, #E8EDF2); font-size:13px; height:100vh; display:flex; flex-direction:column; }
.test-container { display:flex; flex:1; gap:12px; padding:12px; overflow:hidden; }
.test-chat { flex:1; border:1px solid #253248; border-radius:10px; display:flex; flex-direction:column; overflow:hidden; }
.test-chat-header { background:#0A1628; padding:10px 14px; font-weight:600; border-bottom:1px solid #253248; font-size:12px; }
.test-chat { flex:1; border:1px solid var(--border, #253248); border-radius:10px; display:flex; flex-direction:column; overflow:hidden; }
.test-chat-header { background:var(--bg-card, #0A1628); padding:10px 14px; font-weight:600; border-bottom:1px solid var(--border, #253248); font-size:12px; }
.test-chat-messages { flex:1; overflow-y:auto; padding:10px 14px; }
.test-chat-input { display:flex; border-top:1px solid #253248; }
.test-chat-input input { flex:1; border:none; padding:10px 14px; font-size:13px; outline:none; background:#1B2838; color:#E8EDF2; }
.test-chat-input button { padding:10px 16px; border:none; background:#00ADEF; color:#fff; cursor:pointer; font-weight:600; }
.test-log { width:300px; border:1px solid #253248; border-radius:10px; padding:10px; overflow-y:auto; font-family:monospace; font-size:11px; line-height:1.5; background:#0A1628; }
.test-log .log-entry { margin-bottom:4px; padding:3px 0; border-bottom:1px solid #1e3044; }
.test-log .log-entry .time { color:#6B8299; }
.test-log .log-entry .event { color:#00ADEF; font-weight:600; }
.msg-bot { background:#1e3044; padding:7px 12px; border-radius:8px 8px 8px 0; margin-bottom:6px; max-width:85%; }
.msg-user { background:#00ADEF; color:#fff; padding:7px 12px; border-radius:8px 8px 0 8px; margin-bottom:6px; max-width:85%; margin-left:auto; }
.test-scenarios { display:flex; gap:6px; padding:8px 12px; flex-wrap:wrap; border-bottom:1px solid #253248; }
.test-scenarios button { font-size:11px; padding:4px 10px; background:#253248; color:#E8EDF2; border:1px solid #3a4a60; border-radius:4px; cursor:pointer; }
.test-scenarios button:hover { background:#00ADEF; color:#fff; }
.test-chat-input { display:flex; border-top:1px solid var(--border, #253248); }
.test-chat-input input { flex:1; border:none; padding:10px 14px; font-size:13px; outline:none; background:var(--bg-page, #1B2838); color:var(--text-primary, #E8EDF2); }
.test-chat-input button { padding:10px 16px; border:none; background:var(--accent, #00ADEF); color:#fff; cursor:pointer; font-weight:600; }
.test-log { width:300px; border:1px solid var(--border, #253248); border-radius:10px; padding:10px; overflow-y:auto; font-family:monospace; font-size:11px; line-height:1.5; background:var(--bg-card, #0A1628); }
.test-log .log-entry { margin-bottom:4px; padding:3px 0; border-bottom:1px solid var(--border, #1e3044); }
.test-log .log-entry .time { color:var(--text-muted, #6B8299); }
.test-log .log-entry .event { color:var(--accent, #00ADEF); font-weight:600; }
.msg-bot { background:var(--bg-input, #1e3044); padding:7px 12px; border-radius:8px 8px 8px 0; margin-bottom:6px; max-width:85%; }
.msg-user { background:var(--accent, #00ADEF); color:#fff; padding:7px 12px; border-radius:8px 8px 0 8px; margin-bottom:6px; max-width:85%; margin-left:auto; }
.test-scenarios { display:flex; gap:6px; padding:8px 12px; flex-wrap:wrap; border-bottom:1px solid var(--border, #253248); }
.test-scenarios button { font-size:11px; padding:4px 10px; background:var(--bg-input, #253248); color:var(--text-primary, #E8EDF2); border:1px solid var(--border, #3a4a60); border-radius:4px; cursor:pointer; }
.test-scenarios button:hover { background:var(--accent, #00ADEF); color:#fff; }
</style>
<script>
(function(){var t=localStorage.getItem('theme')||'dark';document.documentElement.setAttribute('data-theme',t);})();
</script>
</head>
<body>
<div class="test-scenarios">
@@ -3,12 +3,12 @@
<style>
.tickets-table { width:100%; border-collapse:collapse; }
.tickets-table th, .tickets-table td { padding:10px 14px; text-align:left; border-bottom:1px solid var(--border); font-size:13px; }
.tickets-table th { font-weight:600; color:var(--text-muted); background:var(--light-bg); }
.tickets-table th { font-weight:600; color:var(--text-muted); background:var(--bg-card); }
.tickets-table td { vertical-align:middle; }
.status-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:12px; font-weight:600; }
.status-nova { background:#cce5ff; color:#004085; }
.status-v-rabote { background:#fff3cd; color:#856404; }
.status-zakryta { background:#d4edda; color:#155724; }
.status-nova { background:var(--info-bg, #cce5ff); color:var(--info, #004085); }
.status-v-rabote { background:var(--warning-bg, #fff3cd); color:var(--warning, #856404); }
.status-zakryta { background:var(--success-bg, #d4edda); color:var(--success, #155724); }
.status-select { padding:4px 8px; border-radius:6px; border:1px solid var(--border); font-size:12px; }
.ticket-detail-card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:20px; margin-top:16px; display:none; }
.ticket-detail-card.open { display:block; }
+1 -1
View File
@@ -1 +1 @@
1.7.0
1.7.1