Skip to content

Fix dimmed copy icon for legacy API keys missing plaintext#546

Merged
neoneye merged 1 commit intomainfrom
fix/account-copy-button-v2
Apr 9, 2026
Merged

Fix dimmed copy icon for legacy API keys missing plaintext#546
neoneye merged 1 commit intomainfrom
fix/account-copy-button-v2

Conversation

@neoneye
Copy link
Copy Markdown
Member

@neoneye neoneye commented Apr 9, 2026

Summary

  • Keys created before the key_plaintext column migration have NULL plaintext — the copy button was completely hidden for these rows
  • Now shows a dimmed copy icon with tooltip "Rotate this key to enable copy" so the user understands why and knows how to fix it
  • Keys with stored plaintext continue to show the normal copy button

Root cause

The key_plaintext column was added via migration. Keys created before the migration have NULL and the plaintext can't be recovered. Rotating the key generates a new one with key_plaintext stored.

🤖 Generated with Claude Code

…egacy keys

Keys created before the key_plaintext column migration have NULL
plaintext. Show a dimmed copy icon with a tooltip explaining how
to fix it, instead of hiding the button entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@neoneye neoneye merged commit 6a4b9fc into main Apr 9, 2026
3 checks passed
@neoneye neoneye deleted the fix/account-copy-button-v2 branch April 9, 2026 23:48
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.

1 participant