refactor: rename /telegram-bots route to /bots

Frontend route renamed from /telegram-bots to /bots. All nav links,
CrossLinks, SearchPalette hrefs updated. API endpoints remain as
/api/telegram-bots, /api/email-bots, /api/matrix-bots (backend unchanged).
This commit is contained in:
2026-03-22 01:31:30 +03:00
parent f64ada500d
commit b525e3e7f4
5 changed files with 16 additions and 16 deletions
+5 -5
View File
@@ -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) {