The per-badge remove button and the clear-all button in
`MultiSelectCombobox` rendered only an `XIcon`, so they had no
accessible name and axe reported `button-name` (WCAG 4.1.2). They are
now named "Remove <option label>" and "Clear all", matching `TagInput`
and `FilterCombobox`. The `data-testid` attributes are removed, and
every caller now queries the buttons by role and name.
Enter already activates each button once, not twice as the ticket
suspected: cmdk's root `onKeyDown` prevents the default of Enter, so the
native click never fires and the button's own Enter handler is the only
path. A short comment now explains why those handlers must stay, and a
new test guards it.
Closes DEQ-664
| Ticket | UI surface |
|---|---|
| DEQ-664 | `MultiSelectCombobox` badge remove and clear-all buttons:
IdP organization, group, and role sync; OAuth2 app form scopes;
multi-select dynamic parameters. Accessible names only, no visual
change. |
**Dropped review findings**
- Focus is lost after a keyboard removal (frontend-accessibility manual
focus check, SA6). When Enter removes a badge or clears all, the focused
button unmounts and focus falls to `<body>`. This happens on `main` too
and is not caused by this diff. Fixing it would mean new focus
management (for example, moving focus to the input), which is a behavior
change outside this ticket. It should be its own ticket.
<details>
<summary>Decision log</summary>
- **Names:** I followed the existing `Remove ${value}` pattern
(`TagInput`, `FilterCombobox` chips) and the "Clear all" copy
(`FilterCombobox`). `aria-label` is correct here because the buttons
have no visible text.
- **Enter behavior:** In jsdom and in real Chromium (Vitest browser
mode), Enter on either button calls `onChange` exactly once on `main`.
Removing the button's Enter handler makes Enter do nothing (0 calls),
because cmdk calls `preventDefault()` on Enter. So the handlers stay.
Space and Backspace/Delete in the input are unchanged.
- **Tests:** They extend the existing "Multi-Select Parameter" block in
`DynamicParameter.test.tsx`, which renders `MultiSelectCombobox` (same
place as #32678). "handles option deselection" now clicks "Remove Option
1" and expects `onChange` exactly once. A new `it.each` presses Enter on
"Remove Option 1" and "Clear all" and expects one call with
`["option2"]` and `[]`. All three fail on `main` (no named buttons). The
Enter cases also fail with 0 calls when the Enter handlers are removed.
- **Callers:** `OAuth2AppForm.test.tsx` and the `OAuth2AppForm` and
`MultiSelectCombobox` stories now use the role queries. The clicked
badge is the same one as before, so screenshots are unchanged. Nothing
under `site/e2e` used the test IDs.
- **Story cleanup:** `ClearAllComboboxItems` no longer ends with a
`waitFor(... toBeInTheDocument())` assertion, because play functions
must not assert (FE1) and this diff edits that play.
- **Commit scope:** The scope is `site/src` because the changed tests
live under `modules/` and `pages/`.
- **Self-review:** frontend-review (FE1 to FE10 pass);
frontend-deep-review (two findings fixed, the story assertion and the
Enter rationale comment, then a clean second pass);
frontend-accessibility: a full axe run in Chromium on the component with
badges selected, closed and open, gives `button-name` 3 violations on
`main` and 0 on this branch.
- **Pre-existing, untouched:** axe reports `aria-valid-attr-value` on
the closed cmdk input (`aria-controls` points at the unmounted list) on
both `main` and this branch.
</details>
🤖 Generated by Coder Agents on behalf of @bartekgatzcoder.
Coder is a self-hosted platform for cloud development environments and AI coding agents. Workspaces are defined with Terraform, connected through a secure Wireguard® tunnel, and automatically shut down when not used. Coder Agents runs a native AI coding agent whose loop executes in the control plane on your infrastructure, with no API keys in workspaces.
- Define cloud development environments in Terraform
- EC2 VMs, Kubernetes Pods, Docker Containers, etc.
- Automatically shutdown idle resources to save on costs
- Onboard developers in seconds instead of days
- Delegate coding work to AI agents on your infrastructure
- Bring any model (Anthropic, OpenAI, Google, Bedrock, self-hosted)
- No LLM credentials in workspaces, user identity on every action
- Centralized model governance, cost tracking, and audit logging
Quickstart
Check out our install guides for other methods and a complete tutorial.
Try Coder with the install script on Linux and macOS, or grab the latest binary or installer from GitHub Releases on Windows:
curl -fsSL https://coder.com/install.sh | sh
Start the server and open http://localhost:3000 to create your initial user, create a Docker template, and provision your first workspace:
coder server
For a production deployment, add a PostgreSQL database (version 13 or later) and an external access URL, and see our validated architectures for sizing and infrastructure guidance:
coder server --postgres-url <url> --access-url <url>
Without these flags, Coder uses a built-in database and sets up a *.try.coder.app access URL for evaluation. Use coder --help for the full list of flags and environment variables.
Documentation
Browse the documentation or visit a specific section below:
- Workspaces: Workspaces contain the IDEs, dependencies, and configuration information needed for software development
- Templates: Templates are written in Terraform and describe the infrastructure for workspaces
- Coder Agents: Delegate coding work to AI agents running on your self-hosted infrastructure
- AI Gateway: Centralize authentication, auditing, and cost controls for AI tooling
- Administration: Learn how to operate Coder
- Premium: Learn about paid features built for large teams
- IDEs: Connect your existing editor to a workspace
Support
Open an issue for bugs and feature requests.
For community support, showcasing what you built, and feedback on in-progress features, join our Discord or GitHub Discussions.
Dedicated support is included in Coder Premium. For more information, visit coder.com/pricing.
Integrations
New integrations are always in progress. Open an issue to request one. Contributions are welcome in any official or community repository.
Official
- Coder Registry: Templates, modules, and integrations for common development environments
- Coding Agents: Run agents like Claude Code, Codex, and OpenCode isolated in Coder workspaces
- coderd Terraform Provider: Declaratively manage your Coder deployment configuration as code
- VS Code Extension: Open any Coder workspace in VS Code with a single click
- JetBrains Toolbox Plugin: Open any Coder workspace from JetBrains Toolbox with a single click
- Dev Containers: Build development environments using
devcontainer.jsonon Docker, Kubernetes, and OpenShift - Kubernetes Log Stream: Stream Kubernetes Pod events to the Coder startup logs
- Self-Hosted VS Code Extension Marketplace: A private extension marketplace that works in restricted or airgapped networks integrating with code-server.
- GitHub Actions: An action to set up the Coder CLI in GitHub workflows
Community
- Coder Discord: Chat with the community, get support, and hear about new product updates first
- Community Templates: Community-contributed workspace templates in the Coder Registry
- Community Modules: Community-contributed modules to extend Coder templates
- Coder Template GitHub Action: A GitHub Action that updates Coder templates
- Coder Agents Chat Action: A GitHub Action that starts a Coder Agents chat against a GitHub issue or pull request
Contributing
New contributors are always welcome. If you are new to the Coder codebase, see the contribution guide to get started.
Hiring
Apply on the careers page if you are interested in joining the team.
