From d14a25f93ca95e4fe96fc339c4bf35ceec5bbe56 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 Jun 2026 19:39:45 +0800 Subject: [PATCH] fix(web): restore secondary navigation routes --- apps/web/src/components/layout/sidebar.tsx | 25 ++++++++--------- apps/web/src/lib/__tests__/product-ia.test.ts | 27 +++++++++++++++++++ apps/web/src/lib/navigation/product-ia.ts | 17 ++++++++++-- 3 files changed, 55 insertions(+), 14 deletions(-) create mode 100644 apps/web/src/lib/__tests__/product-ia.test.ts diff --git a/apps/web/src/components/layout/sidebar.tsx b/apps/web/src/components/layout/sidebar.tsx index d5b7d820..7383ae1f 100644 --- a/apps/web/src/components/layout/sidebar.tsx +++ b/apps/web/src/components/layout/sidebar.tsx @@ -10,9 +10,10 @@ * - 單色圖示 * * IA D0 (2026-06-27): - * - 側欄只放高頻 primary 工作台。 - * - Runs / Approvals / Contracts 等流程細節保留深連結,不再攤平成主導航。 - * - 頁面內以同頁 sections 呈現關鍵狀態,減少二層分頁藏內容。 + * - 側欄保留 primary 工作台與 secondary 深連結。 + * - Runs / Approvals / Contracts / Alerts 等流程細節以二級樣式顯示, + * 避免路由被移除後只剩隱藏連結。 + * - 頁面內仍以同頁 sections 呈現關鍵狀態,減少二層分頁藏內容。 * * Phase 19: 使用 Z_INDEX.SIDEBAR (40) * @see lib/constants/z-index.ts @@ -126,8 +127,7 @@ export function Sidebar({ {/* 導航列表 - Operator workflow sections */}