Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): make the chat lists keyboard-activatable and the a11y claim honest

Yudhi Armyndharis40276efed39e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e438a1800..dbfe5907f 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
+- Chat, channel and status entries in the Chats sidebar are keyboard-activatable (role, focus, Enter/Space) instead of click-only divs, and docs/17 states the accessibility posture honestly (AA target, known label/contrast gaps listed) instead of claiming certified compliance.
- docs/06 documents every route-specific status code the contract declares (409/413/415/422/429/501/502/503; 153 missing code mentions across ~90 sections), corrects the catalog routes to Baileys-implements, the profile refusals to 403, scope violations to 401, and the phantom channel 422; a spec now derives the required codes from openapi.json.
- docs/06 scopes the audit log honestly: message/webhook actions are never emitted (their tables own that data), the request-actor columns are documented as null, and the OpenAPI example uses a real snake_case action.
- docs/30 states the plugin sandbox's memory-kind boundary: the worker heap cap does not cover Buffer/native allocations, which grow host RSS up to the container limit.
diff --git a/dashboard/src/components/chats/ChatSidebar.tsx b/dashboard/src/components/chats/ChatSidebar.tsx
index 4dbb0e599..3282effea 100644
--- a/dashboard/src/components/chats/ChatSidebar.tsx
+++ b/dashboard/src/components/chats/ChatSidebar.tsx
@@ -68,8 +68,17 @@ function ChatSidebar({
return (
<div
key={chat.id}
+ role="button"
+ tabIndex={0}
+ aria-current={isActive ? 'true' : undefined}
className={`chat-item-card ${isActive ? 'active' : ''}`}
onClick={() => chatsTab.onSelectChat(chat)}
+ onKeyDown={e => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault();
+ chatsTab.onSelectChat(chat);
+ }
+ }}
>
<ChatAvatar pictureUrl={chatsTab.pictures?.[chat.id]} kind={chat.kind} />
@@ -208,8 +217,17 @@ function ChatSidebar({
channelsTab.channels.map(ch => (
<div
key={ch.id}
+ role="button"
+ tabIndex={0}
+ aria-current={channelsTab.activeChannelId === ch.id ? 'true' : undefined}
className={`chat-item-card ${channelsTab.activeChannelId === ch.id ? 'active' : ''}`}
onClick={() => channelsTab.onSelectChannel(ch)}
+ onKeyDown={e => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault();
+ channelsTab.onSelectChannel(ch);
+ }
+ }}
>
<div className="chat-avatar">
<Megaphone size={20} />
@@ -253,8 +271,17 @@ function ChatSidebar({
statusTab.groups.map(group => (
<div
key={group.contact.id}
+ role="button"
+ tabIndex={0}
+ aria-current={statusTab.activeContactId === group.contact.id ? 'true' : undefined}
className={`chat-item-card ${statusTab.activeContactId === group.contact.id ? 'active' : ''}`}
onClick={() => statusTab.onSelectContact(group.contact.id)}
+ onKeyDown={e => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault();
+ statusTab.onSelectContact(group.contact.id);
+ }
+ }}
>
<div className="chat-avatar">
<CircleDashed size={20} />
diff --git a/docs/17-dashboard-design.md b/docs/17-dashboard-design.md
index 4e112bdda..8a19574e7 100644
--- a/docs/17-dashboard-design.md
+++ b/docs/17-dashboard-design.md
@@ -44,7 +44,11 @@ backed by `localStorage` — there is no Zustand store.
1. **Minimalist** - Clean, uncluttered interface
2. **Responsive** - Works on desktop and mobile
3. **Real-time** - Live updates via WebSocket
-4. **Accessible** - WCAG 2.1 AA compliant
+4. **Accessible** - built to WCAG 2.1 AA as the target. Shipped: full keyboard reachability of
+ the chat/channel/status lists (role, focus, Enter/Space activation) and focus-visible styling.
+ Known gaps being worked down: most form labels are not yet associated with their controls via
+ `htmlFor`/`id`, and a handful of muted/primary color pairs still measure below the AA contrast
+ ratio; both are tracked for remediation. Treat the claim as directional, not certified.
5. **Dark mode** - Support for light/dark themes
## 17.2 Information Architecture