diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 9b4819267..d94ea9111 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -72,9 +72,12 @@ "governance": "AI 治理", "awooop": "AwoooP", "awooopHome": "AwoooP 總覽", + "awooopWarRoom": "AI SRE 戰情室", "awooopWorkbench": "AwoooP 操作台", "codeReview": "程式碼審查", "knowledgeAutomation": "知識與自動化", + "observabilityCommandCenter": "全域可觀測", + "assetInventory": "資產與產品", "governanceSecurity": "治理與安全", "workItems": "工作鏈路", "runMonitor": "Run 監控", @@ -3063,6 +3066,7 @@ }, "governance": { "title": "AI 治理中樞", + "sectionVisible": "同頁可見", "complianceBadge": { "label": "AI 治理中樞", "loading": "載入中...", @@ -3076,7 +3080,7 @@ "agentMarket": "Agent 市場", "automationInventory": "自動化盤點" }, - "comingSoon": "本 Tab 即將上線", + "comingSoon": "本區塊即將上線", "slo": { "kpi": { "autonomy_rate": "自主化率", diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index 9b4819267..d94ea9111 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -72,9 +72,12 @@ "governance": "AI 治理", "awooop": "AwoooP", "awooopHome": "AwoooP 總覽", + "awooopWarRoom": "AI SRE 戰情室", "awooopWorkbench": "AwoooP 操作台", "codeReview": "程式碼審查", "knowledgeAutomation": "知識與自動化", + "observabilityCommandCenter": "全域可觀測", + "assetInventory": "資產與產品", "governanceSecurity": "治理與安全", "workItems": "工作鏈路", "runMonitor": "Run 監控", @@ -3063,6 +3066,7 @@ }, "governance": { "title": "AI 治理中樞", + "sectionVisible": "同頁可見", "complianceBadge": { "label": "AI 治理中樞", "loading": "載入中...", @@ -3076,7 +3080,7 @@ "agentMarket": "Agent 市場", "automationInventory": "自動化盤點" }, - "comingSoon": "本 Tab 即將上線", + "comingSoon": "本區塊即將上線", "slo": { "kpi": { "autonomy_rate": "自主化率", diff --git a/apps/web/src/app/[locale]/governance/page.tsx b/apps/web/src/app/[locale]/governance/page.tsx index 6706a8b24..4a07bdcd6 100644 --- a/apps/web/src/app/[locale]/governance/page.tsx +++ b/apps/web/src/app/[locale]/governance/page.tsx @@ -3,8 +3,8 @@ /** * GovernancePage — AI 治理中樞 (/governance) * ============================================ - * PR 2: 頁面骨架 + Sidebar 入口 + 三 Tab 空殼 - * PR 3-5 將填入 SLO / 治理事件 / AI 待辦 真實內容 + * D1K: 將原本隱藏在 tab query 裡的治理區塊改為同頁 sections。 + * 舊 ?tab= deep link 只作焦點排序,不再隱藏其他治理內容。 * * 設計方向: Nothing.tech × Anthropic Warmth * - ComplianceBadge 橫幅作為頁面頂部的治理狀態信號 @@ -49,6 +49,12 @@ export default function GovernancePage({ ] const requestedTab = Array.isArray(searchParams?.tab) ? searchParams?.tab[0] : searchParams?.tab const activeSection = governanceSections.find(section => section.id === requestedTab) ?? governanceSections[0] + const orderedSections = activeSection + ? [ + activeSection, + ...governanceSections.filter(section => section.id !== activeSection.id), + ] + : governanceSections return ( @@ -71,7 +77,7 @@ export default function GovernancePage({ return ( - {activeSection.content} +
+ {orderedSections.map((section) => { + const Icon = section.Icon + return ( +
+
+
+ + +
+

{section.label}

+

{section.order}

+
+
+ + {t('sectionVisible')} + +
+ {section.content} +
+ ) + })} +
) } diff --git a/apps/web/src/components/layout/sidebar.tsx b/apps/web/src/components/layout/sidebar.tsx index 231068ea6..d5b7d8208 100644 --- a/apps/web/src/components/layout/sidebar.tsx +++ b/apps/web/src/components/layout/sidebar.tsx @@ -9,10 +9,10 @@ * - 無陰影 * - 單色圖示 * - * IA v2 (2026-06-04): - * - 頂層按照 operator 工作流排序,不按照技術模組排序。 - * - AwoooP / Runs / Work Items / Approvals / Alerts 直接成為全域入口。 - * - 頁內 tabs 只保留同一頁的視角切換,避免把任務入口藏在第二層。 + * IA D0 (2026-06-27): + * - 側欄只放高頻 primary 工作台。 + * - Runs / Approvals / Contracts 等流程細節保留深連結,不再攤平成主導航。 + * - 頁面內以同頁 sections 呈現關鍵狀態,減少二層分頁藏內容。 * * Phase 19: 使用 Z_INDEX.SIDEBAR (40) * @see lib/constants/z-index.ts @@ -125,7 +125,11 @@ export function Sidebar({ {/* 導航列表 - Operator workflow sections */}