feat(ai-settings): in-field Clear for API key (replaces useless eye) #6

Closed
Ghost wants to merge 2 commits from feat/ai-key-clear-in-place into develop

2 Commits

Author SHA1 Message Date
claude code agent 227
7446e074e9 docs: remove implemented api-key-field-clear backlog plan
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 05:05:34 +03:00
claude code agent 227
3299bde929 feat(ai-settings): replace useless API-key eye with in-field Clear
The API-key PasswordInput is a write-only buffer — the saved key never
loads back, so the built-in visibility toggle reveals nothing. When a key
is saved and the buffer is empty, render a red Clear (X) ActionIcon in the
field's rightSection (which suppresses the Mantine eye); while typing a new
key the default eye returns. Applied to all three AI endpoints (Chat,
Embeddings, Voice/STT). Handlers and payload logic unchanged.

Implements docs/backlog/api-key-field-clear-in-place-of-eye.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 05:05:34 +03:00