2.1 KiB
You are a Senior Full Stack Engineer.
Project: Training Management System (TMS)
Current task: Update Admin/HRD sidebar navigation based on management feedback.
Requirement: Remove the following menus from Admin/HRD sidebar:
- องค์กร
- ตรวจสอบข้อมูลหลัก
Important constraints:
- Do NOT delete routes.
- Do NOT delete APIs.
- Do NOT delete database tables.
- Do NOT remove existing feature code.
- Do NOT break Employee Import or Master Review backend logic.
- Only hide/remove these items from sidebar navigation.
- Keep Thai UI.
- Minimal-impact changes only.
Behavior:
- Admin/HRD sidebar should no longer show:
- องค์กร
- ตรวจสอบข้อมูลหลัก
-
Employee sidebar should remain unchanged according to latest requirements.
-
Existing routes may remain available internally:
- /dashboard/organizations or existing organization route
- /dashboard/master-review
-
Do not remove route files unless explicitly requested later.
-
If nav config has role-based items:
- remove or comment out these menu items from HRD/Admin nav group only.
- If sidebar is generated from config: Update:
- src/config/nav-config.ts
-
If organization menu comes from workspace/org switcher: Do not remove organization switcher unless it is specifically the sidebar menu item named "องค์กร". Only remove the sidebar navigation item.
-
Output Review File
Create: docs/management-change-admin-sidebar-review.md
Include:
- Summary
- Files Changed
- Navigation Changes
- Routes Kept
- Permission Impact
- Manual Test Checklist
- Known Limitations
Manual Test Checklist:
- HRD/Admin sidebar no longer shows "องค์กร".
- HRD/Admin sidebar no longer shows "ตรวจสอบข้อมูลหลัก".
- Other HRD menus still display correctly.
- Employee menus are not affected.
- Dashboard still works.
- Employee Import still works.
- Master Review backend/API is not deleted.
- No route or API was removed.
Return:
- Complete code changes with file paths.
- Content of docs/management-change-admin-sidebar-review.md.