From ad1c970cdd316180607e6e8170ea50a6c84b67c8 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Mon, 14 Sep 2026 09:45:49 -0500 Subject: [PATCH] fix maps --- starpilot/system/the_galaxy/assets/mobile/js/app.js | 2 +- .../assets/mobile/js/components/NavigationDestinationPanel.js | 4 +--- .../system/the_galaxy/assets/mobile/js/views/Navigation.js | 2 +- starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py | 4 +++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/starpilot/system/the_galaxy/assets/mobile/js/app.js b/starpilot/system/the_galaxy/assets/mobile/js/app.js index 57fe0eab90..e246e00f7b 100644 --- a/starpilot/system/the_galaxy/assets/mobile/js/app.js +++ b/starpilot/system/the_galaxy/assets/mobile/js/app.js @@ -6,7 +6,7 @@ import { Tools } from "./views/Tools.js" import { Recordings } from "./views/Recordings.js" import { Logs } from "./views/Logs.js" import { Tuning } from "./views/Tuning.js" -import { Navigation } from "./views/Navigation.js" +import { Navigation } from "./views/Navigation.js?v=nav-destination-2" import { Vehicle } from "./views/Vehicle.js" import { Bluetooth } from "./views/Bluetooth.js" import { SystemTools } from "./views/SystemTools.js" diff --git a/starpilot/system/the_galaxy/assets/mobile/js/components/NavigationDestinationPanel.js b/starpilot/system/the_galaxy/assets/mobile/js/components/NavigationDestinationPanel.js index 29e3da518f..adb1a2c4e0 100644 --- a/starpilot/system/the_galaxy/assets/mobile/js/components/NavigationDestinationPanel.js +++ b/starpilot/system/the_galaxy/assets/mobile/js/components/NavigationDestinationPanel.js @@ -108,9 +108,6 @@ export const NavigationDestinationPanel = { }).slice(0, 10) }, }, - methods: { - secondaryLabel, - }, async mounted() { await this.load() }, @@ -123,6 +120,7 @@ export const NavigationDestinationPanel = { } }, methods: { + secondaryLabel, async load() { try { const [nav, favoritePayload] = await Promise.all([ diff --git a/starpilot/system/the_galaxy/assets/mobile/js/views/Navigation.js b/starpilot/system/the_galaxy/assets/mobile/js/views/Navigation.js index 5bf3f7f653..dbb37ff8e9 100644 --- a/starpilot/system/the_galaxy/assets/mobile/js/views/Navigation.js +++ b/starpilot/system/the_galaxy/assets/mobile/js/views/Navigation.js @@ -1,4 +1,4 @@ -import { NavigationDestinationPanel } from "../components/NavigationDestinationPanel.js" +import { NavigationDestinationPanel } from "../components/NavigationDestinationPanel.js?v=nav-destination-2" import { MapsPanel } from "../components/MapsPanel.js" import { NavigationKeysPanel } from "../components/NavigationKeysPanel.js" import { SpeedLimitsPanel } from "../components/SpeedLimitsPanel.js" diff --git a/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py b/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py index 8290b0bea1..a75b007264 100644 --- a/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py +++ b/starpilot/system/the_galaxy/tests/test_ui_vue_frontend.py @@ -477,10 +477,12 @@ def test_ui_all_remaining_classic_tools_native_no_embed(): assert "GalaxyEmbed" not in tuning and "LateralTuningPanel" in tuning assert _read("js/components/MapsPanel.js") and _read("js/components/NavigationKeysPanel.js") destination = _read("js/components/NavigationDestinationPanel.js") + assert '"./views/Navigation.js?v=nav-destination-2"' in _read("js/app.js") + assert '"../components/NavigationDestinationPanel.js?v=nav-destination-2"' in _read("js/views/Navigation.js") assert "mapboxSuggest" in destination and "mapboxRetrieve" in destination assert "mapboxGeocode" in destination and "mapboxDirections" in destination assert "ref=\"map\"" in destination and "setNavigation(this.destination)" in destination - assert "methods: {" in destination and "secondaryLabel," in destination + assert destination.count("methods: {") == 1 and "secondaryLabel," in destination assert _read("js/components/LateralTuningPanel.js") # Shared API surface added for the second batch of ported pages.