Skip to content

fix(site): link to provider API key creation from provider form - #32127

Merged
tracyjohnsonux merged 4 commits into
mainfrom
tracy/provider-api-key-link
Nov 12, 2026
Merged

tracyjohnsonux merged 4 commits into
mainfrom
tracy/provider-api-key-link

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes DES-22180.

The add/edit AI provider form now shows a Create API key link with the external-site icon under the API key field. The link appears for providers with a known upstream key page: Anthropic, Google, OpenAI, OpenRouter, and Vercel. Two design follow-ups ship with it:

  • Field descriptions on the provider forms render below the input, matching the Platform field. FormField gains an opt-in descriptionPosition prop; the default (above) leaves its other callers unchanged.
  • On the API key field, the validation error and the link share one line (error first).
  • The Platform select hides its chevron when it is disabled (fixed after creation).
Decision log
  • Azure, OpenAI-compatible, Copilot, Bedrock, and Claude Platform get no link: Azure and OpenAI-compatible have no single key page, Copilot uses GitHub OAuth, and Bedrock and Claude Platform use AWS or workspace credentials.
  • URLs were checked against each vendor: console.anthropic.com/settings/keys now redirects to platform.claude.com/settings/keys, and the Vercel URL is the AI Gateway API Keys dashboard link from Vercel's docs.
  • The chevron is hidden only on this field through a trigger class, not in the shared Select, to keep the change scoped.
  • AddOpenRouter story added for visual coverage of the issue's case; Vitest covers each provider's link href.

image image

Generated by Coder Agents on behalf of @tracyjohnsonux.

Add a Create API key link under the API key field for providers with a
known upstream key page, move field descriptions below their inputs on
the provider forms, and hide the Platform chevron when the field is
fixed.
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:07 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:07 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 12, 2026

Copy link
Copy Markdown

DES-22180

@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:14 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux marked this pull request as ready for review November 12, 2026 20:22
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:22 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:22 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:23 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 20:48 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux merged commit 0bea881 into main Nov 12, 2026
27 checks passed
@tracyjohnsonux
tracyjohnsonux deleted the tracy/provider-api-key-link branch November 12, 2026 22:09
@tracyjohnsonux
tracyjohnsonux temporarily deployed to docs-preview November 12, 2026 22:09 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 22:09 — 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 — 46d5c7b9 Deployed Nov 12, 2026 by tracyjohnsonux via cleanup #12
main — 46d5c7b9 Deployed Nov 12, 2026 by tracyjohnsonux via cla #255330
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