Skip to content

[Dashboard] Replace alert() with toast on first API key create failure #626

Closed

Description

@cursor

Problem

ApiKeysEmptyState uses alert(result.error) on first-key create failure. The rest of settings uses Sonner toasts / role="alert".

Proposed change

Use toast.error like ApiKeysClient revoke.

Why this matters

Native alert() is blocking and inconsistent with the rest of the dashboard.

Suggested implementation

  • apps/dashboard/app/dashboard/settings/keys/ApiKeysEmptyState.tsx
  • Pattern: ApiKeysClient.tsx toast.error

Acceptance criteria

  • No alert() on this path
  • Error still visible
  • Tests added/updated where applicable
  • Documentation updated where applicable

Contributor notes

This should be a good first contribution and does not require deep knowledge of the Telemetry Tracker architecture.

Open PRs against develop. See CONTRIBUTING.md.

Activity

  1. added
    triage:small
    on Oct 16, 2026
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

    triage:small

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions