Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs: correct the accessibility and CI claims, drop the inert DOMAIN

Yudhi Armyndharis2d836a934800
diff --git a/.env.example b/.env.example
index f81e6a5d1..354d387c1 100644
--- a/.env.example
+++ b/.env.example
@@ -71,9 +71,6 @@ STATUS_SEED_ON_READY=false
# HEADERS_TIMEOUT_MS=65000
# KEEPALIVE_TIMEOUT_MS=5000
-# Domain Configuration
-DOMAIN=localhost
-
# Host interface the dev compose binds the API/dashboard ports to. Defaults to 127.0.0.1
# (localhost only). Set to 0.0.0.0 to reach the dev stack from another machine (e.g. a remote
# VPS) — put a TLS reverse proxy in front for anything internet-facing (the API key is sent in
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c3debb5bd..91519f7fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The Go and Java SDKs can @mention on an audio send. `SendAudioRequest` was flattened off the shared media type and lost the field, so the typed path could not set it while every other client could.
- Three routes declare the `409` they can answer: a duplicate template name on create or rename, and an integration instance id that already exists. Clients generated from the contract modelled those calls as unable to conflict.
+- `DOMAIN` is dropped from `.env.example`. Nothing read it, so an operator setting it to their real hostname changed nothing.
- Plugin config fields bind their caption to the control for every field type, not just booleans. Clicking the caption of a text, number, secret, enum or textarea field focused nothing, and screen readers announced those inputs with no name.
- Dashboard toggles expose an accessible name and, for the message-type and recipient groups, their selected state. Their captions sit outside the control, so a screen reader announced anonymous checkboxes and unlabelled buttons.
- The PostgreSQL signing key is committed instead of fetched during the image build, so the one build input nothing pinned is now reviewable and diffable, and a release build makes one fewer uncached network call.
diff --git a/docs/10-devops-infrastructure.md b/docs/10-devops-infrastructure.md
index 889bf7096..fb83cda1a 100644
--- a/docs/10-devops-infrastructure.md
+++ b/docs/10-devops-infrastructure.md
@@ -305,17 +305,17 @@ an illustrative design sketch; the chart is the authoritative artifact.
SHA image tags to GHCR; `latest` is deliberately not set there and moves only through the separate,
boot-smoke-gated release workflow.
-| Job | Needs | What it runs |
-| --------------- | -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `lint` | — | ESLint, `tsc --noEmit -p tsconfig.json` (full program, so spec files are type-checked too), `format:check`, `check:versions`, `check:dockerignore`, `openapi:check`, `check:sdk-routes`, `check:sdk-coverage`, `check:sdk-events`, `check:sdk-docs`, `check:contract-shapes` |
-| `audit` | — | `npm run check:audit` (root, high/critical with a per-advisory allowlist) + `npm audit --audit-level=high` (dashboard), split out of `lint` so a newly published advisory can't abort the code-quality gates |
-| `test` | — | `npm test -- --coverage`, `test:docs` (repo-file drift specs), `test:scripts`, `test:e2e` (a `redis:7-alpine` service backs the queue-on e2e suite), coverage upload |
-| `test-postgres` | — | `npm run build`, then `test:pg-smoke` (migrations + uuid-default) and the Postgres FTS migration spec against a `postgres:16-alpine` service |
-| `dashboard` | — | In `dashboard/`: `lint`, `typecheck`, `i18n:check`, `build`, `test:unit` |
-| `scripts-smoke` | — | `shellcheck` plus the backup/restore smoke test for `scripts/backup.sh` and `scripts/restore.sh` |
-| `chart` | — | `helm lint` + template rendering of `charts/openwa`, `actionlint` for the workflows, and a behaviour check on the chart's values (`check:chart`) |
-| `build` | lint, audit, test, dashboard, scripts-smoke, chart | `npm run build`, uploads the `dist` artifact |
-| `docker` | build, test-postgres | Buildx multi-arch build (`linux/amd64,linux/arm64`) with provenance + SBOM attestations, then the non-root drop smoke (`scripts/smoke-test-non-root.sh`); pushes to `ghcr.io/<owner>/<repo>` on push events (fork PRs build both architectures without publishing) |
+The per-job step lists live in [docs/09 §9.6](./09-testing-strategy.md#96-ci-checks), which a spec
+keeps in sync with the workflow (`src/common/docs-ci-jobs.spec.ts`). Restating them here is what let
+this section rot: it described a `dashboard` job with no formatting step and a `chart` job with no
+kubeconform long after both had one. What this page adds instead is the shape of the graph.
+
+Seven jobs run in parallel with no dependencies: `lint`, `audit`, `test`, `test-postgres`,
+`dashboard`, `scripts-smoke` and `chart`. `build` waits on all of them except `test-postgres`
+(`needs: lint, audit, test, dashboard, scripts-smoke, chart`), and `docker` waits on `build` and
+`test-postgres`, so the image is only built from a tree that passed every gate including the real
+PostgreSQL run. `docker` pushes to `ghcr.io/<owner>/<repo>` on push events; fork pull requests build
+both architectures without publishing.
Rollout is left to the operator — the repo has no SSH deploy step, no staging/production
environments and no auto-deploy on merge.
diff --git a/docs/17-dashboard-design.md b/docs/17-dashboard-design.md
index 8a19574e7..0b6f934bb 100644
--- a/docs/17-dashboard-design.md
+++ b/docs/17-dashboard-design.md
@@ -45,10 +45,17 @@ backed by `localStorage` — there is no Zustand store.
2. **Responsive** - Works on desktop and mobile
3. **Real-time** - Live updates via WebSocket
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.
+ the chat/channel/status lists (role, focus, Enter/Space activation), focus-visible styling, the
+ form labels in the settings and config surfaces associated with their controls via `htmlFor`/`id`,
+ toggle switches and button groups that expose an accessible name and their selected state, and a
+ muted-text token that meets AA on both themes. `dashboard/src/a11y-controls.test.ts` fails the
+ build when a toggle switch, a button toggle-group or a plugin config field loses its name; other
+ control shapes are not covered by it.
+ Known gaps, all measured rather than assumed: `--primary` as a foreground on a light background is
+ 1.98:1 and fails AA wherever it is used as text (the active sidebar item, several badges); a
+ handful of native selects and search inputs still carry no accessible name; and the exclusive
+ button groups report `aria-pressed` without arrow-key roving focus. Four pages have a render
+ harness, so the rest are checked structurally. Treat the claim as directional, not certified.
5. **Dark mode** - Support for light/dark themes
## 17.2 Information Architecture