From dbda2d7d7cd8529ed94279f4c49220b13700ab5f Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 14 Nov 2026 10:59:10 +0100 Subject: [PATCH] chore(client): lower the size, theme and knip baselines the mobile settings pass shrank --- client/scripts/size-baseline.json | 2 +- client/scripts/theme-baseline.json | 16 ++++++++-------- client/src/mobile/components/MSectionNav.tsx | 2 +- scripts/ci/knip-baseline.json | 1 - 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/client/scripts/size-baseline.json b/client/scripts/size-baseline.json index 0a2e6a704..9ba37f583 100644 --- a/client/scripts/size-baseline.json +++ b/client/scripts/size-baseline.json @@ -16,7 +16,7 @@ "src/components/Studio/TravelElements.tsx": 1559, "src/components/Studio/countryShapes.ts": 2595, "src/index.css": 1636, - "src/mobile/screens/admin/MAdminPluginsPanel.tsx": 1506, + "src/mobile/screens/admin/MAdminPluginsPanel.tsx": 1503, "src/pages/JourneyDetailPage.test.tsx": 4028, "src/pages/LoginPage.tsx": 1294, "src/pages/TripPlannerPage.tsx": 1128, diff --git a/client/scripts/theme-baseline.json b/client/scripts/theme-baseline.json index 5061ad14f..456d3fc64 100644 --- a/client/scripts/theme-baseline.json +++ b/client/scripts/theme-baseline.json @@ -148,9 +148,9 @@ "mobile/components/MToastHost.tsx": 2, "mobile/components/MUserPickerList.tsx": 1, "mobile/screens/admin/MAdmin.tsx": 8, - "mobile/screens/admin/MAdminAddonManager.tsx": 9, + "mobile/screens/admin/MAdminAddonManager.tsx": 4, "mobile/screens/admin/MAdminAuditLogPanel.tsx": 15, - "mobile/screens/admin/MAdminBackupPanel.tsx": 8, + "mobile/screens/admin/MAdminBackupPanel.tsx": 7, "mobile/screens/admin/MAdminCategoryManager.tsx": 8, "mobile/screens/admin/MAdminDefaultUserSettings.tsx": 5, "mobile/screens/admin/MAdminDevNotificationsPanel.tsx": 6, @@ -158,13 +158,13 @@ "mobile/screens/admin/MAdminMcpTokensPanel.tsx": 14, "mobile/screens/admin/MAdminNotifyMatrix.tsx": 5, "mobile/screens/admin/MAdminPackingTemplateManager.tsx": 8, - "mobile/screens/admin/MAdminPermissionsPanel.tsx": 5, - "mobile/screens/admin/MAdminPluginsPanel.tsx": 129, - "mobile/screens/admin/MAdminSettingsSection.tsx": 10, + "mobile/screens/admin/MAdminPermissionsPanel.tsx": 1, + "mobile/screens/admin/MAdminPluginsPanel.tsx": 128, + "mobile/screens/admin/MAdminSettingsSection.tsx": 9, "mobile/screens/admin/MAdminSheets.tsx": 11, "mobile/screens/admin/MAdminStoragePanel.tsx": 42, - "mobile/screens/admin/MAdminUi.tsx": 10, - "mobile/screens/admin/MAdminUsersSection.tsx": 14, + "mobile/screens/admin/MAdminUi.tsx": 7, + "mobile/screens/admin/MAdminUsersSection.tsx": 13, "mobile/screens/admin/MApiProviderBlocks.tsx": 10, "mobile/screens/atlas/MAtlas.tsx": 5, "mobile/screens/atlas/MAtlasBucketSheet.tsx": 14, @@ -212,7 +212,7 @@ "mobile/screens/settings/MSettingsNotifications.tsx": 5, "mobile/screens/settings/MSettingsOffline.tsx": 18, "mobile/screens/settings/MSettingsPlugins.tsx": 14, - "mobile/screens/settings/MSettingsUi.tsx": 11, + "mobile/screens/settings/MSettingsUi.tsx": 10, "mobile/screens/settings/MWebPushCard.tsx": 1, "mobile/screens/trip/MTripLoadingSplash.tsx": 2, "mobile/screens/trip/MTripShell.tsx": 7, diff --git a/client/src/mobile/components/MSectionNav.tsx b/client/src/mobile/components/MSectionNav.tsx index 66c9ace08..14eec1646 100644 --- a/client/src/mobile/components/MSectionNav.tsx +++ b/client/src/mobile/components/MSectionNav.tsx @@ -22,7 +22,7 @@ interface MSectionRowProps { } /** One section of a settings-like screen, in its dropdown or in the list beside the page. */ -export function MSectionRow({ section, active, current = false, onPick }: MSectionRowProps) { +function MSectionRow({ section, active, current = false, onPick }: MSectionRowProps) { return (