Add shift swap and leave request approval system to employer dashboard - #336
Add shift swap and leave request approval system to employer dashboard#336ujwalsharma07 wants to merge 3 commits into
Conversation
|
Checkout the branch into local machine. The priority dashboard which was in this request: #279 is working here. |
|
I’ve updated the employer dashboard with the shift swap and leave request approval system. Employers can now view shift swap and leave requests, see request status, and approve or reject them directly from the dashboard. Please review the latest version. |
|
Closing following frontend review. This PR combines leave-request and shift-swap workflows and currently relies on mocked data. Leave requests will be prioritised as a separate frontend task and rebuilt against the current Shift Request API. Shift Swap will be planned independently once its workflow, approval rules and roster behaviour are agreed. The existing UI may still be used as a visual reference for the replacement work. |


Summary
Added the Shift Swap / Leave Request Approval System to the Employer Dashboard in the Frontend Employer Panel.
Changes made
1. added a new Shift Swap / Leave Requests section
2. displayed shift swap and leave request items
3. added approve and reject actions for each request
4. updated request status in the UI
5. added styling for the request approval section
6. kept the existing dashboard, incident reports, and priority shifts sections working
Testing

1. ran the Employer Dashboard locally
2. verified request list displays correctly
3. verified both shift swap and leave requests are visible
4. verified approve button updates request status
5. verified reject button updates request status
6. confirmed the dashboard still loads correctly after changes