Skip to content

[BUG][Low]- Docs chat widget changes have no JavaScript CI check #124

Open

Description

@arthurianresolve

Summary

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions