diff --git a/fe-user/src/components/Layout.tsx b/fe-user/src/components/Layout.tsx index 4abd94b..070c6f8 100644 --- a/fe-user/src/components/Layout.tsx +++ b/fe-user/src/components/Layout.tsx @@ -61,6 +61,18 @@ function resolvePath(key: string): string | null { Bg_List: '/budgets', Bg_Create: '/budgets/new', Bg_Pending: '/budgets?phase=Pending', + // [Plan CA Hotfix 1 S29 2026-05-22] 4 master + 4 catalog leaf moved từ + // fe-admin → fe-user. resolvePath PHẢI có route mapping nếu không + // MenuLeaf line 238 `if (!path) return null` → sidebar drop silent. + // Implementer Chunk B (06a441c) thêm Routes vào App.tsx + 4 page + + // menuKeys.ts nhưng quên mirror staticMap resolvePath → bug UAT bro. + Suppliers: '/master/suppliers', + Projects: '/master/projects', + Departments: '/master/departments', + CatalogUnits: '/master/catalogs/units', + CatalogMaterials: '/master/catalogs/materials', + CatalogServices: '/master/catalogs/services', + CatalogWorkItems: '/master/catalogs/work-items', } if (staticMap[key]) return staticMap[key]