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
+3 -2
View File
@@ -11,6 +11,7 @@
options: "/options",
records: "/records",
stats: "/stats",
risk_policy: "/risk_policy",
settings: "/settings",
};
@@ -242,9 +243,9 @@
}
function syncShellChrome(tab) {
const onSettings = tab === "settings";
const hideTopBar = tab === "settings" || tab === "risk_policy";
document.querySelectorAll(".instance-top-bar").forEach((el) => {
el.hidden = onSettings;
el.hidden = hideTopBar;
});
}