From 769e09865e4300f760a4e14a9c5fff253e9afdaa Mon Sep 17 00:00:00 2001 From: Stream Date: Wed, 13 May 2026 19:10:01 +0300 Subject: [PATCH] auto-sync: 2026-05-13 19:10:01 --- .../reports/full-test/EXTENDED_TESTS.json | 112 ++++++++++++++++++ tasks/enduro-trails/scripts/patch_rebuild.py | 29 +++++ 2 files changed, 141 insertions(+) create mode 100644 tasks/enduro-trails/reports/full-test/EXTENDED_TESTS.json create mode 100644 tasks/enduro-trails/scripts/patch_rebuild.py diff --git a/tasks/enduro-trails/reports/full-test/EXTENDED_TESTS.json b/tasks/enduro-trails/reports/full-test/EXTENDED_TESTS.json new file mode 100644 index 0000000..1edf8ad --- /dev/null +++ b/tasks/enduro-trails/reports/full-test/EXTENDED_TESTS.json @@ -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" + } +] \ No newline at end of file diff --git a/tasks/enduro-trails/scripts/patch_rebuild.py b/tasks/enduro-trails/scripts/patch_rebuild.py new file mode 100644 index 0000000..b8608a2 --- /dev/null +++ b/tasks/enduro-trails/scripts/patch_rebuild.py @@ -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")