Skip to content

fix(site/src): name the provider type icon in the AI Gateway provider filter - #32013

Merged
jeremyruppel merged 1 commit into
mainfrom
a11y/alt-text-missing-active-2
Nov 12, 2026
Merged

jeremyruppel merged 1 commit into
mainfrom
a11y/alt-text-missing-active-2

Conversation

@jeremyruppel

Copy link
Copy Markdown
Collaborator

In the AI Gateway provider filter, each option showed the provider type's logo with alt="". A provider named after something other than its type, such as bedrock beside the AWS logo, lost the type for screen reader users (WCAG 1.1.1).

ProviderIcon now takes an optional alt, which defaults to "", so other callers don't change. ProviderFilter sets it to the type's display name (for example "AWS Bedrock") when the visible label doesn't already include it. A custom icon stays decorative because we don't know what it shows.

Closes DEQ-330

Ticket UI surface
DEQ-330 AI Gateway > Sessions, "All providers" filter options. Not visible: the only change is the accessible name, so no screenshots.
Grouping and decision log
  • Batch alt-text-missing-active: DEQ-330 and DEQ-482 are eligible. Each has its own root cause, so this PR covers only DEQ-330.
  • DEQ-482 (template icons in the Templates table) is not in this PR. The icon is admin-chosen and there is no description source on main. refactor: describe built-in images from shared asset metadata #30728 adds getBuiltinImageDescription(), but it is still open and changes files outside site/.
  • Deque suggested the alt "AWS". "AWS Bedrock" comes from the page's existing getProviderDisplayName, which ProvidersBadge and SessionSummaryTable already use, so the wording matches.
  • When the label already contains the type label, the alt is left empty, so options like anthropic-prod aren't announced as "Anthropic anthropic-prod".
  • The fallback Building2Icon (an unknown type with no icon) ignores alt, because the generic icon carries no information.
  • Self-review: frontend-review passed all rules. frontend-deep-review raised three should-fix findings (which label helper to use, test queries, an inline fixture) and two nits, and all are fixed. The accessibility audit found no issues: the option's name becomes "AWS Bedrock bedrock", and the trigger keeps aria-label="Select provider".
  • Not fixed here, noted for follow-up: ProvidersBadge has the same decorative icon next to a configured name, and SelectFilter's trigger aria-label replaces its visible text.

🤖 Generated by Coder Agents on behalf of @jeremyruppel.

@jeremyruppel
jeremyruppel temporarily deployed to main November 10, 2026 17:58 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel temporarily deployed to main November 10, 2026 17:58 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

DEQ-330

@jeremyruppel
jeremyruppel marked this pull request as ready for review November 10, 2026 18:11
@jeremyruppel
jeremyruppel temporarily deployed to main November 10, 2026 18:11 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel merged commit 03fd134 into main Nov 12, 2026
54 of 55 checks passed
@jeremyruppel
jeremyruppel deleted the a11y/alt-text-missing-active-2 branch November 12, 2026 21:53
@jeremyruppel
jeremyruppel temporarily deployed to docs-preview November 12, 2026 21:53 — with GitHub Actions Inactive
@jeremyruppel
jeremyruppel temporarily deployed to main November 12, 2026 21:53 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2026

This branch was previously deployed

2 inactive deployments
docs-preview — 7da40cf6 Deployed Nov 12, 2026 by jeremyruppel via cleanup #11
main — 7da40cf6 Deployed Nov 12, 2026 by jeremyruppel via cla #255329
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants