fix(settings): save the API key directly, with feedback at the field#11
Open
chris2k20 wants to merge 2 commits into
Open
fix(settings): save the API key directly, with feedback at the field#11chris2k20 wants to merge 2 commits into
chris2k20 wants to merge 2 commits into
Conversation
…save button Every saveErrorText message was about the OpenAI API key (empty key, save failure, clipboard paste validation), but it rendered far down next to the Save button. Clicking 'Einfuegen' next to the key field surfaced the 'clipboard has no plausible key' error well below the fold, where users miss it. Renamed to apiKeyErrorText and moved the display directly beneath the key field. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…edback Removes the hidden bottom Save button. The key now persists Apple-style the moment you press Enter, leave the field, or use Einfuegen, with an inline 'Gespeichert' confirmation. Adds format validation and a direct link to create an OpenAI API key. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was dieser PR macht
Behebt zwei zusammenhängende UX-Probleme bei der OpenAI-API-Key-Eingabe in den Einstellungen.
1. Fehlermeldungen erscheinen jetzt am Feld, nicht am Speichern-Button.
Bisher landete jede key-bezogene Meldung (leerer Key, Speicherfehler, Zwischenablage-Validierung) ganz unten neben dem Speichern-Button. Wer oben „Einfuegen" klickte, sah den Fehler weit außerhalb des Sichtfelds.
saveErrorText→apiKeyErrorText, direkt unter dem Feld gerendert.2. Der Key wird direkt gespeichert — kein versteckter Speichern-Button mehr.
Der bisherige Speichern-Button ganz unten war leicht zu übersehen; Nutzer dachten, der eingefügte Key sei gespeichert, war er aber nicht. Jetzt Apple-typisch:
sk-…) mit klarer MeldungGetestet
macOS 26 (Apple Silicon), SPM-Build. Eingabe + Enter, Focus-Loss, Einfügen, ungültiges Format und „Aendern" durchgespielt.
🤖 Generated with Claude Code