Auto repair shop technician - actual labor-time tracking tool - a single-file stopwatch that times working, waiting-on-parts, rework, and post-delivery comeback as four separate states, rolls daily and monthly summaries per job type against flat-rate hours with wait and rework shares, saves to localStorage, exports CSV, and runs in a shop with no signal
You are a coding agent. Build a single-file HTML "actual labor
time stopwatch" for auto repair technicians at the bay: one
timer per repair order, four separately-timed states, monthly
summaries that survive an argument. Local only - no network, no
external dependencies.
The problem it solves: the technician thinks the flat-rate hours
are short, the owner thinks the technician is slow, and both
sides hold impressions, not data. This tool records each
order's real time by state, so waiting, rework, and wrench time
stop blending into one total.
Core input:
- New order: date, order number, plate, vehicle, job type
(dropdown of common items + free text), flat-rate hours
(hand-entered, may be blank)
- One timer per order, four states, one tap to switch, each
switch closes a segment:
- WORKING (hands on this order)
- WAITING (down for parts, outsourced work, or customer
callback)
- REWORK (redoing this job's own work)
- COMEBACK (customer returned it after delivery; opens as a
new order linked to the original number)
- Exactly one state may run at a time; switching to another
order's WORKING auto-pauses this one and flags "interrupted"
- Closing an order is manual; a closed order locks (edits go
through an explicit unlock)
Summaries:
- Day view: per-order minutes by state, with totals
- Month view: rolled up by job type - working hours (excludes
waiting) / waiting hours / rework hours / comeback hours /
actual total vs. flat-rate total, and the attainment ratio
(flat-rate divided by working hours)
- One-click CSV export: full order detail with per-state hours,
ready to hand the owner as a file
Implementation:
- Single HTML file, inline CSS and JS, opens on double-click,
zero network requests
- localStorage persistence, JSON export/import for backup
- Usable on a phone browser: state buttons sized for gloved
thumbs
- Three sample orders preloaded (one waiting-heavy, one with
rework, one close to flat-rate) so the four states are visible
on first open
Do not:
- No accounts, cloud sync, external libraries, backend
- No "smart hour estimation" or "recommended flat-rate by
model" - flat rate is a hand-entered number; the tool does
not guess
- No evaluative copy like "low efficiency" or "over time" on
the interface - the tool presents durations; evaluation is a
conversation between people
- No automatic uploads of anything; export is the only way out
Why it is written this way
The four-state split is the tool's heart. The argument never resolves because "the clutch took five hours" welds three different hours together: four of actual wrench time, one waiting on supplies, one redoing. Blended, the owner hears "five hours against three book hours - two-thirds slow"; split, the same day reads "four working, one waiting that belongs to purchasing, one rework that belongs to the previous step." The moment the data separates, the accountabilities separate - which is exactly why the tool must exist before the conversation.
"Switching orders auto-pauses the previous one" is a rule designed by reality: a technician's day is multithreaded - mid-job on A, missing a tool, rolling straight into B - and if A's timer keeps running, its accumulated time is fiction. A stopwatch's worst enemy is dirty data from forgotten pauses, and one dirty month is enough to disqualify the whole record at the negotiating table. Auto-pause plus the "interrupted" flag takes the most error-prone step out of human hands.
Flat-rate hours are hand-entered and may be left blank, deliberately: shops run on different bases (factory tables, shop-defined, the owner's word of mouth), and if the tool shipped with its own "standard rates," the data would lose standing before the argument starts - "whose rates are these?" Fill in the shop's own numbers, and the tool's single job becomes making "actual" a number that can finally be cited. The attainment formula carries the same stance: flat-rate divided by working hours, not total hours - waiting time does not belong on the technician, and that boundary is itself one of the things the data exists to argue.
Banning evaluative words like "low efficiency" on the interface keeps the tool alive: a stopwatch that judges stops being used by the person it times. The tool records facts; the evaluation happens in the month-end conversation over the CSV - and the more neutral the tool, the harder that sheet hits.
Variables
| Variable | Description |
|---|---|
| Flat-rate source | Where the hand-entered numbers come from (shop table or factory manual) must be the same set for technician and owner, or the month-end comparison collapses |
| Comeback linkage rule | What counts as comeback (same symptom, inside warranty) versus a new order - align with the shop's comeback SOP or the comeback hours go meaningless |
| Retention window | localStorage is finite; agree to export the CSV monthly and clear, with history living in the exported files |