Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): announce message delivery status instead of colouring it

Yudhi Armyndharisb83f4b5af13a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c99493aa..97fd8da7b 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
+- A message's delivery status is announced, not only coloured. `delivered` and `read` render the same double check and differed only by a blue that measured 2.13:1 on the outgoing bubble, so the distinction reached neither screen readers nor colour-blind readers.
- Text rendered in a brand or status colour meets AA on the light theme. As foregrounds they measured 1.98:1 (brand), 2.15:1 (warning), 2.28:1 (success) and 3.76:1 (error); darkened `-text` twins now carry text and icons while the originals stay the fill colour. Each clears 4.5:1 against the tint its own badges paint behind it, not just against white. Dark theme is unchanged.
- The filter builder's three selects, the status image picker and the templates session picker expose accessible names, so a screen reader no longer announces unnamed comboboxes on those surfaces.
- The plugin session picker exposes an accessible name, and a required array field's asterisk renders in the error colour. The caption lives outside `.form-group`, so the rule that colours the mark never matched it.
diff --git a/dashboard/src/components/chats/ChatThread.tsx b/dashboard/src/components/chats/ChatThread.tsx
index 6f834adcc..a22036e42 100644
--- a/dashboard/src/components/chats/ChatThread.tsx
+++ b/dashboard/src/components/chats/ChatThread.tsx
@@ -324,8 +324,16 @@ function ChatThread({
<div className="message-meta">
<span className="message-time">{formattedTime}</span>
+ {/* delivered and read render the SAME glyph and differ only in colour, which
+ carries the meaning nowhere a screen reader or a colour-blind reader can
+ reach it. The status is spelled out for both. */}
{isMe && (
- <span className={`message-status-icon ${msg.status}`}>
+ <span
+ className={`message-status-icon ${msg.status}`}
+ role="img"
+ aria-label={t(`chats.messageStatus.${msg.status}`)}
+ title={t(`chats.messageStatus.${msg.status}`)}
+ >
{msg.status === 'pending' && '🕒'}
{msg.status === 'sent' && '✓'}
{msg.status === 'delivered' && '✓✓'}
diff --git a/dashboard/src/i18n/locales/ar.json b/dashboard/src/i18n/locales/ar.json
index 7597d92fd..3323755ad 100644
--- a/dashboard/src/i18n/locales/ar.json
+++ b/dashboard/src/i18n/locales/ar.json
@@ -172,7 +172,14 @@
"delete": "فشل حذف الرسالة",
"fileTooLarge": "الملف كبير جدًا (الحد الأقصى 18 ميغابايت)"
},
- "loadMessagesError": "تعذّر تحميل الرسائل. تحقّق من سجلّات الخادم."
+ "loadMessagesError": "تعذّر تحميل الرسائل. تحقّق من سجلّات الخادم.",
+ "messageStatus": {
+ "pending": "قيد الانتظار",
+ "sent": "تم الإرسال",
+ "delivered": "تم التسليم",
+ "read": "تمت القراءة",
+ "failed": "فشل"
+ }
},
"errorBoundary": {
"title": "حدث خطأ ما",
diff --git a/dashboard/src/i18n/locales/de.json b/dashboard/src/i18n/locales/de.json
index a4f9ed7a8..4542b1e67 100644
--- a/dashboard/src/i18n/locales/de.json
+++ b/dashboard/src/i18n/locales/de.json
@@ -161,7 +161,14 @@
"delete": "Nachricht konnte nicht gelöscht werden",
"fileTooLarge": "Die Datei ist zu groß (max. 18 MB)"
},
- "loadMessagesError": "Nachrichten konnten nicht geladen werden. Prüfe die Serverprotokolle."
+ "loadMessagesError": "Nachrichten konnten nicht geladen werden. Prüfe die Serverprotokolle.",
+ "messageStatus": {
+ "pending": "Ausstehend",
+ "sent": "Gesendet",
+ "delivered": "Zugestellt",
+ "read": "Gelesen",
+ "failed": "Fehlgeschlagen"
+ }
},
"errorBoundary": {
"title": "Etwas ist schiefgelaufen",
diff --git a/dashboard/src/i18n/locales/en.json b/dashboard/src/i18n/locales/en.json
index f8bbed2ec..f4b323e61 100644
--- a/dashboard/src/i18n/locales/en.json
+++ b/dashboard/src/i18n/locales/en.json
@@ -161,7 +161,14 @@
"delete": "Failed to delete message",
"fileTooLarge": "File is too large (max 18 MB)"
},
- "loadMessagesError": "Couldn't load messages. Check the server logs."
+ "loadMessagesError": "Couldn't load messages. Check the server logs.",
+ "messageStatus": {
+ "pending": "Pending",
+ "sent": "Sent",
+ "delivered": "Delivered",
+ "read": "Read",
+ "failed": "Failed"
+ }
},
"errorBoundary": {
"title": "Something went wrong",
diff --git a/dashboard/src/i18n/locales/es.json b/dashboard/src/i18n/locales/es.json
index 7c06b1e20..a6c7c347c 100644
--- a/dashboard/src/i18n/locales/es.json
+++ b/dashboard/src/i18n/locales/es.json
@@ -161,7 +161,14 @@
"delete": "Error al eliminar el mensaje",
"fileTooLarge": "El archivo es demasiado grande (máx. 18 MB)"
},
- "loadMessagesError": "No se pudieron cargar los mensajes. Revisa los registros del servidor."
+ "loadMessagesError": "No se pudieron cargar los mensajes. Revisa los registros del servidor.",
+ "messageStatus": {
+ "pending": "Pendiente",
+ "sent": "Enviado",
+ "delivered": "Entregado",
+ "read": "Leído",
+ "failed": "Fallido"
+ }
},
"errorBoundary": {
"title": "Algo salió mal",
diff --git a/dashboard/src/i18n/locales/fr.json b/dashboard/src/i18n/locales/fr.json
index 0e5ab7753..1b80b8ed9 100644
--- a/dashboard/src/i18n/locales/fr.json
+++ b/dashboard/src/i18n/locales/fr.json
@@ -161,7 +161,14 @@
"delete": "Échec de la suppression du message",
"fileTooLarge": "Le fichier est trop volumineux (max 18 Mo)"
},
- "loadMessagesError": "Impossible de charger les messages. Vérifiez les journaux du serveur."
+ "loadMessagesError": "Impossible de charger les messages. Vérifiez les journaux du serveur.",
+ "messageStatus": {
+ "pending": "En attente",
+ "sent": "Envoyé",
+ "delivered": "Remis",
+ "read": "Lu",
+ "failed": "Échec"
+ }
},
"errorBoundary": {
"title": "Une erreur est survenue",
diff --git a/dashboard/src/i18n/locales/he.json b/dashboard/src/i18n/locales/he.json
index 9b8372189..e82baf561 100644
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@ -168,7 +168,14 @@
"delete": "מחיקת ההודעה נכשלה",
"fileTooLarge": "הקובץ גדול מדי (מקסימום 18 MB)"
},
- "loadMessagesError": "לא ניתן לטעון את ההודעות. בדקו את יומני השרת."
+ "loadMessagesError": "לא ניתן לטעון את ההודעות. בדקו את יומני השרת.",
+ "messageStatus": {
+ "pending": "ממתין",
+ "sent": "נשלח",
+ "delivered": "נמסר",
+ "read": "נקרא",
+ "failed": "נכשל"
+ }
},
"errorBoundary": {
"title": "משהו השתבש",
diff --git a/dashboard/src/i18n/locales/it.json b/dashboard/src/i18n/locales/it.json
index 718e6834a..8196a0c5b 100644
--- a/dashboard/src/i18n/locales/it.json
+++ b/dashboard/src/i18n/locales/it.json
@@ -161,7 +161,14 @@
"delete": "Impossibile eliminare il messaggio",
"fileTooLarge": "Il file è troppo grande (max 18 MB)"
},
- "loadMessagesError": "Impossibile caricare i messaggi. Controlla i log del server."
+ "loadMessagesError": "Impossibile caricare i messaggi. Controlla i log del server.",
+ "messageStatus": {
+ "pending": "In attesa",
+ "sent": "Inviato",
+ "delivered": "Consegnato",
+ "read": "Letto",
+ "failed": "Fallito"
+ }
},
"errorBoundary": {
"title": "Qualcosa è andato storto",
diff --git a/dashboard/src/i18n/locales/ko.json b/dashboard/src/i18n/locales/ko.json
index 59a6c6beb..41ba479cf 100644
--- a/dashboard/src/i18n/locales/ko.json
+++ b/dashboard/src/i18n/locales/ko.json
@@ -161,7 +161,14 @@
"delete": "메시지를 삭제하지 못했습니다",
"fileTooLarge": "파일이 너무 큽니다 (최대 18 MB)"
},
- "loadMessagesError": "메시지를 불러올 수 없습니다. 서버 로그를 확인하세요."
+ "loadMessagesError": "메시지를 불러올 수 없습니다. 서버 로그를 확인하세요.",
+ "messageStatus": {
+ "pending": "대기 중",
+ "sent": "전송됨",
+ "delivered": "전달됨",
+ "read": "읽음",
+ "failed": "실패"
+ }
},
"errorBoundary": {
"title": "문제가 발생했습니다",
diff --git a/dashboard/src/i18n/locales/pt-BR.json b/dashboard/src/i18n/locales/pt-BR.json
index 9ff641ab0..01f28ece6 100644
--- a/dashboard/src/i18n/locales/pt-BR.json
+++ b/dashboard/src/i18n/locales/pt-BR.json
@@ -161,7 +161,14 @@
"delete": "Erro ao excluir a mensagem",
"fileTooLarge": "O arquivo é muito grande (máx. 18 MB)"
},
- "loadMessagesError": "Não foi possível carregar as mensagens. Verifique os registros do servidor."
+ "loadMessagesError": "Não foi possível carregar as mensagens. Verifique os registros do servidor.",
+ "messageStatus": {
+ "pending": "Pendente",
+ "sent": "Enviado",
+ "delivered": "Entregue",
+ "read": "Lido",
+ "failed": "Falhou"
+ }
},
"errorBoundary": {
"title": "Algo deu errado",
diff --git a/dashboard/src/i18n/locales/te.json b/dashboard/src/i18n/locales/te.json
index 888d5568e..df2eae15e 100644
--- a/dashboard/src/i18n/locales/te.json
+++ b/dashboard/src/i18n/locales/te.json
@@ -161,7 +161,14 @@
"delete": "సందేశాన్ని తొలగించడం విఫలమైంది",
"fileTooLarge": "ఫైల్ చాలా పెద్దది (గరిష్టం 18 MB)"
},
- "loadMessagesError": "సందేశాలను లోడ్ చేయడం సాధ్యం కాలేదు. సర్వర్ లాగ్‌లను తనిఖీ చేయండి."
+ "loadMessagesError": "సందేశాలను లోడ్ చేయడం సాధ్యం కాలేదు. సర్వర్ లాగ్‌లను తనిఖీ చేయండి.",
+ "messageStatus": {
+ "pending": "పెండింగ్‌లో",
+ "sent": "పంపబడింది",
+ "delivered": "డెలివరీ అయింది",
+ "read": "చదవబడింది",
+ "failed": "విఫలమైంది"
+ }
},
"errorBoundary": {
"title": "ఏదో తప్పు జరిగింది",
diff --git a/dashboard/src/i18n/locales/tr.json b/dashboard/src/i18n/locales/tr.json
index 015a663fb..4a3700198 100644
--- a/dashboard/src/i18n/locales/tr.json
+++ b/dashboard/src/i18n/locales/tr.json
@@ -161,7 +161,14 @@
"delete": "Mesaj silinemedi",
"fileTooLarge": "Dosya çok büyük (maks 18 MB)"
},
- "loadMessagesError": "Mesajlar yüklenemedi. Sunucu kayıtlarını kontrol edin."
+ "loadMessagesError": "Mesajlar yüklenemedi. Sunucu kayıtlarını kontrol edin.",
+ "messageStatus": {
+ "pending": "Beklemede",
+ "sent": "Gönderildi",
+ "delivered": "İletildi",
+ "read": "Okundu",
+ "failed": "Başarısız"
+ }
},
"errorBoundary": {
"title": "Bir şeyler ters gitti",
diff --git a/dashboard/src/i18n/locales/zh-CN.json b/dashboard/src/i18n/locales/zh-CN.json
index 087ec5c3c..3441f04c0 100644
--- a/dashboard/src/i18n/locales/zh-CN.json
+++ b/dashboard/src/i18n/locales/zh-CN.json
@@ -161,7 +161,14 @@
"delete": "删除消息失败",
"fileTooLarge": "文件过大(最大 18 MB)"
},
- "loadMessagesError": "无法加载消息。请检查服务器日志。"
+ "loadMessagesError": "无法加载消息。请检查服务器日志。",
+ "messageStatus": {
+ "pending": "待发送",
+ "sent": "已发送",
+ "delivered": "已送达",
+ "read": "已读",
+ "failed": "发送失败"
+ }
},
"errorBoundary": {
"title": "出了点问题",
diff --git a/dashboard/src/i18n/locales/zh-HK.json b/dashboard/src/i18n/locales/zh-HK.json
index 832075e3e..ad176393f 100644
--- a/dashboard/src/i18n/locales/zh-HK.json
+++ b/dashboard/src/i18n/locales/zh-HK.json
@@ -161,7 +161,14 @@
"delete": "刪除訊息失敗",
"fileTooLarge": "檔案過大(最大 18 MB)"
},
- "loadMessagesError": "無法載入訊息。請檢查伺服器日誌。"
+ "loadMessagesError": "無法載入訊息。請檢查伺服器日誌。",
+ "messageStatus": {
+ "pending": "待傳送",
+ "sent": "已傳送",
+ "delivered": "已送達",
+ "read": "已讀",
+ "failed": "傳送失敗"
+ }
},
"errorBoundary": {
"title": "發生問題",
diff --git a/dashboard/src/pages/Chats.css b/dashboard/src/pages/Chats.css
index 9abaa632b..b66d84766 100644
--- a/dashboard/src/pages/Chats.css
+++ b/dashboard/src/pages/Chats.css
@@ -590,7 +590,10 @@
}
.chats-page .message-status-icon.read {
- color: #53bdeb; /* WhatsApp blue checks */
+ /* The WhatsApp blue is 2.13:1 on the outgoing bubble, and these checks are TEXT, not an icon.
+ Darkened to clear 4.5:1 there and on white; the status is also spelled out in aria-label/title,
+ since delivered and read otherwise differ only by this colour. */
+ color: #337592;
}
/* =============================================================================