feat: API key management UI in profile page #606
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/api-key-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add API key management UI to the profile settings page.
Changes
Style
Matches existing DiscoverySettingsSection.svelte patterns: card styling, loading skeleton, confirmation dialogs, error display with describeApiError.
- ApiCredential: rename description→name, isRevoked→revokedAt, add expiresAt - ApiCredentialCreated: flatten to {id, name, scopes, token, expiresAt} - createApiCredential: send {name, scopes} not {description, scopes} - Scope options: only media:upload, discovery:write (remove read/write/admin) - Revoke check: revokedAt !== null instead of isRevoked - Display: show name not description, show expiresAt not createdAt - Post-create: read result.token not result.key