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:
@@ -20,7 +20,7 @@ DEFAULT_INSTANCE_DISPLAY: dict[str, bool] = {
|
||||
"show_nav_risk_policy": False, # 本仓对冲不需要风控说明页
|
||||
"show_nav_system_guide": False,
|
||||
"show_nav_env_config": True,
|
||||
"show_nav_options": True,
|
||||
"show_nav_options": False, # 本仓不装单独期权页
|
||||
"show_nav_options_review": True,
|
||||
"show_nav_hedge_plan": True,
|
||||
"show_settings_transfer": False, # CoinOX 不需要永续自动划转
|
||||
@@ -87,6 +87,7 @@ def normalize_display_prefs(raw: dict | None) -> dict[str, bool]:
|
||||
out["show_nav_strategy_records"] = False
|
||||
out["show_nav_system_guide"] = False
|
||||
out["show_nav_risk_policy"] = False
|
||||
out["show_nav_options"] = False
|
||||
out["show_settings_options_swap"] = False
|
||||
out["show_settings_transfer"] = False
|
||||
# 本仓不装单独期权 UI:系统设置不展示期权划转/兑换(避免缺模板/缺 API 500)
|
||||
@@ -133,10 +134,10 @@ def tab_allowed(tab: str, display: Optional[dict[str, bool]] = None) -> bool:
|
||||
|
||||
|
||||
def display_meta_for_ui() -> list[dict[str, Any]]:
|
||||
# CoinOX 顶栏仅保留对冲相关入口
|
||||
# CoinOX 顶栏:对冲优先
|
||||
nav_keys = [
|
||||
"show_nav_options_review",
|
||||
"show_nav_hedge_plan",
|
||||
"show_nav_options_review",
|
||||
"show_nav_env_config",
|
||||
]
|
||||
settings_keys = [
|
||||
|
||||
Reference in New Issue
Block a user