console 頁面 profile 裁剪:CONSOLE_PROFILE=rag 企業產品樣(搜尋落地),未設=full mira 零影響 #48

Merged
Leo merged 1 commits from console-profile-trim into main 2026-07-13 11:15:01 +00:00

1 Commits

Author SHA1 Message Date
uncle6me-web 0204c21d1e console 頁面 profile 裁剪:CONSOLE_PROFILE=rag 企業產品樣(搜尋落地),未設=full 全套 mira 零影響
- types.ts:Bindings 加可選 CONSOLE_PROFILE(非機密、只影響 UI 組成,未設=full)
- console.ts:renderConsoleHtml 吃 profile;rag=側欄/底部 tab 只留 總庫搜尋/工作流/設定
  (切深色鈕保留),VIEWS/HOME 由 server 注入,落地頁=搜尋;隱藏頁 hash(#/cockpit
  #/creds #/inbox)路由 guard 改寫回 HOME,手打也進不去;登入頁「免登入看駕駛艙」
  連結與設定頁憑證管理入口同步裁掉
- console-dashboard.ts:profile=rag 時 /console/dashboard 302 → /console
  (選 302 不選 404:舊書籤落回產品頁不給死路)
- 只動 UI 組成與路由 guard,零 API/資料行為變動;登入/setup 流程不變
- tsc --noEmit exit 0

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 18:40:55 +08:00