feat: add Mine Map v1

This commit is contained in:
lussierj committed 2026-08-10 19:55:20 +00:00
1 parent 548051899e
commit 60a831950c
16 files changed
+2027 -163

No files matched your search

+12 -12
View File
@@ -138,25 +138,24 @@ class FrontendShellTests(unittest.TestCase):
self.assertIn("No events are fabricated", response.text)
self.assertNotIn("100 TH/s", response.text)
def test_map_is_a_structured_honest_placeholder(self):
def test_map_is_a_structured_operational_view(self):
self.authenticate()
response = self.client.get("/monitoring/map")
for label in (
"Site",
"Room",
"Rack",
"Status layer",
"Selection details",
"Operational Status",
"Miner details",
"Find miner",
):
self.assertIn(label, response.text)
self.assertIn(
"Live layout and telemetry data are not",
response.text,
)
self.assertIn(
"connected to this Internal Alpha canvas",
response.text,
)
for value in (
'id="mapSite"', 'id="mapRoom"', 'id="mapLayer"',
'id="mapViewport"', 'id="mapInspector"',
'/assets/minerops-mine-map.js',
):
self.assertIn(value, response.text)
self.assertNotIn("Live layout and telemetry data are not", response.text)
def test_data_views_include_all_request_states(self):
self.authenticate()
@@ -336,6 +335,7 @@ class FrontendShellTests(unittest.TestCase):
for path in (
"/assets/minerops-app.css",
"/assets/minerops-app.js",
"/assets/minerops-mine-map.js",
):
with self.subTest(path=path):
response = self.client.get(path)