Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard,docs): follow-ups from the docs and dashboard review
Yudhi Armyndharisccbbb2d042ac
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2084641a4..28d0534ad 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Fixed+- docs/06's audit section scopes the always-null columns correctly (`userAgent`/`statusCode` always null; `method`/`path` populated on auth-failure, key-lifecycle and queue-board rows), the Chats quote box renders identically under system-dark and explicit dark, and the Logs empty state gives server-filter guidance when only the severity filter is active (13 locales).- All five SDKs expose `deleteProfilePicture` (the contract's `DELETE /profile/picture` shipped in none of them), and the SDK coverage gate now checks verbs on multi-verb paths, not just path reachability.- The typed SDKs' message-list records declare `chatName`, `author`, `mediaPath` and `mediaMimetype` (the wire carried all four; every typed client missed them), and the contract-shape gate now maps `MessageRecord` in all four SDKs, including the Python functional-TypedDict form.- The dashboard's manual WebSocket retry re-registers the message handler on the fresh socket; the handler effect only re-ran on events changes, so a reconnect left the new socket silent while reporting connected.diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.jsonindex 9d8ea3184..43491d162 100644--- a/dashboard/src/i18n/locales/ar.json+++ b/dashboard/src/i18n/locales/ar.json@@ -583,7 +583,8 @@"title": "لا توجد سجلات","description": "ستظهر سجلات التدقيق هنا عند تنفيذ الإجراءات","filteredTitle": "لا نتائج مطابقة في هذه الصفحة",- "filteredDescription": "يبحث حقل البحث في الصفحة الحالية فقط. امسحه أو تنقّل بين الصفحات أو استخدم مرشح الخطورة للتصفية من الخادم."+ "filteredDescription": "يبحث حقل البحث في الصفحة الحالية فقط. امسحه أو تنقّل بين الصفحات أو استخدم مرشح الخطورة للتصفية من الخادم.",+ "filteredServerDescription": "لا سجلات تطابق هذه المرشحات. عدّل مرشح الخطورة لتوسيع البحث."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/de.json b/dashboard/src/i18n/locales/de.jsonindex f10d3bfbf..175579ff3 100644--- a/dashboard/src/i18n/locales/de.json+++ b/dashboard/src/i18n/locales/de.json@@ -568,7 +568,8 @@"title": "Keine Protokolle gefunden","description": "Audit-Protokolle werden hier angezeigt, sobald Aktionen ausgeführt werden","filteredTitle": "Keine Treffer auf dieser Seite",- "filteredDescription": "Die Suche filtert nur die aktuelle Seite. Leere sie, blättere weiter oder grenze serverseitig über den Severity-Filter ein."+ "filteredDescription": "Die Suche filtert nur die aktuelle Seite. Leere sie, blättere weiter oder grenze serverseitig über den Severity-Filter ein.",+ "filteredServerDescription": "Keine Protokolle passen auf diese Filter. Passe den Severity-Filter an, um die Suche zu erweitern."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.jsonindex 35e19b4f7..9eab3b7f7 100644--- a/dashboard/src/i18n/locales/en.json+++ b/dashboard/src/i18n/locales/en.json@@ -568,7 +568,8 @@"title": "No logs found","description": "Audit logs will appear here as actions are performed","filteredTitle": "No matches on this page",- "filteredDescription": "The search filters the current page only. Clear it, page through, or use the severity filter to narrow server-side."+ "filteredDescription": "The search filters the current page only. Clear it, page through, or use the severity filter to narrow server-side.",+ "filteredServerDescription": "No logs match these filters. Adjust the severity filter to widen the search."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/es.json b/dashboard/src/i18n/locales/es.jsonindex dc84a909c..71eff4c86 100644--- a/dashboard/src/i18n/locales/es.json+++ b/dashboard/src/i18n/locales/es.json@@ -523,7 +523,8 @@"title": "No se encontraron registros","description": "Los registros de auditoría aparecerán aquí cuando se realicen acciones","filteredTitle": "Sin coincidencias en esta página",- "filteredDescription": "La búsqueda filtra solo la página actual. Bórrala, navega entre páginas o usa el filtro de severidad para acotar en el servidor."+ "filteredDescription": "La búsqueda filtra solo la página actual. Bórrala, navega entre páginas o usa el filtro de severidad para acotar en el servidor.",+ "filteredServerDescription": "Ningún registro coincide con estos filtros. Ajusta el filtro de severidad para ampliar la búsqueda."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/fr.json b/dashboard/src/i18n/locales/fr.jsonindex cc69efc4b..df2abd571 100644--- a/dashboard/src/i18n/locales/fr.json+++ b/dashboard/src/i18n/locales/fr.json@@ -568,7 +568,8 @@"title": "Aucun journal trouvé","description": "Les journaux d'audit apparaîtront ici au fur et à mesure des actions","filteredTitle": "Aucune correspondance sur cette page",- "filteredDescription": "La recherche ne filtre que la page actuelle. Effacez-la, naviguez entre les pages ou utilisez le filtre de sévérité côté serveur."+ "filteredDescription": "La recherche ne filtre que la page actuelle. Effacez-la, naviguez entre les pages ou utilisez le filtre de gravité côté serveur.",+ "filteredServerDescription": "Aucun journal ne correspond à ces filtres. Ajustez le filtre de gravité pour élargir la recherche."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.jsonindex 6999ecb7e..4d3a761e5 100644--- a/dashboard/src/i18n/locales/he.json+++ b/dashboard/src/i18n/locales/he.json@@ -577,7 +577,8 @@"title": "לא נמצאו לוגים","description": "הלוגים יופיעו כאן ככל שיבוצעו פעולות","filteredTitle": "אין התאמות בעמוד זה",- "filteredDescription": "החיפוש מסנן את העמוד הנוכחי בלבד. נקו אותו, דפדפו בין העמודים או השתמשו במסנן החומרה בצד השרת."+ "filteredDescription": "החיפוש מסנן את העמוד הנוכחי בלבד. נקו אותו, דפדפו בין העמודים או השתמשו במסנן החומרה בצד השרת.",+ "filteredServerDescription": "אין יומנים התואמים למסננים אלה. התאימו את מסנן החומרה כדי להרחיב את החיפוש."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/it.json b/dashboard/src/i18n/locales/it.jsonindex a20f965a9..171fa641a 100644--- a/dashboard/src/i18n/locales/it.json+++ b/dashboard/src/i18n/locales/it.json@@ -568,7 +568,8 @@"title": "Nessun log trovato","description": "I log di audit appariranno qui man mano che verranno eseguite le azioni","filteredTitle": "Nessuna corrispondenza in questa pagina",- "filteredDescription": "La ricerca filtra solo la pagina corrente. Cancellala, sfoglia le pagine o usa il filtro severità lato server."+ "filteredDescription": "La ricerca filtra solo la pagina corrente. Cancellala, sfoglia le pagine o usa il filtro severità lato server.",+ "filteredServerDescription": "Nessun log corrisponde a questi filtri. Modifica il filtro severità per ampliare la ricerca."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/ko.json b/dashboard/src/i18n/locales/ko.jsonindex 3b347d29c..2bd28e479 100644--- a/dashboard/src/i18n/locales/ko.json+++ b/dashboard/src/i18n/locales/ko.json@@ -568,7 +568,8 @@"title": "로그가 없습니다","description": "작업이 수행되면 감사 로그가 여기에 표시됩니다","filteredTitle": "이 페이지에 일치하는 항목이 없습니다",- "filteredDescription": "검색은 현재 페이지만 필터링합니다. 지우거나 페이지를 이동하거나 서버 측 심각도 필터를 사용하세요."+ "filteredDescription": "검색은 현재 페이지만 필터링합니다. 지우거나 페이지를 이동하거나 서버 측 심각도 필터를 사용하세요.",+ "filteredServerDescription": "이 필터에 일치하는 로그가 없습니다. 검색 범위를 넓히려면 심각도 필터를 조정하세요."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/pt-BR.json b/dashboard/src/i18n/locales/pt-BR.jsonindex baff7e419..1714678dd 100644--- a/dashboard/src/i18n/locales/pt-BR.json+++ b/dashboard/src/i18n/locales/pt-BR.json@@ -523,7 +523,8 @@"title": "Nenhum registro encontrado","description": "Os registros de auditoria aparecerão aqui quando ações forem realizadas","filteredTitle": "Nenhuma correspondência nesta página",- "filteredDescription": "A busca filtra apenas a página atual. Limpe-a, navegue pelas páginas ou use o filtro de severidade no servidor."+ "filteredDescription": "A busca filtra apenas a página atual. Limpe-a, navegue pelas páginas ou use o filtro de severidade no servidor.",+ "filteredServerDescription": "Nenhum log corresponde a estes filtros. Ajuste o filtro de severidade para ampliar a busca."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.jsonindex 173a2e968..9fa3b31eb 100644--- a/dashboard/src/i18n/locales/te.json+++ b/dashboard/src/i18n/locales/te.json@@ -568,7 +568,8 @@"title": "ఎలాంటి లాగ్లు కనుగొనబడలేదు","description": "చర్యలు జరిగినప్పుడు ఆడిట్ లాగ్లు ఇక్కడ కనిపిస్తాయి","filteredTitle": "ఈ పేజీలో సరిపోలినవి లేవు",- "filteredDescription": "శోధన ప్రస్తుత పేజీని మాత్రమే ఫిల్టర్ చేస్తుంది. దాన్ని క్లియర్ చేయండి, పేజీలను బ్రౌజ్ చేయండి లేదా సర్వర్ వైపు తీవ్రత ఫిల్టర్ను ఉపయోగించండి."+ "filteredDescription": "శోధన ప్రస్తుత పేజీని మాత్రమే ఫిల్టర్ చేస్తుంది. దాన్ని క్లియర్ చేయండి, పేజీల మధ్య మారండి లేదా సర్వర్ వైపు తీవ్రత ఫిల్టర్ను ఉపయోగించండి.",+ "filteredServerDescription": "ఈ ఫిల్టర్లకు సరిపోయే లాగ్లు లేవు. వెతుకులను విస్తరించడానికి తీవ్రత ఫిల్టర్ను సర్దుబాటు చేయండి."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/tr.json b/dashboard/src/i18n/locales/tr.jsonindex 12ad900db..ecf5ec613 100644--- a/dashboard/src/i18n/locales/tr.json+++ b/dashboard/src/i18n/locales/tr.json@@ -568,7 +568,8 @@"title": "Kayıt bulunamadı","description": "İşlemler gerçekleştirildikçe denetim kayıtları burada görünecektir","filteredTitle": "Bu sayfada eşleşme yok",- "filteredDescription": "Arama yalnızca geçerli sayfayı filtreler. Temizleyin, sayfalar arasında gezinin veya sunucu tarafında önem filtresini kullanın."+ "filteredDescription": "Arama yalnızca geçerli sayfayı filtreler. Temizleyin, sayfalar arasında gezinin veya sunucu tarafında önem filtresini kullanın.",+ "filteredServerDescription": "Bu filtrelerle eşleşen log yok. Aramayı genişletmek için önem filtresini ayarlayın."}},"messageTester": {diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.jsonindex 081b74f93..fa392943b 100644--- a/dashboard/src/i18n/locales/zh-CN.json+++ b/dashboard/src/i18n/locales/zh-CN.json@@ -568,7 +568,8 @@"title": "未找到日志","description": "执行操作后,审计日志将显示在这里","filteredTitle": "本页无匹配项",- "filteredDescription": "搜索仅过滤当前页。请清除搜索、翻页,或使用严重级别筛选在服务端收窄。"+ "filteredDescription": "搜索仅过滤当前页。请清除搜索、翻页,或使用严重级别筛选在服务端收窄。",+ "filteredServerDescription": "没有符合这些筛选条件的日志。请调整严重级别筛选以扩大搜索范围。"}},"messageTester": {diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.jsonindex 3a71f1c0d..ccefd5b3c 100644--- a/dashboard/src/i18n/locales/zh-HK.json+++ b/dashboard/src/i18n/locales/zh-HK.json@@ -568,7 +568,8 @@"title": "找不到記錄","description": "執行操作後,審計記錄會顯示在這裡","filteredTitle": "本頁無符合項目",- "filteredDescription": "搜尋只會過濾目前頁面。請清除搜尋、翻頁,或使用嚴重程度篩選在伺服器端收窄。"+ "filteredDescription": "搜尋只會過濾目前頁面。請清除搜尋、翻頁,或使用嚴重程度篩選在伺服器端收窄。",+ "filteredServerDescription": "沒有符合這些篩選條件的日誌。請調整嚴重程度篩選以擴大搜尋範圍。"}},"messageTester": {diff --git a/dashboard/src/pages/Chats.css b/dashboard/src/pages/Chats.cssindex 11ea86f82..d8d7b84b0 100644--- a/dashboard/src/pages/Chats.css+++ b/dashboard/src/pages/Chats.css@@ -1143,6 +1143,11 @@[data-theme='dark'] .chats-page .message-quote-box {background: rgba(255, 255, 255, 0.08);}+/* Outgoing-bubble quote boxes: the plain dark rule loses the specificity tie with the light+ outgoing rule below, so both dark modes apply the same treatment explicitly. */+[data-theme='dark'] .chats-page .message-bubble.outgoing .message-quote-box {+ background: rgba(255, 255, 255, 0.08);+}@media (prefers-color-scheme: dark) {:root:not([data-theme='light']) .chats-page .message-quote-box {diff --git a/dashboard/src/pages/Logs.tsx b/dashboard/src/pages/Logs.tsxindex 8f019837c..750ed40a8 100644--- a/dashboard/src/pages/Logs.tsx+++ b/dashboard/src/pages/Logs.tsx@@ -37,7 +37,10 @@ export function Logs() {// Distinguish "filters matched nothing on this page" from "there are no logs at all": the search// box only filters the fetched page (the API has no text search), so a non-match here must not// read as "no such event exists" while more pages may hold it.- const hasActiveFilter = searchQuery.trim() !== '' || severityFilter !== 'all';+ const hasSearch = searchQuery.trim() !== '';+ // Severity is enforced SERVER-SIDE (the query carries it): an empty result there means no logs+ // match at all, which deserves different guidance than the page-local search box.+ const hasSeverityFilter = severityFilter !== 'all';const formatTimestamp = (date: string) => new Date(date).toLocaleString();@@ -182,10 +185,14 @@ export function Logs() {{filteredLogs.length === 0 ? (<div className="empty-table-state"><FileText size={48} strokeWidth={1} />- {hasActiveFilter ? (+ {hasSeverityFilter || hasSearch ? (<><h3>{t('logs.empty.filteredTitle')}</h3>- <p>{t('logs.empty.filteredDescription')}</p>+ <p>+ {hasSeverityFilter && !hasSearch+ ? t('logs.empty.filteredServerDescription')+ : t('logs.empty.filteredDescription')}+ </p></>) : (<>diff --git a/docs/06-api-specification.md b/docs/06-api-specification.mdindex 558b4d922..ecfe20643 100644--- a/docs/06-api-specification.md+++ b/docs/06-api-specification.md@@ -5040,7 +5040,7 @@ Notes: raw return of an in-memory `Settings` object built once in the controller#### GET /api/audit-List audit-log entries, newest first. API-key lifecycle changes, session lifecycle events and ADMIN infra operations land here. **Message and webhook events deliberately do not**: message sends and webhook deliveries are tracked in their own tables (`messages`, `webhook_delivery_failures`), so filtering for `message_sent`, `message_failed`, `webhook_created`, `webhook_deleted`, `webhook_triggered` or `webhook_failed` returns zero rows by design.+List audit-log entries, newest first. API-key lifecycle changes, session lifecycle events and ADMIN infra operations land here. **The six actions below are never emitted**: message sends and webhook deliveries are tracked in their own tables (`messages`, `webhook_delivery_failures`) — `webhook_created`/`webhook_deleted` are simply not wired yet — so filtering for `message_sent`, `message_failed`, `webhook_created`, `webhook_deleted`, `webhook_triggered` or `webhook_failed` returns zero rows by design.**Auth:** API key (ADMIN) · **Scope:** rows are confined to the calling key's `allowedSessions` — the `sessionId` query may only narrow within that list, never widen it@@ -5082,7 +5082,7 @@ List audit-log entries, newest first. API-key lifecycle changes, session lifecyc}```-Unlike the other list routes this one is **not** a bare array: `data` is the page and `total` the unpaginated match count. Nullable columns (`apiKeyId`, `sessionId`, `metadata`, `errorMessage`, …) are `null` when the event has no such dimension. `userAgent`, `method`, `path` and `statusCode` are reserved columns: the request-actor context does not populate them today, so rows carry `null` (the sample above shows a `session_started` row as it is actually written).+Unlike the other list routes this one is **not** a bare array: `data` is the page and `total` the unpaginated match count. Nullable columns (`apiKeyId`, `sessionId`, `metadata`, `errorMessage`, …) are `null` when the event has no such dimension. `userAgent` and `statusCode` are reserved columns nothing populates, so rows carry `null`. `method` and `path` are populated only where an emitter passes them explicitly (API-key auth failures, key lifecycle changes, queue-board mutations); session/message-flow rows like the sample leave them `null`.**Errors:** `401` missing/invalid API key · `403` key role below ADMIN