Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): draw links in a quoted message in the chat link colour
Yudhi Armyndharisf81bee433f66
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 48110ba6b..f6d9c48f5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Match the dashboard New chat search against contact numbers only when the query reads as a phone number, so a name with a digit no longer lists every contact whose number holds that digit.- Read the dashboard Chats page's session list again when the page is shown, so a session deleted elsewhere no longer stays open.- Draw group sender names in dashboard chat threads in colours that clear 4.5:1 on the incoming bubble in light and dark themes.+- Draw links inside a quoted dashboard chat message in the chat link colours, which clear 4.5:1 on the quote in light and dark themes.## [0.26.0] - 2026-10-28diff --git a/dashboard/src/pages/Chats.css b/dashboard/src/pages/Chats.cssindex 5af84886a..cd515fcca 100644--- a/dashboard/src/pages/Chats.css+++ b/dashboard/src/pages/Chats.css@@ -23,7 +23,7 @@--chat-accent-hover: #008f6f;--chat-quote-accent: #06cf9c;--chat-link: #0271a6;- --chat-link-out: #0271a6;+ --chat-link-out: #026c9e;/* The WhatsApp read blue is 2.13:1 on the outgoing bubble; this one clears 3:1 for the icon there. Readand delivered also differ in aria-label and title, never by colour alone. */--chat-tick-read: #1f8fc4;@@ -65,7 +65,7 @@--chat-pill-active-bg: #0a332c;--chat-pill-active-text: #1fbf95;--chat-link: #53bdeb;- --chat-link-out: #8fd4f4;+ --chat-link-out: #9edaf5;--chat-tick-read: #53bdeb;--chat-icon: #aebac1;--chat-shadow-bubble: 0 1px 0.5px rgba(11, 20, 26, 0.4);@@ -100,7 +100,7 @@--chat-pill-active-bg: #0a332c;--chat-pill-active-text: #1fbf95;--chat-link: #53bdeb;- --chat-link-out: #8fd4f4;+ --chat-link-out: #9edaf5;--chat-tick-read: #53bdeb;--chat-icon: #aebac1;--chat-shadow-bubble: 0 1px 0.5px rgba(11, 20, 26, 0.4);@@ -2252,13 +2252,16 @@padding-inline-start: 1.25rem;}-.chats-page .message-text a {+/* A link in a quote takes the same tokens: the app's link green is 4.23:1 on a quote in a light outgoing bubble. */+.chats-page .message-text a,+.chats-page .quote-body a {color: var(--chat-link);text-decoration: underline;}/* The blue of an incoming link is 4.07:1 on the light green and 3.74:1 on the dark one. */-.chats-page .message-bubble.outgoing .message-text a {+.chats-page .message-bubble.outgoing .message-text a,+.chats-page .message-bubble.outgoing .quote-body a {color: var(--chat-link-out);}diff --git a/dashboard/src/theme-contrast.test.ts b/dashboard/src/theme-contrast.test.tsindex 9d09d5d7f..8ed1a9679 100644--- a/dashboard/src/theme-contrast.test.ts+++ b/dashboard/src/theme-contrast.test.ts@@ -116,8 +116,10 @@ test('the group dialog fields draw their placeholders in the chat meta token, no}});-test('the outgoing bubble draws its links in their own token', () => {+test('the outgoing bubble draws its links in their own token, and a quote its links in the same tokens', () => {assert.match(chatRule('.chats-page .message-bubble.outgoing .message-text a'), /color:\s*var\(--chat-link-out\)/);+ assert.match(chatRule('.chats-page .quote-body a'), /color:\s*var\(--chat-link\)/);+ assert.match(chatRule('.chats-page .message-bubble.outgoing .quote-body a'), /color:\s*var\(--chat-link-out\)/);});// The muted lines a bubble holds are --chat-meta in an incoming one. On the dark outgoing green that token is 3.27:1,@@ -159,6 +161,9 @@ const TEXT_FILLS: Array<[string, string[], string?]> = [['--chat-accent-text', ['.chats-page .session-avatar']],['--chat-meta', ['.chats-page .message-quote-box'], '--chat-bubble-in'],['--chat-meta-out', ['.chats-page .message-quote-box'], '--chat-bubble-out'],+ // A link in a quote: the outgoing blue measured 4.30:1 on the quote in both the light and the dark green.+ ['--chat-link', ['.chats-page .message-quote-box'], '--chat-bubble-in'],+ ['--chat-link-out', ['.chats-page .message-quote-box'], '--chat-bubble-out'],];for (const anchor of CHAT_ANCHORS) {