diff --git a/frontend/src/lib/components/SearchPalette.svelte b/frontend/src/lib/components/SearchPalette.svelte index fb28034..d066d56 100644 --- a/frontend/src/lib/components/SearchPalette.svelte +++ b/frontend/src/lib/components/SearchPalette.svelte @@ -51,11 +51,11 @@ mapFn: (e: any) => ({ detail: e.provider_type, icon: e.icon || 'mdiFileDocumentEdit' }) }, { key: 'targets', label: 'nav.targets', icon: 'mdiTarget', href: '/targets', mapFn: (e: any) => ({ detail: e.type, icon: e.icon || 'mdiTarget' }) }, - { key: 'telegram_bots', label: 'nav.telegram', icon: 'mdiSendCircle', href: '/telegram-bots', + { key: 'telegram_bots', label: 'nav.telegram', icon: 'mdiSendCircle', href: '/bots', mapFn: (e: any) => ({ detail: `@${e.bot_username || ''}`, icon: e.icon || 'mdiRobot' }) }, - { key: 'email_bots', label: 'nav.email', icon: 'mdiEmailOutline', href: '/telegram-bots?tab=email', + { key: 'email_bots', label: 'nav.email', icon: 'mdiEmailOutline', href: '/bots?tab=email', mapFn: (e: any) => ({ detail: e.email || '', icon: e.icon || 'mdiEmailOutline' }) }, - { key: 'matrix_bots', label: 'nav.matrix', icon: 'mdiMatrix', href: '/telegram-bots?tab=matrix', + { key: 'matrix_bots', label: 'nav.matrix', icon: 'mdiMatrix', href: '/bots?tab=matrix', mapFn: (e: any) => ({ detail: e.display_name || '', icon: e.icon || 'mdiMatrix' }) }, { key: 'command_trackers', label: 'nav.commandTrackers', icon: 'mdiConsoleLine', href: '/command-trackers', mapFn: (e: any) => ({ detail: e.enabled ? 'enabled' : 'disabled', icon: e.icon || 'mdiConsoleLine' }) }, diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index fd90aa8..3e3e27b 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -83,9 +83,9 @@ { key: 'nav.bots', icon: 'mdiRobot', children: [ - { href: '/telegram-bots', key: 'nav.telegram', icon: 'mdiSendCircle', countKey: 'telegram_bots' }, - { href: '/telegram-bots?tab=email', key: 'nav.email', icon: 'mdiEmailOutline', countKey: 'email_bots' }, - { href: '/telegram-bots?tab=matrix', key: 'nav.matrix', icon: 'mdiMatrix', countKey: 'matrix_bots' }, + { href: '/bots', key: 'nav.telegram', icon: 'mdiSendCircle', countKey: 'telegram_bots' }, + { href: '/bots?tab=email', key: 'nav.email', icon: 'mdiEmailOutline', countKey: 'email_bots' }, + { href: '/bots?tab=matrix', key: 'nav.matrix', icon: 'mdiMatrix', countKey: 'matrix_bots' }, ], }, { @@ -139,7 +139,7 @@ { href: '/notification-trackers', key: 'nav.notification', icon: 'mdiBellOutline' }, { href: '/command-trackers', key: 'nav.commands', icon: 'mdiConsoleLine' }, { href: '/targets', key: 'nav.targets', icon: 'mdiTarget' }, - { href: '/telegram-bots', key: 'nav.bots', icon: 'mdiRobot' }, + { href: '/bots', key: 'nav.bots', icon: 'mdiRobot' }, ]); const isAuthPage = $derived( @@ -206,7 +206,7 @@ // Link has NO query params — only active if URL also has no // query params that a sibling link would claim - // (e.g. /telegram-bots is not active when URL is /telegram-bots?tab=matrix) + // (e.g. /bots is not active when URL is /bots?tab=matrix) if (page.url.searchParams.size > 0) { // Check if any sibling nav item matches with those params for (const entry of navEntries) { diff --git a/frontend/src/routes/telegram-bots/+page.svelte b/frontend/src/routes/bots/+page.svelte similarity index 100% rename from frontend/src/routes/telegram-bots/+page.svelte rename to frontend/src/routes/bots/+page.svelte diff --git a/frontend/src/routes/command-trackers/+page.svelte b/frontend/src/routes/command-trackers/+page.svelte index 2d1f0c5..f10f5b0 100644 --- a/frontend/src/routes/command-trackers/+page.svelte +++ b/frontend/src/routes/command-trackers/+page.svelte @@ -263,7 +263,7 @@
{t('telegramBot.noBots')} →
+{t('telegramBot.noBots')} →
{/if}{t('emailBot.noBots')} →
+{t('emailBot.noBots')} →
{/if}{t('matrixBot.noBots')} →
+{t('matrixBot.noBots')} →
{/if}