Shift swaps with the manager in the loop
Post a shift. Get it covered.
ShiftSwapper Pro is shift swapping for hourly staff with a manager in the loop. Start by pressing “Offer for swap” on one of the scheduled shifts — then request it as a peer and approve it as the manager.
Runs in your browser — nothing to install
- What it does: an employee offers a scheduled shift, a peer requests it, a manager approves it, and the earnings view recomputes from the pay rate the manager set.
- What to try: offer a shift, request it from another employee account, then approve it as the manager — and try to approve your own request, which is refused.
- What it runs on: the product’s own GUI over an in-browser mock backend that mirrors the edge functions’ rules and error copy. No Expo, no database, no keys.
- What the demo persists: shifts, requests and earnings live in the browser tab for the session. Persistence, sign-in and row-level security belong to the backend build, which is not part of this page.
The record
Proof it works: 45 cases, measured
- The suite passes and the numbers are measured: 45 cases in all — 15 on the swap state machine, 7 on the earnings arithmetic and the missing-rate guard, 12 that read the migrations and assert the predicates written in them, and 11 for the matchmaking engine. The first 34 run under the Node test runner with no database, no Docker and no Deno.
- The 12 SQL cases are a source contract. They read the migration files and assert the predicates written in them; they do not execute a policy, so a passing run is not a claim that a policy behaves correctly against a live database.
- The earnings view is arithmetic over a manager-set rate. Holiday and overtime rules are placeholders, so nothing here is a payroll figure. Cross-location requests are refused by the shipped request path — the code is the one that runs.
Under the hood
What it is built on
- Stack
- React Native / Expo with React Navigation and Victory Native for the app; Supabase for Postgres, row-level security and the edge functions; a TypeScript package for matchmaking.
- Runs where
- The app runs through Expo Go or an EAS preview build. The demo above opens from the page with no server. The backend is six migrations plus five edge functions, written as source.
- Data
- Shifts, swap requests, earnings, reliability scores and feedback across six migrations with row-level security.
Ask about a pilot
Whether the loop fits how your location already schedules, or what the app does with pay data — ask before you commit anything.