Add instance data dashboard (default off).
Read-only overview of live orders, key monitors, and strategy; show options/hedge only when present. Toggle via system settings nav prefs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,12 +15,19 @@ class TestInstanceDisplayPrefs(unittest.TestCase):
|
||||
prefs = normalize_display_prefs({})
|
||||
self.assertTrue(prefs["show_nav_env_config"])
|
||||
self.assertTrue(prefs["show_settings_password"])
|
||||
self.assertFalse(prefs["show_nav_dashboard"])
|
||||
|
||||
def test_tab_allowed_respects_prefs(self):
|
||||
prefs = normalize_display_prefs({"show_nav_stats": False})
|
||||
self.assertFalse(tab_allowed("stats", prefs))
|
||||
self.assertTrue(tab_allowed("trade", prefs))
|
||||
|
||||
def test_dashboard_nav_default_off(self):
|
||||
prefs = normalize_display_prefs({})
|
||||
self.assertFalse(tab_allowed("dashboard", prefs))
|
||||
on = normalize_display_prefs({"show_nav_dashboard": True})
|
||||
self.assertTrue(tab_allowed("dashboard", on))
|
||||
|
||||
|
||||
class TestEnvFileLib(unittest.TestCase):
|
||||
def test_upsert_and_read(self):
|
||||
|
||||
Reference in New Issue
Block a user