All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 3m24s
Bug UAT bro screenshot 2026-05-22: eoffice sidebar group "DANH MỤC" expand chỉ thấy "Danh mục chi tiết" (Catalogs sub-group), 3 leaf Suppliers/Projects/ Departments + 4 sub-catalog leaves KHÔNG render. Root cause: fe-user/src/components/Layout.tsx:238 `MenuLeaf` component `if (!path) return null` → silent drop khi resolvePath(key) trả null. Implementer Chunk B (06a441c) thêm Routes vào App.tsx + 4 page + menuKeys.ts NHƯNG QUÊN mirror staticMap resolvePath (line 55-94) — fe-admin có sẵn 7 entries nhưng fe-user chỉ có 7 entries Dashboard/Contracts/PE/Budget. Fix: thêm 7 entries vào fe-user staticMap mirror fe-admin EXACT route: - 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' Verify: - npm run build PASS 9.68s 0 TS err - BE /api/menus/me admin token return CORRECT tree (Master + 4 children + Catalogs sub-tree 4 children) — verified curl pre-fix - Permissions OK: Admin 9/9 CRUD + CatalogManager 9/9 CRUD (verified sqlcmd) - fe-admin parity already correct (Layout.tsx:33-47 staticMap có 7 entries từ trước Plan CA) Pattern reusable: Khi Implementer Case 2 cookie-cutter mirror page move cross-app, MUST also mirror Layout.tsx resolvePath staticMap entries — KHÔNG chỉ Routes + menuKeys.ts. Gotcha discovery thêm vào MEMORY post-deploy. Plan CA chain (6 commits cumulative): - A80d39a0BE Role + Seed - B06a441cFE move 4 master pages (missed resolvePath mirror) - Cc995f42Sidebar filter 2 app - D4a592cfSeed demo user - D268bceddPassword ≥12 chars hotfix - HF1 (this) Mirror resolvePath staticMap 7 entries Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])