Skip to content

fix(platform): link missing-key errors to provider settings (#2375) - #2475

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2375-noapikey-settings-link-6542
Jul 4, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2375-noapikey-settings-link-6542

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

Fixes #2375. A missing-API-key block stated the problem but offered no fix path. Now both surfaces carry a permission-aware link to provider settings:

  • Inline chat-error display — for the missing_api_key classification, an "Open provider settings" LinkButton to /dashboard/$id/settings/providers, or an "ask an admin" hint for members who can't manage providers.
  • Send-blocked toast — the missing-key subcase (discriminated from the shared image-edit block) attaches a Toast.Action link (managers) or admin hint (others).

Permission uses the existing useAbility().can('read','developerSettings') gate (the same one the providers route uses). A11y: keyboard/SR-accessible link that dismisses the toast; semantic tokens.

Checklist

  • bun run check — type-aware lint (0/0), typecheck clean, new chat-error-display.test.tsx (5, incl. a11y + ask-admin/no-org/non-missing cases) + message-bubble (7) + platform i18n parity (23) + @tale/ui i18n (54) passing.
  • lint:sast — N/A (Opengrep not cached).
  • Translations — added chat.openProviderSettings + chat.askAdminProviderKey to en/de/fr (DE du, FR tu).

Test plan

Send with a model whose provider has no key → the block toast and the inline error both offer "Open provider settings" (managers) or "ask an admin" (others).

Open in Web Open in Cursor 

@cursor
cursor Bot marked this pull request as ready for review July 4, 2026 10:51
@cursor
cursor Bot force-pushed the cursor/fix-2375-noapikey-settings-link-6542 branch from 166e31b to b90acb8 Compare July 4, 2026 11:04
@cursor
cursor Bot merged commit 50f8e3f into main Jul 4, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/fix-2375-noapikey-settings-link-6542 branch July 4, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvement: "No API key configured" toast should link to the provider settings

2 participants