From 6abd45eeff29dadb2d0188f9c832111a1592b1c1 Mon Sep 17 00:00:00 2001 From: Algis Dumbris Date: Sun, 15 Mar 2026 19:42:36 +0200 Subject: [PATCH] fix: remove API Keys management section from Settings page API keys are managed via admin CLI, not the web UI. Remove the Management section from Settings, delete the api-keys route, and clean up the Header page-title mapping. Co-Authored-By: Claude Opus 4.6 (1M context) --- internal/web/dist/index.html | 22 +- web/src/lib/components/Header.svelte | 1 - web/src/routes/settings/+page.svelte | 23 - web/src/routes/settings/api-keys/+page.svelte | 397 ------------------ 4 files changed, 11 insertions(+), 432 deletions(-) delete mode 100644 web/src/routes/settings/api-keys/+page.svelte diff --git a/internal/web/dist/index.html b/internal/web/dist/index.html index b83c414..2bccb06 100644 --- a/internal/web/dist/index.html +++ b/internal/web/dist/index.html @@ -8,29 +8,29 @@ - - - - - - - - + + + + + + + +
- -
-
-
- - - - - -

API Keys

-
- -
- - - {#if createdKey} -
-
-
- - - - This key will only be shown once. Save it now. -
-
-
- -
-

API Key

-
- {createdKey.api_key} - -
-
- - -
-

MCP Config (for MCP clients)

-
{getMcpConfig(createdKey.api_key)}
-
- - -
-

Claude Code Config (add to ~/.claude/mcp.json)

-
{getClaudeConfig(createdKey.api_key)}
-
-
-
- -
-
- {/if} - - - {#if showCreate} -
-

Create New API Key

- {#if createError} -
{createError}
- {/if} -
-
- - -
- -
- - -
- -
-

Permissions

-
- - - -
-
- -
- - -
- - - -
- - -
- - -
-
- {/if} - - -
-
-

Your API Keys

-
- {#if loadingData} -
- {#each Array(3) as _} -
- {/each} -
- {:else if keys.length === 0} -
- - - -

No API keys yet. Create one to get started.

-
- {:else} -
- - - - - - - - - - - - - - {#each keys as key} - - - - - - - - - - {/each} - -
NamePrefixPermissionsChannelsExpiresCreatedActions
{key.name}{key.prefix ?? 'sb_...'} -
- {#if key.permissions?.read} - read - {/if} - {#if key.permissions?.write} - write - {/if} - {#if key.permissions?.admin} - admin - {/if} - {#if key.read_only} - RO - {/if} -
-
- {key.allowed_channels?.length ? key.allowed_channels.join(', ') : 'All'} - {formatDate(key.expires_at)}{formatDate(key.created_at)} - {#if confirmRevokeId === key.id} -
- - -
- {:else} - - {/if} -
-
- {/if} -
-