From 13930a89e5f2df2317d9bb51b6497f58b6729f14 Mon Sep 17 00:00:00 2001 From: Dom <168790843+firestar5683@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:10:06 -0600 Subject: [PATCH] Share personality alert preference with Android Auto --- .../starpilot/galaxy/setting_descriptions.py | 2 +- .../galaxy/tests/test_projection_layout.mjs | 2 + .../galaxy/web/js/onroad-layout-template.js | 3 +- .../system/starport/projection_layout.py | 6 +- .../starport/tests/test_projection_layout.py | 13 ++++ .../tests/test_projection_layout_runtime.py | 6 +- .../ui/tests/test_appearance_settings.py | 59 +++++++++++++++++++ prebuilt.json | 2 +- 8 files changed, 83 insertions(+), 10 deletions(-) diff --git a/openpilot/starpilot/galaxy/setting_descriptions.py b/openpilot/starpilot/galaxy/setting_descriptions.py index a5dec080fe..dd60fa1f8c 100644 --- a/openpilot/starpilot/galaxy/setting_descriptions.py +++ b/openpilot/starpilot/galaxy/setting_descriptions.py @@ -100,7 +100,7 @@ DESCRIPTIONS = { 'DeveloperSidebar': 'Shows live developer metrics on the right of the Big driving screen. Off gives that space back to the road view.', 'DriverCamera': 'Shows the driver camera while reversing.', 'StockConfidenceBallWidget': 'Uses StarPilot driving widgets in place of the stock confidence ball.', - 'HidePersonalityAlerts': 'Hides the alert shown when the driving personality changes.', + 'HidePersonalityAlerts': 'Hides the alert shown when the driving personality changes on the comma and Android Auto.', 'ShowBrakeStatus': 'Colors the steering wheel to show braking and acceleration.', 'HideLeadMarker': 'Shows the lead-vehicle indicator on the driving screen.', 'LeadInfo': 'Shows the lead vehicle distance or speed beside its indicator.', diff --git a/openpilot/starpilot/galaxy/tests/test_projection_layout.mjs b/openpilot/starpilot/galaxy/tests/test_projection_layout.mjs index 44701f4797..94f334a39e 100644 --- a/openpilot/starpilot/galaxy/tests/test_projection_layout.mjs +++ b/openpilot/starpilot/galaxy/tests/test_projection_layout.mjs @@ -138,6 +138,8 @@ OnroadLayoutPage.methods.setProjectionLeadInfo.call(leadVm, "Both") assert.equal(leadVm.state.draft.leadInfo, "Speed") assert.equal(leadChanges.length, 2) assert.equal(validDocument({ ...native.document, signalBorder: true }, native.metadata), false, "the comma screen keeps its C4 settings") +assert.match(OnroadLayoutPage.template, /Personality alerts follow the comma screen setting\./) +assert.doesNotMatch(OnroadLayoutPage.template, /setProjectionDisplay\('hidePersonalityAlerts', value\)/) assert.match(OnroadLayoutPage.template, /Red Blind-Spot Border/) assert.match(OnroadLayoutPage.template, /Amber Signal Border/) const borderChanges = [] diff --git a/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js b/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js index f2949838ef..6e4a25b6fc 100644 --- a/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js +++ b/openpilot/starpilot/galaxy/web/js/onroad-layout-template.js @@ -355,8 +355,7 @@ export const ONROAD_LAYOUT_TEMPLATE = `
Only the StarPort screen uses these. The comma screen has its own options on the Comma tab. Save to apply.
Personality alerts follow the comma screen setting.