StealThis .dev

Auto — Repair Estimate

A customer-facing repair estimate for an auto shop, splitting every job into labor and parts with diagnostic codes, recommended versus optional tags, and per-line approve or decline controls. Optional jobs ride on toggle switches that add or remove themselves from scope, and a sticky summary panel recomputes labor, parts, shop supplies, tax and total live. A sign-off block stays locked until nothing is pending, then authorizes the work and opens the order.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Repair Estimate

A single-screen repair estimate for Ironwood Auto & Diesel, led by a vehicle card that pairs a gradient photo placeholder with the VIN, plate, odometer and diagnostic codes for a 2019 F-150. Beneath it, each recommended job is a line item split into labor and parts, carrying its hours, parts cost, a recommended or optional tag, and any tied diagnostic trouble code such as P0301 or P0171. A sticky customer summary on the right tallies labor, parts, shop supplies, an 8.25% tax and the total due.

Every line is interactive. Approve and decline buttons toggle each job’s state and update its flag colour and the running approved / declined / pending counts. Optional jobs sit behind a toggle switch that pulls them in or out of the estimate entirely, and any change recomputes the summary instantly. The authorize button stays disabled until nothing is left pending and the customer ticks the authorization box, after which sign-off stamps a name and timestamp, locks the controls, flips the status chip and confirms with a toast.

The whole thing is vanilla HTML, CSS and JavaScript with no frameworks, build step or external assets beyond the Inter font. Money fields use tabular figures, the layout reflows to a stacked mobile view below 520px, and buttons and inputs stay keyboard-usable throughout.

Illustrative UI only — fictional shop/dealership, not a real service system.