Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): name the plugin session picker, colour the array mark
Yudhi Armyndharisd1345fc74fd1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fb55e3417..90218a41c 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+- 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.- Baileys forwards `mentions` on an audio send. The route accepts the field and whatsapp-web.js sent it, so the same request tagged group participants on one engine and silently did not on the other.- Forwarding a message whose id is not in `fromChatId` is refused on Baileys with the same `404` whatsapp-web.js already answered. The parameter was accepted and then ignored, so any stored id forwarded from any claimed source.- The Baileys engine resolves its WhatsApp Web version through a fallback chain instead of one call: an operator pin (`BAILEYS_WA_VERSION`), the two library endpoints, a disk cache of the last known-good version, then a built-in default. Each remote tier is bounded and rides the session proxy, and a stale answer is neither cached nor used. Thanks @giovanni-orciuolo.diff --git a/dashboard/src/pages/Plugins.css b/dashboard/src/pages/Plugins.cssindex 5319366c0..aa42790d5 100644--- a/dashboard/src/pages/Plugins.css+++ b/dashboard/src/pages/Plugins.css@@ -492,7 +492,10 @@line-height: 1.4;}-.plugins-page .config-form .form-group .required-mark {+/* Scoped to .config-form rather than .form-group: the same mark also renders inside an array's+ caption, which lives in .config-array and so never matched the narrower selector. A required+ array showed its asterisk in body text instead of the error colour. */+.plugins-page .config-form .required-mark {color: var(--error);}diff --git a/dashboard/src/pages/Plugins.tsx b/dashboard/src/pages/Plugins.tsxindex 6aa19181a..a69052dac 100644--- a/dashboard/src/pages/Plugins.tsx+++ b/dashboard/src/pages/Plugins.tsx@@ -505,7 +505,14 @@ function SessionsTab({ plugin }: { plugin: Plugin }) {<section className="sessions-section"><h3>{t('plugins.sessions.perSessionTitle')}</h3><small>{t('plugins.sessions.perSessionDesc')}</small>- <select className="sessions-select" value={selSession} onChange={e => setSelSession(e.target.value)}>+ {/* The heading above is a sibling, not a label, so the select had no accessible name of its+ own: a screen reader announced an unnamed combobox. */}+ <select+ className="sessions-select"+ aria-label={t('plugins.sessions.selectSession')}+ value={selSession}+ onChange={e => setSelSession(e.target.value)}+ ><option value="">{t('plugins.sessions.selectSession')}</option>{sessions.map(s => (<option key={s.id} value={s.id}>