Pet store scheduling - the grooming appointment board tool - tomorrow's tickets auto-assigned by service duration and groomer level, shared-dryer overload flagged red against machine count, the skill gap stated in hours, and every unplaced ticket gets three exits - move it, pull someone in, or decline with a script
Build a single-file HTML tool for pet store scheduling supervisors
(no dependencies, offline-capable, data in localStorage and never
online): assign tomorrow's grooming tickets to people. Today the
board lives in someone's head, and it fails the same two ways -
the whole afternoon piles up behind one dryer, or a day of
full-groom tickets reveals that only one groomer qualified to do
them showed up.
Inputs (maintained in the page):
1. Groomer roster: name, level (assistant / C / B / A), shift
start and end
2. Service dictionary (settings page, the store's standard,
everything editable):
bath (by size S/M/L), medicated wash, dematt, full groom,
spa - each with: standard minutes / minimum groomer level /
whether it occupies a dryer station and for how long
3. Tomorrow's tickets: client, pet (species / size / age / senior
or medical note), service, arrival time, preferred window
Assignment rules (the engine computes these):
1. Level match: a ticket's service level floor must be met or
exceeded by the groomer; senior and medical-note pets
prioritize to the higher levels
2. Slot capacity: per-person concurrent load capped at the
configured value; the dryer is a store-wide shared resource -
any 30-minute slot where dryer occupancy exceeds machine count
turns red
3. Sequencing: longest services place first; a preferred window
that conflicts gets a suggested alternative
Output:
1. Tomorrow's timeline: one row per groomer, tickets laid into
30-minute slots; conflicting slots red with the cause named
(level shortfall / dryer over capacity / slot stacking)
2. Gap warning: full-groom demand in hours versus full-groom-capable
hours on shift, the shortfall stated as "X hours short"; dryer
load shown morning-versus-afternoon
3. For every unplaceable ticket, three exits with wording:
- Move it (the client line: "we have an opening before ten
tomorrow - your pet wouldn't have to wait; does that work?")
- Pull someone in (the pulled person's terms: who comes in
from which rest day, which hours)
- Decline (one sentence - framed as a full schedule protecting
quality, never as "we can't fit you" complaint energy)
Explicitly not built:
- No preset service durations anywhere - durations are store
truth; the settings page opens empty and the board refuses to
run until the dictionary is filled, forcing a one-time
calibration
- No network, no uploads, no external services; data lives in
this browser only
Why it is written this way
Grooming scheduling is really a two-dimensional matching problem - skill (level) and resource (time and dryers). Head-scheduling handles the skill dimension fine, because "a dematt needs a B-level" is explicit knowledge; the buried dimension is resources, above all the dryer: it is shared store-wide, each ticket occupies it for only one stretch of the process, and the human scheduler naturally checks "is the person free" - never "is the machine free". Result: everyone holds a dog waiting for the dryer and the store stalls after four o'clock. Modeling the dryer as a shared resource counted in 30-minute slots replicates that exact failure mode so the board catches it instead of living it.
Writing the level floor as a service property rather than a ticket property is a data-modeling choice: a dematt always needs the higher level - that is a property of the service, held once in the dictionary; hung on the ticket it becomes a per-ticket human judgment, and every judgment is a leak. Senior and medical-note pets prioritizing upward translates "this animal cannot afford an incident" into scheduling weight - grooming accidents concentrate in exactly the small share of pets with poor stress tolerance, not the healthy majority.
The three exits with attached scripts are the most skippable part of a tool spec and the most valuable in use. An unplaceable ticket is a red row inside the tool and a phone call in the real world - and how that call opens decides whether the booking moves or the customer leaves. "A full schedule protecting quality" reads as a promise where "we can't fit you" reads as dysfunction. Shipping the scripts with the conflict closes the loop from detection to resolution inside one screen.
Empty-by-default durations are a deliberate hard constraint. Any preset "bath, 40 minutes" is wrong for a specific store - the size mix, the tub and table setup, the crew's rhythm are all local; a built-in default gets used-as-is everywhere, the board runs fifteen minutes off all day, and the tool gets blamed for being inaccurate. A five-minute entry cost at first open buys out that death spiral.
Variables
| Variable | Description |
|---|---|
| Service duration standards | Minutes per service per size class, measured on your own floor - recalibrate quarterly, because crew proficiency drift makes old numbers quietly wrong |
| Dryer count and slot length | Machine count is a hard input; the 30-minute slot is adjustable (efficient setups can drop to 20) - it sets the store's scheduling grain everywhere at once |