From 90f3aa0c11c54827140e9fdd391b022d74870e61 Mon Sep 17 00:00:00 2001 From: Jarvis Jr Hermes Date: Thu, 3 Sep 2026 19:24:34 +0000 Subject: [PATCH] [verified] ui: reorder top-level navigation --- docusaurus.config.ts | 4 ++-- scripts/verify-portal.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 6e2364a..f2bc628 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -63,12 +63,12 @@ const config: Config = { navbar: { title: 'CORP V1 / BOARD', items: [ + {type: 'docSidebar', sidebarId: 'boardSidebar', docsPluginId: 'board', label: 'Board', position: 'left'}, {type: 'docSidebar', sidebarId: 'projectsSidebar', docsPluginId: 'projects', label: 'Projects', position: 'left'}, - {type: 'docSidebar', sidebarId: 'waysOfWorkingSidebar', docsPluginId: 'ways-of-working', label: 'Ways of Working', position: 'left'}, {type: 'docSidebar', sidebarId: 'teamsSidebar', docsPluginId: 'teams', label: 'Teams', position: 'left'}, {type: 'docSidebar', sidebarId: 'membersSidebar', docsPluginId: 'members', label: 'Members', position: 'left'}, - {type: 'docSidebar', sidebarId: 'boardSidebar', docsPluginId: 'board', label: 'Board', position: 'left'}, {type: 'docSidebar', sidebarId: 'governanceSidebar', docsPluginId: 'governance', label: 'Governance', position: 'left'}, + {type: 'docSidebar', sidebarId: 'waysOfWorkingSidebar', docsPluginId: 'ways-of-working', label: 'Ways of Working', position: 'left'}, {type: 'docSidebar', sidebarId: 'architectureHighLevelSidebar', docsPluginId: 'architecture-high-level', label: 'Architecture', position: 'left'}, {href: 'https://gitea.lego-cloud.eu/corp-v1/portal', label: 'Gitea ↗', position: 'right'}, ], diff --git a/scripts/verify-portal.mjs b/scripts/verify-portal.mjs index b403e68..ffd1641 100644 --- a/scripts/verify-portal.mjs +++ b/scripts/verify-portal.mjs @@ -32,10 +32,10 @@ assert.match(config, /label:\s*'Architecture'/, 'Architecture navbar label is mi assert.doesNotMatch(config, /label:\s*'Architecture High Level'/, 'legacy Architecture High Level menu label must not remain'); assert.ok(existsSync(join(root, 'sidebars/architecture-high-level.ts')), 'Architecture High Level sidebar file is missing'); -const expectedLeftNavLabels = ['Projects', 'Ways of Working', 'Teams', 'Members', 'Board', 'Governance', 'Architecture']; +const expectedLeftNavLabels = ['Board', 'Projects', 'Teams', 'Members', 'Governance', 'Ways of Working', 'Architecture']; const leftNavLabels = [...config.matchAll(/\{type:\s*'docSidebar',[^\n]+label:\s*'([^']+)',\s*position:\s*'left'\}/g)] .map((match) => match[1]); -assert.deepEqual(leftNavLabels, expectedLeftNavLabels, 'Architecture must be the final left-side menu item'); +assert.deepEqual(leftNavLabels, expectedLeftNavLabels, 'Top-level navigation must follow the approved Board-first order'); const waysOfWorkingSidebar = read('sidebars/ways-of-working.ts'); assert.match(waysOfWorkingSidebar, /link:\s*\{type:\s*'doc',\s*id:\s*'index'\}/, 'Ways of Working must link to its entry page');