diff --git a/src/frontend/routes/dev.tsx b/src/frontend/routes/dev.tsx index 84f6af5..944cd99 100644 --- a/src/frontend/routes/dev.tsx +++ b/src/frontend/routes/dev.tsx @@ -9,6 +9,7 @@ import { Card, Center, Container, + Divider, Group, Loader, Menu, @@ -77,7 +78,7 @@ import { notifications } from '@mantine/notifications' import { type Role, useLogout, useSession } from '@/frontend/hooks/useAuth' import { usePresence } from '@/frontend/hooks/usePresence' -const validTabs = ['overview', 'operators', 'bugs', 'app-logs', 'activity-logs', 'database', 'project', 'api-keys', 'settings'] as const +const validTabs = ['overview', 'operators', 'bugs', 'app-logs', 'activity-logs', 'database', 'project', 'settings', 'api-keys'] as const export const Route = createFileRoute('/dev')({ validateSearch: (search: Record) => ({ @@ -117,8 +118,9 @@ const navItems = [ // { label: 'Activity Logs', icon: TbActivity, key: 'activity-logs' }, { label: 'Database', icon: TbDatabase, key: 'database' }, { label: 'Project', icon: TbSitemap, key: 'project' }, - { label: 'API Keys', icon: TbKey, key: 'api-keys' }, - { label: 'Settings', icon: TbSettings, key: 'settings' }, + { label: 'App Config', icon: TbSettings, key: 'settings' }, + { divider: true, key: '__divider-external__' }, + { label: 'Desa Mandiri Keys', icon: TbKey, key: 'api-keys' }, ] function DevPage() { @@ -201,7 +203,8 @@ function DevPage() { {navItems.map((item) => { - const Icon = item.icon + if (item.divider) return + const Icon = item.icon! if (collapsed) { return ( @@ -1590,7 +1593,7 @@ function SettingsPanel() {
- Application Settings + App Config Manage the URL API and API Key for each application.
@@ -1798,8 +1801,8 @@ function ApiKeysPanel() {
- API Keys - Kelola API key untuk akses endpoint /api/ai/* + Desa Mandiri Keys + Manage access tokens for the Desa Mandiri system