refactor(aprs,gps): use MapUtils.init + HUD panels on APRS and GPS maps

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-04-13 23:12:46 +01:00
parent f6adc0e063
commit ee256f640e
2 changed files with 44 additions and 93 deletions
+11
View File
@@ -51,3 +51,14 @@ def test_satellite_dashboard_includes_map_utils(client):
html = resp.data.decode()
assert "map-utils.js" in html
assert "MapUtils.init" in html
def test_index_includes_map_utils(client):
"""Main SPA index.html loads map-utils.js and uses it for APRS and GPS maps."""
with client.session_transaction() as sess:
sess["logged_in"] = True
resp = client.get("/")
assert resp.status_code == 200
html = resp.data.decode()
assert "map-utils.js" in html
assert "MapUtils.init" in html