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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user