You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][Low]- Docs chat widget changes have no JavaScript CI check #124
The Lint and Test workflow runs on pushes and pull requests, but every existing job runs Rust commands. None checks docs/toast-chat.js. The separate docs search sync runs only on pushes to main and tests store ingestion, not the browser widget. A JavaScript syntax error in the chat widget therefore has no relevant CI check.
Affected code
The push/PR workflow defines Build, Test, Miri Test, and Clippy Lint jobs, all focused on Rust: qol.yaml.
The widget is a standalone JavaScript file injected into the docs: toast-chat.js.
Docs Search Sync invokes the Python ingestion script only on main: docs-search-sync.yaml.
Suggested resolution
Add an independent, named job to qol.yaml that runs on both pushes and pull requests, sets up a pinned Node.js major version, and runs node --check docs/toast-chat.js.
Keep the check independent of the docs sync API key so it can run on fork pull requests.
Treat this as a syntax gate; a separate browser smoke test would be needed to validate opening, dismissal, and chat behavior.
Acceptance criteria
Valid toast-chat.js syntax passes its own CI job on pushes and pull requests.
A syntax error fails that job without relying on Rust compilation or docs search credentials.
The check makes no claim to validate browser interactions.
Related change
The toast chat drawer change highlighted this coverage gap: the Rust job failures did not establish whether the widget worked.
Validation performed
The proposed workflow job passed node --check docs/toast-chat.js, actionlint .github/workflows/qol.yaml, and git diff --check locally. The pushed branch's Docs Chat JavaScript job also passed.
Activity