The Swap Requests page shows all shift swap requests grouped by status, with approve and reject actions available per request. It is served at routeDocumentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/hr/swap-requests.
Overview
The page loads swap requests viauseShiftSwapRequests and separates them into pending, approved, and rejected tabs with badge counts. Each request renders as a SwapApprovalCard. Clicking a card opens a SwapApprovalDialog with approve and reject actions backed by useSwapRequestMutation. A refresh button re-fetches the list.
Who it’s for
No explicit permission gate on this route.Before you start
- Shift swap requests are initiated by employees; this page is for reviewing and acting on them.
Steps
- Navigate to HR > Swap Requests or go to
/hr/swap-requests. - Review the Pending tab for requests awaiting a decision.
- Click a request card to open the details dialog.
- In the dialog, click Approve or Reject as appropriate.
- Use the Approved and Rejected tabs to review historical decisions.
- Use the Refresh button to reload the list.
Key concepts
| Term | Meaning |
|---|---|
| Swap request | An employee’s request to exchange a scheduled shift with another employee. |
| Pending | Requests that have not yet been approved or rejected. |
| SwapApprovalDialog | Modal that presents request details and approve/reject actions. |
Related
Human Resources
Human Resources core overview.
Governance & parity
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/hr.tsx
- src/cores/hr/pages/SwapRequests.tsx
- src/cores/hr/hooks/scheduling/useShiftSwapRequests.ts
- src/cores/hr/hooks/scheduling/useSwapRequestMutation.ts