Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt

Use this file to discover all available pages before exploring further.

The Swap Requests page shows all shift swap requests grouped by status, with approve and reject actions available per request. It is served at route /hr/swap-requests.

Overview

The page loads swap requests via useShiftSwapRequests 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

  1. Navigate to HR > Swap Requests or go to /hr/swap-requests.
  2. Review the Pending tab for requests awaiting a decision.
  3. Click a request card to open the details dialog.
  4. In the dialog, click Approve or Reject as appropriate.
  5. Use the Approved and Rejected tabs to review historical decisions.
  6. Use the Refresh button to reload the list.

Key concepts

TermMeaning
Swap requestAn employee’s request to exchange a scheduled shift with another employee.
PendingRequests that have not yet been approved or rejected.
SwapApprovalDialogModal that presents request details and approve/reject actions.

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.
  • src/routes/hr.tsx
  • src/cores/hr/pages/SwapRequests.tsx
  • src/cores/hr/hooks/scheduling/useShiftSwapRequests.ts
  • src/cores/hr/hooks/scheduling/useSwapRequestMutation.ts