Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): say what the * webhook event leaves out
Yudhi Armyndharis2e8e7a8113ed
diff --git a/dashboard/src/i18n/locales.test.ts b/dashboard/src/i18n/locales.test.tsindex ae63cbe01..5c71b1bc6 100644--- a/dashboard/src/i18n/locales.test.ts+++ b/dashboard/src/i18n/locales.test.ts@@ -269,6 +269,16 @@ test('English backup hint says which credentials the export leaves out and which);});+test("English '*' event description names the one event the wildcard leaves out", () => {+ const all = i18n.t('webhooks.eventDescriptions.all', { lng: 'en' });+ assert.match(+ all,+ /except message\.receipt/,+ `the '*' description does not say it leaves out message.receipt: "${all}"`,+ );+ assert.ok(!/^all events$/i.test(all), `the '*' description claims every event: "${all}"`);+});+test('English start teardown-pending copy is a retryable warning, not an error', () => {const title = i18n.t('sessions.start.teardownPendingTitle', { lng: 'en' });const body = i18n.t('sessions.start.teardownPending', { lng: 'en' });diff --git a/dashboard/src/i18n/locales/de.json b/dashboard/src/i18n/locales/de.jsonindex 689bbb13a..d37111f23 100644--- a/dashboard/src/i18n/locales/de.json+++ b/dashboard/src/i18n/locales/de.json@@ -670,7 +670,7 @@"call.rejected": "Wenn ein Anruf abgelehnt wird","call.missed": "Wenn ein Anruf unbeantwortet bleibt","status.received": "Wenn ein Kontakt einen Status veröffentlicht",- "all": "Alle Ereignisse"+ "all": "Alle Ereignisse außer message.receipt, das ausdrücklich genannt werden muss"},"auth": {"title": "Zustellungsauthentifizierung",diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.jsonindex 31fa8cb49..fcad21321 100644--- a/dashboard/src/i18n/locales/en.json+++ b/dashboard/src/i18n/locales/en.json@@ -670,7 +670,7 @@"call.rejected": "When a call is declined","call.missed": "When a call goes unanswered","status.received": "When a contact posts a status",- "all": "All events"+ "all": "All events except message.receipt, which must be named explicitly"},"auth": {"title": "Delivery authentication",diff --git a/dashboard/src/i18n/locales/es.json b/dashboard/src/i18n/locales/es.jsonindex 49b31b4d2..a8fb63789 100644--- a/dashboard/src/i18n/locales/es.json+++ b/dashboard/src/i18n/locales/es.json@@ -676,7 +676,7 @@"call.rejected": "Cuando se rechaza una llamada","call.missed": "Cuando una llamada no se contesta","status.received": "Cuando un contacto publica un estado",- "all": "Todos los eventos"+ "all": "Todos los eventos excepto message.receipt, que debe indicarse de forma explícita"},"auth": {"title": "Autenticación de entrega",diff --git a/dashboard/src/i18n/locales/fr.json b/dashboard/src/i18n/locales/fr.jsonindex 1779063aa..6bf877b33 100644--- a/dashboard/src/i18n/locales/fr.json+++ b/dashboard/src/i18n/locales/fr.json@@ -676,7 +676,7 @@"call.rejected": "Lorsqu'un appel est refusé","call.missed": "Lorsqu'un appel reste sans réponse","status.received": "Lorsqu'un contact publie un statut",- "all": "Tous les événements"+ "all": "Tous les événements sauf message.receipt, qui doit être indiqué explicitement"},"auth": {"title": "Authentification des livraisons",diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.jsonindex f484eae4f..81ed024eb 100644--- a/dashboard/src/i18n/locales/he.json+++ b/dashboard/src/i18n/locales/he.json@@ -683,7 +683,7 @@"call.rejected": "כאשר שיחה נדחית","call.missed": "כאשר שיחה לא נענית","status.received": "כאשר איש קשר מפרסם סטטוס",- "all": "כל האירועים"+ "all": "כל האירועים מלבד message.receipt, שיש לציין במפורש"},"auth": {"title": "אימות משלוח",diff --git a/dashboard/src/i18n/locales/hi.json b/dashboard/src/i18n/locales/hi.jsonindex 4024ae7a1..f6ea1766d 100644--- a/dashboard/src/i18n/locales/hi.json+++ b/dashboard/src/i18n/locales/hi.json@@ -670,7 +670,7 @@"call.rejected": "जब कोई कॉल अस्वीकार की जाती है","call.missed": "जब कोई कॉल अनुत्तरित हो जाती है","status.received": "जब कोई संपर्क स्टेटस पोस्ट करता है",- "all": "सभी घटनाएँ"+ "all": "सभी घटनाएँ, message.receipt को छोड़कर, जिसे स्पष्ट रूप से चुनना होता है"},"auth": {"title": "डिलीवरी प्रमाणीकरण",diff --git a/dashboard/src/i18n/locales/id.json b/dashboard/src/i18n/locales/id.jsonindex 551bb7036..878960ace 100644--- a/dashboard/src/i18n/locales/id.json+++ b/dashboard/src/i18n/locales/id.json@@ -670,7 +670,7 @@"call.rejected": "Saat panggilan ditolak","call.missed": "Saat panggilan tidak terjawab","status.received": "Saat kontak memposting status",- "all": "Semua kejadian"+ "all": "Semua kejadian kecuali message.receipt, yang harus disebutkan secara eksplisit"},"auth": {"title": "Autentikasi pengiriman",diff --git a/dashboard/src/i18n/locales/it.json b/dashboard/src/i18n/locales/it.jsonindex aafb04045..f2a9d5b01 100644--- a/dashboard/src/i18n/locales/it.json+++ b/dashboard/src/i18n/locales/it.json@@ -676,7 +676,7 @@"call.rejected": "Quando una chiamata viene rifiutata","call.missed": "Quando una chiamata resta senza risposta","status.received": "Quando un contatto pubblica uno stato",- "all": "Tutti gli eventi"+ "all": "Tutti gli eventi tranne message.receipt, che va indicato esplicitamente"},"auth": {"title": "Autenticazione delle consegne",diff --git a/dashboard/src/i18n/locales/ko.json b/dashboard/src/i18n/locales/ko.jsonindex 476f3ef76..ebc17bbff 100644--- a/dashboard/src/i18n/locales/ko.json+++ b/dashboard/src/i18n/locales/ko.json@@ -670,7 +670,7 @@"call.rejected": "통화가 거절되었을 때","call.missed": "통화에 응답하지 않았을 때","status.received": "연락처가 상태를 게시했을 때",- "all": "모든 이벤트"+ "all": "message.receipt을 제외한 모든 이벤트 (message.receipt은 직접 지정해야 함)"},"auth": {"title": "전송 인증",diff --git a/dashboard/src/i18n/locales/pt-BR.json b/dashboard/src/i18n/locales/pt-BR.jsonindex 849cf8911..ef2f1b30c 100644--- a/dashboard/src/i18n/locales/pt-BR.json+++ b/dashboard/src/i18n/locales/pt-BR.json@@ -676,7 +676,7 @@"call.rejected": "Quando uma chamada é recusada","call.missed": "Quando uma chamada não é atendida","status.received": "Quando um contato publica um status",- "all": "Todos os eventos"+ "all": "Todos os eventos, exceto message.receipt, que precisa ser indicado explicitamente"},"auth": {"title": "Autenticação de entrega",diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.jsonindex ed815a125..143ee65c3 100644--- a/dashboard/src/i18n/locales/te.json+++ b/dashboard/src/i18n/locales/te.json@@ -670,7 +670,7 @@"call.rejected": "కాల్ తిరస్కరించబడినప్పుడు","call.missed": "కాల్కు ఎవరూ సమాధానం ఇవ్వనప్పుడు","status.received": "కాంటాక్ట్ స్టేటస్ పోస్ట్ చేసినప్పుడు",- "all": "అన్ని ఈవెంట్స్"+ "all": "message.receipt మినహా అన్ని ఈవెంట్స్ (message.receipt ను స్పష్టంగా పేర్కొనాలి)"},"auth": {"title": "డెలివరీ ప్రామాణీకరణ",diff --git a/dashboard/src/i18n/locales/tr.json b/dashboard/src/i18n/locales/tr.jsonindex 673d1c629..be46aadc6 100644--- a/dashboard/src/i18n/locales/tr.json+++ b/dashboard/src/i18n/locales/tr.json@@ -670,7 +670,7 @@"call.rejected": "Bir arama reddedildiğinde","call.missed": "Bir arama yanıtsız kaldığında","status.received": "Bir kişi durum paylaştığında",- "all": "Tüm olaylar"+ "all": "message.receipt hariç tüm olaylar (message.receipt açıkça belirtilmelidir)"},"auth": {"title": "Teslimat kimlik doğrulaması",diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.jsonindex b85735ab6..8cf12834e 100644--- a/dashboard/src/i18n/locales/zh-CN.json+++ b/dashboard/src/i18n/locales/zh-CN.json@@ -670,7 +670,7 @@"call.rejected": "来电被拒接时","call.missed": "来电未接听时","status.received": "联系人发布状态时",- "all": "所有事件"+ "all": "除 message.receipt 外的所有事件(message.receipt 须明确指定)"},"auth": {"title": "投递认证",diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.jsonindex 1c774ada4..b97280687 100644--- a/dashboard/src/i18n/locales/zh-HK.json+++ b/dashboard/src/i18n/locales/zh-HK.json@@ -670,7 +670,7 @@"call.rejected": "來電被拒接時","call.missed": "來電未接聽時","status.received": "聯絡人發佈狀態時",- "all": "所有事件"+ "all": "除 message.receipt 外的所有事件(message.receipt 須明確指定)"},"auth": {"title": "傳送驗證",