- Embeddable vanilla-JS chat widget (one script tag + tenant public key):
WebSocket, resumable sessions (24h localStorage token), honeypot + per-IP
and per-message rate limits, Bosnian UI (§7)
- Session auth (bcrypt + signed cookies), owner accounts + super-admins,
admin impersonation ('otvori kao salon', §11)
- Owner dashboard (§10, Bosnian): requests with same actions as email,
call/chat history with transcripts, usage bar; settings for profile,
working hours (manual + LLM paste-to-parse), services CRUD + 'Zalijepi
cjenovnik' LLM import with review step, scheduling (Google OAuth free/busy
read-only + calendar mappings + buffers, partner status), telephony
(forwarding MMI codes per operator, ring group, worker SIP creds + QR),
agent voice/price-mode/notes + widget snippet, notifications/SMS templates
- Super-admin panel (§11): tenant CRUD incl. plan/minutes/paid-until,
partner API config (encrypted secrets), number/SIM registry + assignment,
connectivity test (live availability + dry-run push), versioned prompt
template editor with publish/rollback, playground, usage overview, health
- Fixes: WAL + busy_timeout for sqlite tests, no awaits in WS disconnect
path (deadlock), template publish autoflush bug
- 76 tests green (incl. widget WS e2e booking flow); dashboard, widget and
admin verified live in a browser against Postgres
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Sistem — Gogo Admin{% endblock %}
|
|
{% block nav %}{% include "admin/_nav.html" %}{% endblock %}
|
|
{% block content %}
|
|
<h1>Zdravlje sistema (§11)</h1>
|
|
<div class="grid2">
|
|
<div class="card">
|
|
<h2>Servisi</h2>
|
|
<table>
|
|
<tr><td>Baza podataka</td><td><span class="badge {{ 'confirmed' if db_ok else 'rejected' }}">{{ 'OK' if db_ok else 'GREŠKA' }}</span></td></tr>
|
|
<tr><td>LLM API ključ</td><td><span class="badge {{ 'confirmed' if llm_configured else 'pending' }}">{{ 'postavljen' if llm_configured else 'nije postavljen' }}</span></td></tr>
|
|
<tr><td>Email (SMTP)</td><td><span class="badge {{ 'confirmed' if email_mode=='smtp' else 'pending' }}">{{ email_mode }}</span></td></tr>
|
|
<tr><td>SMS provajder</td><td><span class="badge {{ 'confirmed' if sms_mode=='gsm_gateway' else 'pending' }}">{{ sms_mode }}</span></td></tr>
|
|
<tr><td>Voice pipeline</td><td><span class="badge {{ voice_badge }}">{{ voice_status }}</span></td></tr>
|
|
</table>
|
|
</div>
|
|
<div class="card">
|
|
<h2>Greške u slanju (zadnjih 7 dana)</h2>
|
|
<table>
|
|
<tr><td>Email greške</td><td>{{ email_errors }}</td></tr>
|
|
<tr><td>SMS greške</td><td>{{ sms_errors }}</td></tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% if failed_rows %}
|
|
<div class="card">
|
|
<h2>Zadnje greške</h2>
|
|
<table>
|
|
<tr><th>Vrijeme</th><th>Tip</th><th>Prima</th><th>Greška</th></tr>
|
|
{% for f in failed_rows %}
|
|
<tr><td class="muted">{{ f.at.strftime('%d.%m. %H:%M') }}</td><td>{{ f.kind }}</td>
|
|
<td>{{ f.to }}</td><td class="muted">{{ f.error[:120] }}</td></tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|