Make hedge the default home and drop unused product-surface entries.

Put永期/期期对冲 first in nav, default embed tab to hedge_plan, and remove risk-policy/options-account UI instead of only hiding them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 18:51:57 +08:00
parent cfecbcfbb5
commit d40a0d25be
8 changed files with 49 additions and 61 deletions
+3 -3
View File
@@ -29,7 +29,7 @@ EMBED_TABS: tuple[str, ...] = (
)
PATH_TO_EMBED_TAB: dict[str, str] = {
"/": "trade",
"/": "hedge_plan",
"/trade": "trade",
"/dashboard": "dashboard",
"/account_ledger": "account_ledger",
@@ -183,9 +183,9 @@ def register_embed_routes(
@login_required
@app.route("/embed")
def embed_shell_page():
tab = (request.args.get("tab") or "trade").strip()
tab = (request.args.get("tab") or "hedge_plan").strip()
if tab not in EMBED_TABS:
tab = "trade"
tab = "hedge_plan"
session["hub_embed_shell"] = True
resp = make_response(render_main_page_fn(tab, embed_mode="shell"))
resp.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"