feat(default): reorganize system settings pricing UI

Refine the default system settings structure and model pricing editor so pricing configuration is easier to scan and edit.
This commit is contained in:
CaIon
2026-05-06 16:24:06 +08:00
parent 9acf5fecae
commit 0f9f094a48
62 changed files with 3655 additions and 2343 deletions
@@ -119,7 +119,7 @@ export function WorkspaceSwitcher({
// Only navigate, let useEffect synchronize workspace state based on new pathname
// This avoids race conditions and context loss issues
if (workspace.id === WORKSPACE_IDS.SYSTEM_SETTINGS) {
navigate({ to: '/system-settings/general' })
navigate({ to: '/system-settings/site' })
} else {
navigate({ to: '/dashboard' })
}
@@ -1,20 +1,20 @@
import { type TFunction } from 'i18next'
import {
Box,
CreditCard,
Layout,
Settings,
Shield,
ShieldAlert,
Layout,
Plug,
Box,
Wrench,
} from 'lucide-react'
import { getAuthSectionNavItems } from '@/features/system-settings/auth/section-registry.tsx'
import { getBillingSectionNavItems } from '@/features/system-settings/billing/section-registry.tsx'
import { getContentSectionNavItems } from '@/features/system-settings/content/section-registry.tsx'
import { getGeneralSectionNavItems } from '@/features/system-settings/general/section-registry.tsx'
import { getIntegrationsSectionNavItems } from '@/features/system-settings/integrations/section-registry.tsx'
import { getMaintenanceSectionNavItems } from '@/features/system-settings/maintenance/section-registry.tsx'
import { getModelsSectionNavItems } from '@/features/system-settings/models/section-registry.tsx'
import { getRequestLimitsSectionNavItems } from '@/features/system-settings/request-limits/section-registry.tsx'
import { getOperationsSectionNavItems } from '@/features/system-settings/operations/section-registry.tsx'
import { getSecuritySectionNavItems } from '@/features/system-settings/security/section-registry.tsx'
import { getSiteSectionNavItems } from '@/features/system-settings/site/section-registry.tsx'
import { type NavGroup } from '../types'
/**
@@ -30,9 +30,9 @@ export function getSystemSettingsNavGroups(t: TFunction): NavGroup[] {
title: t('System Administration'),
items: [
{
title: t('General'),
title: t('Site & Branding'),
icon: Settings,
items: getGeneralSectionNavItems(t),
items: getSiteSectionNavItems(t),
},
{
title: t('Authentication'),
@@ -40,29 +40,29 @@ export function getSystemSettingsNavGroups(t: TFunction): NavGroup[] {
items: getAuthSectionNavItems(t),
},
{
title: t('Request Limits'),
icon: ShieldAlert,
items: getRequestLimitsSectionNavItems(t),
title: t('Billing & Payment'),
icon: CreditCard,
items: getBillingSectionNavItems(t),
},
{
title: t('Content'),
icon: Layout,
items: getContentSectionNavItems(t),
},
{
title: t('Integrations'),
icon: Plug,
items: getIntegrationsSectionNavItems(t),
},
{
title: t('Models'),
title: t('Models & Routing'),
icon: Box,
items: getModelsSectionNavItems(t),
},
{
title: t('Maintenance'),
title: t('Security & Limits'),
icon: ShieldAlert,
items: getSecuritySectionNavItems(t),
},
{
title: t('Console Content'),
icon: Layout,
items: getContentSectionNavItems(t),
},
{
title: t('Operations'),
icon: Wrench,
items: getMaintenanceSectionNavItems(t),
items: getOperationsSectionNavItems(t),
},
],
},
+2 -2
View File
@@ -100,8 +100,8 @@ export function ProfileDropdown() {
<DropdownMenuItem
onClick={() =>
navigate({
to: '/system-settings/general',
search: { section: 'system-info' },
to: '/system-settings/site/$section',
params: { section: 'system-info' },
})
}
>