- 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>
20 lines
1.1 KiB
HTML
20 lines
1.1 KiB
HTML
<header>
|
|
<div class="logo">Gogo <span>Telefon</span></div>
|
|
<nav>
|
|
<a href="/dash" class="{{ 'active' if active=='requests' }}">Zahtjevi</a>
|
|
<a href="/dash/calls" class="{{ 'active' if active=='calls' }}">Pozivi</a>
|
|
<a href="/dash/chats" class="{{ 'active' if active=='chats' }}">Chat</a>
|
|
<a href="/dash/usage" class="{{ 'active' if active=='usage' }}">Potrošnja</a>
|
|
<a href="/dash/settings" class="{{ 'active' if active=='settings' }}">Salon</a>
|
|
<a href="/dash/services" class="{{ 'active' if active=='services' }}">Usluge</a>
|
|
<a href="/dash/scheduling" class="{{ 'active' if active=='scheduling' }}">Kalendar</a>
|
|
<a href="/dash/telephony" class="{{ 'active' if active=='telephony' }}">Telefonija</a>
|
|
<a href="/dash/agent" class="{{ 'active' if active=='agent' }}">Asistent</a>
|
|
<a href="/dash/notifications" class="{{ 'active' if active=='notifications' }}">Obavještenja</a>
|
|
</nav>
|
|
<div class="right">
|
|
{{ owner.tenant.name }}{% if owner.impersonated_by %} <b>(admin pregled)</b>{% endif %}
|
|
· <a href="/logout">Odjava</a>
|
|
</div>
|
|
</header>
|