Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA request to swap one of your shifts for another day that checks the eleven-hour rest rule against the shifts either side of the new day and says which rule fails. Use this when staff swap shifts and the new pattern must still leave enough rest between shifts.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when staff swap shifts and the new pattern must still leave enough rest between shifts.
Do not use it for time off; use time-off-request-range.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
| shifts | { date: string; start: string; end: string }[] | - | Your current roster. |
| swapTo | string[] | - | Days you can swap onto. |
| restHours | number | 11 | Minimum rest between shifts. |
| onRequest | (from: Shift, toDate: string) => void | - | Called when valid. |
The pattern ships with a Testing Library test (shift-swap-request.test.tsx) that covers the rest arithmetic over midnight, a valid swap, a failing swap and the callback.