Split risk policy into its own navigation tab.

Move read-only risk control docs to /risk_policy before settings; keep transfers and exports on the settings page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 19:42:29 +08:00
parent fd6391b734
commit d84a265b67
14 changed files with 126 additions and 80 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ def embed_render_plan(page: str, embed_mode: str | None) -> EmbedRenderPlan:
)
is_shell = embed_mode == "shell"
is_strategy = page in EMBED_STRATEGY_PAGES
is_settings = page == "settings"
is_settings_like = page in ("settings", "risk_policy")
return EmbedRenderPlan(
exchange_capitals=is_shell,
records_rows=page == "records",
records_summary=is_shell and page != "records" and not is_settings,
records_summary=is_shell and page != "records" and not is_settings_like,
key_history=page == "key_monitor",
key_list=page in ("key_monitor", "trade") or is_strategy,
orders=page == "trade" or is_strategy,