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
+1 -1
View File
@@ -184,6 +184,6 @@ def build_instance_settings_view(
def settings_page_context(page: str, **kwargs: Any) -> dict[str, Any]:
if (page or "").strip() != "settings":
if (page or "").strip() not in ("settings", "risk_policy"):
return {}
return {"instance_settings": build_instance_settings_view(**kwargs)}