feat: API key management UI in profile page #606

Merged
chris merged 2 commits from feature/api-key-ui into main 2026-07-13 23:59:29 +02:00
Owner

Summary

Add API key management UI to the profile settings page.

Changes

  • api-keys.ts: Types + list/create/delete API functions (matches profile.ts pattern)
  • ApiKeyCreatedDialog.svelte: One-time modal showing raw token with copy button, warning that key won't be shown again
  • ApiKeySection.svelte: Full section with create form (description + 4 scope checkboxes), credential list with scopes as badges, revoke with inline "REVOKE" confirmation, loading skeleton, empty state
  • Profile page: Insert ApiKeySection between Identity card and People settings
  • Version bump: 1.03 → 1.04

Style

Matches existing DiscoverySettingsSection.svelte patterns: card styling, loading skeleton, confirmation dialogs, error display with describeApiError.

## Summary Add API key management UI to the profile settings page. ### Changes - **api-keys.ts**: Types + list/create/delete API functions (matches profile.ts pattern) - **ApiKeyCreatedDialog.svelte**: One-time modal showing raw token with copy button, warning that key won't be shown again - **ApiKeySection.svelte**: Full section with create form (description + 4 scope checkboxes), credential list with scopes as badges, revoke with inline "REVOKE" confirmation, loading skeleton, empty state - **Profile page**: Insert ApiKeySection between Identity card and People settings - **Version bump**: 1.03 → 1.04 ### Style Matches existing DiscoverySettingsSection.svelte patterns: card styling, loading skeleton, confirmation dialogs, error display with describeApiError.
feat: add API key management UI to profile page
All checks were successful
Build and Deploy / Detect changed services and test scopes (push) Successful in 5s
Build and Deploy / Run scoped PR tests (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
3af56bb5fd
- api-keys.ts: types + list/create/delete API functions
- ApiKeyCreatedDialog: one-time modal with raw token copy
- ApiKeySection: create form, credential list, revoke with inline confirm
- Profile page: insert ApiKeySection between Identity and People settings
- Bump version to 1.04
fix: align API key UI with backend contract
Some checks failed
Build and Deploy / Detect changed services and test scopes (push) Successful in 9s
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Failing after 13m15s
0faa58823f
- 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
chris merged commit b16c4e2bab into main 2026-07-13 23:59:29 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!606
No description provided.