auto-sync: 2026-05-13 19:10:01
This commit is contained in:
112
tasks/enduro-trails/reports/full-test/EXTENDED_TESTS.json
Normal file
112
tasks/enduro-trails/reports/full-test/EXTENDED_TESTS.json
Normal file
@@ -0,0 +1,112 @@
|
||||
[
|
||||
{
|
||||
"tc": "TC-3.1",
|
||||
"status": "PASS",
|
||||
"detail": "bearing before=45.0 after=0.0"
|
||||
},
|
||||
{
|
||||
"tc": "TC-6.1",
|
||||
"status": "FAIL",
|
||||
"detail": "route sheet opens=false"
|
||||
},
|
||||
{
|
||||
"tc": "TC-10.1",
|
||||
"status": "PASS",
|
||||
"detail": "ruler active=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-10.2",
|
||||
"status": "PASS",
|
||||
"detail": "distance=0.01km"
|
||||
},
|
||||
{
|
||||
"tc": "TC-10.5",
|
||||
"status": "PASS",
|
||||
"detail": "cleared=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-7.1",
|
||||
"status": "PASS",
|
||||
"detail": "recon active=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-7.4",
|
||||
"status": "PASS",
|
||||
"detail": "recon cleared"
|
||||
},
|
||||
{
|
||||
"tc": "TC-8.1",
|
||||
"status": "PASS",
|
||||
"detail": "scenic active=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-8.4",
|
||||
"status": "PASS",
|
||||
"detail": "scenic cleared"
|
||||
},
|
||||
{
|
||||
"tc": "TC-9.1",
|
||||
"status": "PASS",
|
||||
"detail": "link active=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-9.4",
|
||||
"status": "PASS",
|
||||
"detail": "link cleared"
|
||||
},
|
||||
{
|
||||
"tc": "TC-11.1",
|
||||
"status": "PASS",
|
||||
"detail": "marker mode toggled"
|
||||
},
|
||||
{
|
||||
"tc": "TC-11.5",
|
||||
"status": "PASS",
|
||||
"detail": "markers in localStorage: 0"
|
||||
},
|
||||
{
|
||||
"tc": "TC-12.1",
|
||||
"status": "PASS",
|
||||
"detail": "search input exists=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-13.1",
|
||||
"status": "FAIL",
|
||||
"detail": "sheet opens"
|
||||
},
|
||||
{
|
||||
"tc": "TC-13.4",
|
||||
"status": "PASS",
|
||||
"detail": "open sheets=1"
|
||||
},
|
||||
{
|
||||
"tc": "TC-14.1",
|
||||
"status": "PASS",
|
||||
"detail": "route=false ruler=true"
|
||||
},
|
||||
{
|
||||
"tc": "TC-14.2",
|
||||
"status": "PASS",
|
||||
"detail": "ruler after toggle off=false"
|
||||
},
|
||||
{
|
||||
"tc": "TC-4.8",
|
||||
"status": "FAIL",
|
||||
"detail": "tri before=true after theme switch=false"
|
||||
},
|
||||
{
|
||||
"tc": "TC-2.2",
|
||||
"status": "PASS",
|
||||
"detail": "auto theme applied: theme-light"
|
||||
},
|
||||
{
|
||||
"tc": "TC-2.3",
|
||||
"status": "PASS",
|
||||
"detail": "style after dark: Enduro Trails Light"
|
||||
},
|
||||
{
|
||||
"tc": "TC-1.3",
|
||||
"status": "PASS",
|
||||
"detail": "hash=#10/56.3/43.5"
|
||||
}
|
||||
]
|
||||
29
tasks/enduro-trails/scripts/patch_rebuild.py
Normal file
29
tasks/enduro-trails/scripts/patch_rebuild.py
Normal file
@@ -0,0 +1,29 @@
|
||||
import sys
|
||||
|
||||
path = "/home/slin/enduro-trails/prototype/static/app.js"
|
||||
with open(path, 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
# Add restoreTerrainState and restoreTrailsState to rebuildMapOverlays
|
||||
old = """function rebuildMapOverlays() {
|
||||
// Re-apply recon circle if active
|
||||
if (reconMode && reconCenter) {"""
|
||||
|
||||
new = """function rebuildMapOverlays() {
|
||||
// Re-apply terrain and trails after style change
|
||||
restoreTerrainState();
|
||||
restoreTrailsState();
|
||||
|
||||
// Re-apply recon circle if active
|
||||
if (reconMode && reconCenter) {"""
|
||||
|
||||
if old not in content:
|
||||
print("ERROR: marker not found")
|
||||
sys.exit(1)
|
||||
|
||||
content = content.replace(old, new)
|
||||
|
||||
with open(path, 'w') as f:
|
||||
f.write(content)
|
||||
|
||||
print("OK - rebuildMapOverlays patched")
|
||||
Reference in New Issue
Block a user