From 258fdf24656f6fda03f284b9079bac0c71a1283b Mon Sep 17 00:00:00 2001 From: mapxn <16299874+mapxn@users.noreply.github.com> Date: Sat, 24 Oct 2026 08:58:20 +0800 Subject: [PATCH] feat(web): migrate 11 pages to Stage 2 design tokens (ONE-88 Stage 3) - Page headers adopt text-h1/bold/tracking-tight with muted subtitles (new i18n keys: links.titleDesc, analytics.titleDesc, settings.titleDesc, admin.{usersDesc,allLinksDesc,globalSettingsDesc}) - Typography ladder: text-sm/xs/2xl -> text-body/caption/micro/h*; CardTitle/CardDescription own the heading ladder (drop text-base overrides) - Whitespace: page containers -> space-y-6 rhythm; loading/empty states py-12 -> py-16; label->input gap space-y-1 -> space-y-2 - Tables: caption + tracking-caps uppercase headers, micro seq column, numeric click counts in font-mono semibold tabular-nums, tokenized hover transitions, rounded-lg card-backed containers - Analytics: charts use hsl(var(--chart-*)) tokens (dark-theme aware) instead of hardcoded hex; stat cards get caption/caps labels and h1 mono values - Raw selects restyled to match Input (h-10, shadow-xs, focus ring) - TwoFactor tabs and toggle chips use token durations/easings - dialog.tsx/card.tsx whitespace-only biome formatting fixes --- apps/web/src/components/setup-migrations.tsx | 10 +- apps/web/src/components/ui/card.tsx | 10 +- apps/web/src/components/ui/dialog.tsx | 5 +- apps/web/src/i18n/locales/en.ts | 6 + apps/web/src/i18n/locales/zh-CN.ts | 6 + apps/web/src/pages/SetupPage.tsx | 22 ++-- apps/web/src/pages/admin/AdminLinksPage.tsx | 51 +++++---- .../web/src/pages/admin/AdminSettingsPage.tsx | 81 +++++++------- apps/web/src/pages/admin/AdminUsersPage.tsx | 67 +++++------ .../web/src/pages/auth/ForgotPasswordPage.tsx | 30 ++--- apps/web/src/pages/auth/LoginPage.tsx | 12 +- apps/web/src/pages/auth/RegisterPage.tsx | 32 +++--- apps/web/src/pages/auth/TwoFactorPage.tsx | 8 +- .../web/src/pages/dashboard/AnalyticsPage.tsx | 104 +++++++++--------- apps/web/src/pages/dashboard/LinksPage.tsx | 75 +++++++------ apps/web/src/pages/dashboard/SettingsPage.tsx | 67 +++++------ 16 files changed, 315 insertions(+), 271 deletions(-) diff --git a/apps/web/src/components/setup-migrations.tsx b/apps/web/src/components/setup-migrations.tsx index 52079bb..e4305db 100644 --- a/apps/web/src/components/setup-migrations.tsx +++ b/apps/web/src/components/setup-migrations.tsx @@ -16,7 +16,9 @@ export function SetupMigrationsResult({ if (migrations.length === 0) { return ( -
{t('setup.noMigrations')}
++ {t('setup.noMigrations')} +
); } @@ -25,13 +27,15 @@ export function SetupMigrationsResult({ {migrations.map((m) => ({m.error}
++ {m.error} +
)}{t('common.loading')}
++ {t('common.loading')} +
) : stateError ? ( -+
{formatSetupError(stateError, t)}
) : !enabled ? ( -{t('setup.disabledTitle')}
-+
{t('setup.disabledTitle')}
+{t('setup.disabledDesc')}