Skip to content

Add confirmation before clearing saved API keys in Media providers #737

Description

@shangxinyu1

Summary

In Media providers, clicking Clear on a saved API key removes it immediately without any confirmation step.

This makes it too easy to accidentally delete provider credentials while managing image, video, or audio settings.

Current behavior

  • A media provider already has a saved API key.
  • The user clicks Clear.
  • The saved key is cleared immediately.
  • No confirmation dialog or secondary confirmation step appears.
  • There is no safeguard against accidental credential deletion.

Expected behavior

Clearing a saved media-provider API key should require explicit confirmation.

Suggested improvements:

  • Show a confirmation dialog before removing a saved API key.
  • Make the action clearly destructive in the confirmation copy.
  • Provide a cancel path before the key is deleted.
  • Optionally use a secondary action such as Confirm clear instead of immediate removal.

Steps to reproduce

  1. Open Settings.
  2. Go to Media providers.
  3. Find a provider with a saved API key.
  4. Click Clear.
  5. Observe that the key is removed immediately without confirmation.

Notes

A screenshot is attached showing the Media providers settings page with multiple provider rows and Clear actions available next to API key fields.

Why this matters

API key deletion is a destructive action. Without confirmation, users can accidentally remove a working credential and interrupt media generation workflows. A confirmation step would make the settings experience safer and more trustworthy.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions