From cadfe4f5f52f0b884dadc1b653cdee87710d29a3 Mon Sep 17 00:00:00 2001 From: lzt404 <2596933790@qq.com> Date: Thu, 1 Oct 2026 15:24:23 +0800 Subject: [PATCH] Align page surfaces and simplify the top-level chrome Use the home page background across pages, remove redundant titles, and match the usage records tabs and filters to the shared controls. Move the API refresh and add actions beside search, and drop the standalone provider total. --- src/pages/AgentsPage.tsx | 6 +- src/pages/ApiAccessPage.tsx | 35 ++- src/pages/AuthFileManagementPage.tsx | 3 - src/pages/ConfigPanel.tsx | 3 - src/pages/Kernel.tsx | 3 - src/pages/ManagementPages.tsx | 1 - src/pages/QuotaPage.tsx | 1 - src/pages/ThinkingAliasesPage.tsx | 5 - src/pages/UsageRecordsPage.tsx | 11 +- src/pages/VersionManagementPage.tsx | 3 - src/styles.css | 3 +- src/styles/ui-refinements.css | 335 ++++++++++++++++++--------- 12 files changed, 237 insertions(+), 172 deletions(-) diff --git a/src/pages/AgentsPage.tsx b/src/pages/AgentsPage.tsx index 503d2e6..95e1a58 100644 --- a/src/pages/AgentsPage.tsx +++ b/src/pages/AgentsPage.tsx @@ -2026,11 +2026,7 @@ export function AgentsPage({ embedded = false, onConfigurationApplied }: AgentsP

{t('agents.embedded.title')}

{t('agents.embedded.subtitle')}

- ) : ( - <> -

{t('agents.title')}

- - )} + ) : null}
{detectionError ? ( diff --git a/src/pages/ApiAccessPage.tsx b/src/pages/ApiAccessPage.tsx index 55cb6c1..c65bdaf 100644 --- a/src/pages/ApiAccessPage.tsx +++ b/src/pages/ApiAccessPage.tsx @@ -1402,8 +1402,6 @@ export function ApiAccessPage() { void reorderProviders(source, target); }; - const totalCount = Object.values(records).reduce((sum, items) => sum + items.length, 0); - const countForDefinition = (definition: ProviderDefinition) => records[definition.section].filter((record) => providerCategoryMatchesRecord(definition.id, record, definition.section) @@ -1412,23 +1410,6 @@ export function ApiAccessPage() { return (
{confirmationDialog} -
-
-

{t('apiAccess.title')}

-
-
- {t('apiAccess.count', { count: totalCount })} - - -
-
- {error ? setError('')} /> : null}
-
-
diff --git a/src/pages/AuthFileManagementPage.tsx b/src/pages/AuthFileManagementPage.tsx index 50c4d08..3fc9caf 100644 --- a/src/pages/AuthFileManagementPage.tsx +++ b/src/pages/AuthFileManagementPage.tsx @@ -374,9 +374,6 @@ export function AuthFileManagementPage() {
{confirmationDialog}
-
-

{t('authFiles.title')}

-
{t('authFiles.summary', { files: files.length, disabled: disabledCount })}