"""US-035: tracker web dashboard — served from any tracker, embedded asset.""" import json import time import urllib.request from meshnet_contracts import LocalSolanaContracts from meshnet_tracker.accounts import AccountStore from meshnet_tracker.billing import BillingLedger from meshnet_tracker.server import TrackerServer PANELS = [ "Tracker hive", "Nodes & coverage", "Client balances", "Node pending payouts", "Settlement history", "Strikes / bans / forfeitures", "Model usage", "Call wall", "Request history", "node throughput", "Chat / inference", "Console output", ] def test_dashboard_served_with_all_panels(): tracker = TrackerServer(billing=BillingLedger()) port = tracker.start() try: html = urllib.request.urlopen( f"http://127.0.0.1:{port}/dashboard" ).read().decode() for panel in PANELS: assert panel in html assert "