refactor: system settings UI for consistent, compact layouts

Redesign the system settings interface to align with the rest of the console experience by using fixed header actions, removing redundant subtitles, respecting global content width, and standardizing responsive form layouts.

Introduce reusable settings layout primitives for forms, switch rows, grouped controls, nested control sections, title status indicators, and page action portals. Replace duplicated card-style switch markup with explicit compact components, improve nested switch readability, and reduce visual noise across authentication, billing, content, integrations, maintenance, models, and request-limit settings.

Also complete missing i18n translations, remove obsolete subtitle translation keys, refine i18n sync reporting, fix sidebar truncation for long labels, and verify the frontend with type checking and lint diagnostics.
This commit is contained in:
t0ng7u
2026-05-25 00:34:26 +08:00
parent 92a0959448
commit b08febaa3c
97 changed files with 2420 additions and 3032 deletions
+1 -10
View File
@@ -39,21 +39,15 @@ import {
const route = getRouteApi('/_authenticated/usage-logs/$section')
const TASK_LOG_SECTIONS = ['drawing', 'task'] as const
const SECTION_META: Record<
UsageLogsSectionId,
{ titleKey: string; descriptionKey: string }
> = {
const SECTION_META: Record<UsageLogsSectionId, { titleKey: string }> = {
common: {
titleKey: 'Common Logs',
descriptionKey: 'View and manage your API usage logs',
},
drawing: {
titleKey: 'Drawing Logs',
descriptionKey: 'View and manage your drawing logs',
},
task: {
titleKey: 'Task Logs',
descriptionKey: 'View and manage your task logs',
},
}
@@ -120,9 +114,6 @@ function UsageLogsContent() {
<SectionPageLayout.Title>
{t(pageMeta.titleKey)}
</SectionPageLayout.Title>
<SectionPageLayout.Description>
{t(pageMeta.descriptionKey)}
</SectionPageLayout.Description>
<SectionPageLayout.Content>
<div className='space-y-4'>
{showTaskSwitcher && (
@@ -25,19 +25,16 @@ const USAGE_LOGS_SECTIONS = [
{
id: 'common',
titleKey: 'Common Logs',
descriptionKey: 'View and manage your API usage logs',
build: () => null, // Content is rendered directly in the page component
},
{
id: 'drawing',
titleKey: 'Drawing Logs',
descriptionKey: 'View and manage your drawing logs',
build: () => null, // Content is rendered directly in the page component
},
{
id: 'task',
titleKey: 'Task Logs',
descriptionKey: 'View and manage your task logs',
build: () => null, // Content is rendered directly in the page component
},
] as const