From 419d32286aa5712c88bb61e382ae484442e15973 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 11 Nov 2026 00:05:54 -0600 Subject: [PATCH] Split guided setup styles below the source size limit --- .../tests/browser/developer-settings.cjs | 2 +- .../galaxy/tests/browser/layout-scenes.cjs | 2 +- .../tests/browser/navigation-compact.cjs | 4 +- .../tests/browser/navigation-preferences.cjs | 2 +- .../galaxy/tests/browser/settings-state.cjs | 2 +- .../galaxy/tests/browser/widget-layers.cjs | 2 +- openpilot/starpilot/galaxy/web/css/galaxy.css | 58 ------------------- openpilot/starpilot/galaxy/web/css/setup.css | 58 +++++++++++++++++++ openpilot/starpilot/galaxy/web/index.html | 1 + prebuilt.json | 2 +- 10 files changed, 67 insertions(+), 66 deletions(-) create mode 100644 openpilot/starpilot/galaxy/web/css/setup.css diff --git a/openpilot/starpilot/galaxy/tests/browser/developer-settings.cjs b/openpilot/starpilot/galaxy/tests/browser/developer-settings.cjs index c7208200ea..7946619664 100644 --- a/openpilot/starpilot/galaxy/tests/browser/developer-settings.cjs +++ b/openpilot/starpilot/galaxy/tests/browser/developer-settings.cjs @@ -10,7 +10,7 @@ const assert = require('node:assert/strict') let enabled = false, parked = true page.on('pageerror', error => errors.push(error.message)) await page.route('**/developer-settings-test', route => route.fulfill({ contentType: 'text/html', body: - '
' })) + '
' })) await page.route('**/api/**', route => { const path = new URL(route.request().url()).pathname let data diff --git a/openpilot/starpilot/galaxy/tests/browser/layout-scenes.cjs b/openpilot/starpilot/galaxy/tests/browser/layout-scenes.cjs index 3b85dbe76f..12ce4b25a2 100644 --- a/openpilot/starpilot/galaxy/tests/browser/layout-scenes.cjs +++ b/openpilot/starpilot/galaxy/tests/browser/layout-scenes.cjs @@ -37,7 +37,7 @@ print(json.dumps(dict(native=native,projection=projection))) } if (pathname.startsWith('/api/')) return route.fulfill({ json: pathname === '/api/starport/layout' ? fixtures.projection : fixtures.native }) if (pathname === '/') return route.fulfill({ contentType: 'text/html', body: ` - +
` }) diff --git a/openpilot/starpilot/galaxy/tests/browser/navigation-compact.cjs b/openpilot/starpilot/galaxy/tests/browser/navigation-compact.cjs index bd6b4e4d56..34d8d28b8e 100644 --- a/openpilot/starpilot/galaxy/tests/browser/navigation-compact.cjs +++ b/openpilot/starpilot/galaxy/tests/browser/navigation-compact.cjs @@ -34,9 +34,9 @@ const status = { enabled: true, hasKey: true, isMetric: true, status: 'noDestina if (pathname.startsWith('/api/')) return route.fulfill({ json: status }) if (pathname === '/' && new URL(request.url()).searchParams.has('shell')) return route.fulfill({ contentType: 'text/html', body: ` -
` }) +
` }) if (pathname === '/') return route.fulfill({ contentType: 'text/html', body: ` -
+
` }) diff --git a/openpilot/starpilot/galaxy/tests/browser/navigation-preferences.cjs b/openpilot/starpilot/galaxy/tests/browser/navigation-preferences.cjs index 986b966fb5..a5a97e16aa 100644 --- a/openpilot/starpilot/galaxy/tests/browser/navigation-preferences.cjs +++ b/openpilot/starpilot/galaxy/tests/browser/navigation-preferences.cjs @@ -25,7 +25,7 @@ const status = { enabled: true, hasKey: true, isMetric: true, status: 'noDestina } if (pathname.startsWith('/api/')) return route.fulfill({ json: status }) if (pathname === '/') return route.fulfill({ contentType: 'text/html', body: ` - +
` }) diff --git a/openpilot/starpilot/galaxy/tests/browser/settings-state.cjs b/openpilot/starpilot/galaxy/tests/browser/settings-state.cjs index 3d558406cc..203c09e9e1 100644 --- a/openpilot/starpilot/galaxy/tests/browser/settings-state.cjs +++ b/openpilot/starpilot/galaxy/tests/browser/settings-state.cjs @@ -9,7 +9,7 @@ const { execFileSync } = require('node:child_process') const errors = [] page.on('pageerror', error => errors.push(error.message)) await page.route('**/settings-state-test', route => route.fulfill({ contentType: 'text/html', body: - '
' })) + '
' })) await page.goto((process.env.GALAXY_URL || 'http://127.0.0.1:8765/') + 'settings-state-test') const pages = await page.evaluate(async () => { const vue = await import('./vendor/vue/vue.esm-browser.js') diff --git a/openpilot/starpilot/galaxy/tests/browser/widget-layers.cjs b/openpilot/starpilot/galaxy/tests/browser/widget-layers.cjs index 8a60e69bdf..3ed7e88cdc 100644 --- a/openpilot/starpilot/galaxy/tests/browser/widget-layers.cjs +++ b/openpilot/starpilot/galaxy/tests/browser/widget-layers.cjs @@ -24,7 +24,7 @@ const projection = JSON.parse(execFileSync(process.env.PYTHON || 'python3', ['-c if (pathname === '/' && new URL(route.request().url()).searchParams.has('shell')) return route.fulfill({contentType:'text/html', body: readFileSync(path.join(web, 'index.html'))}) if (pathname.startsWith('/api/')) return route.fulfill({json: pathname === '/api/starport/layout' ? projection : snapshot}) - if (pathname === '/') return route.fulfill({contentType:'text/html', body:`