85 lines
2.1 KiB
Markdown
85 lines
2.1 KiB
Markdown
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:
|
|
|
|
1. องค์กร
|
|
2. ตรวจสอบข้อมูลหลัก
|
|
|
|
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:
|
|
|
|
1. Admin/HRD sidebar should no longer show:
|
|
|
|
- องค์กร
|
|
- ตรวจสอบข้อมูลหลัก
|
|
|
|
2. Employee sidebar should remain unchanged according to latest requirements.
|
|
|
|
3. Existing routes may remain available internally:
|
|
|
|
- /dashboard/organizations or existing organization route
|
|
- /dashboard/master-review
|
|
|
|
4. Do not remove route files unless explicitly requested later.
|
|
|
|
5. If nav config has role-based items:
|
|
|
|
- remove or comment out these menu items from HRD/Admin nav group only.
|
|
|
|
6. If sidebar is generated from config:
|
|
Update:
|
|
|
|
- src/config/nav-config.ts
|
|
|
|
7. 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.
|
|
|
|
8. Output Review File
|
|
|
|
Create:
|
|
docs/management-change-admin-sidebar-review.md
|
|
|
|
Include:
|
|
|
|
1. Summary
|
|
2. Files Changed
|
|
3. Navigation Changes
|
|
4. Routes Kept
|
|
5. Permission Impact
|
|
6. Manual Test Checklist
|
|
7. 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.
|