StealThis .dev
Pages Medium

Auto — Parts Inventory

A back-counter parts inventory screen for an auto shop, with a searchable table of SKUs, brands, bin locations, prices and on-hand counts. Filter tabs for low and out-of-stock parts stay in sync with live counts, while a slide-in detail drawer adds plus and minus steppers that recompute each part's status pill and row highlight instantly. Reorder actions fire a supplier toast, and summary cards track total units, low stock and estimated stock value.

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

Code

Parts Inventory

A back-counter inventory screen for Torque & Tread, a fictional auto shop. The table lists around a dozen real-feeling parts — ceramic brake pads, iridium plugs, an AGM battery, a reman alternator — each with its SKU, brand, bin location, unit price and on-hand quantity. Every row carries a computed status pill: a part reads Out of Stock at zero, Low Stock once on-hand has fallen to or below its reorder point, and In Stock otherwise. Low and out rows pick up a coloured left accent and a tinted background so they jump out of the table at a glance.

A SKU/name/brand search box narrows the list as you type, and the filter tabs (All / Low / Out / In Stock) carry live counts that stay in sync with the data. Clicking any row opens a slide-in detail drawer with the part’s fitment, supplier and reorder point, plus a + / − stepper that adjusts the on-hand count. Each change recomputes the pill, repaints the row, and updates the summary cards tracking total SKUs, units on hand, low-stock parts and estimated stock value. Reordering a low or out item — from the row button or the drawer — fires a calm confirmation toast naming the supplier and a suggested quantity.

The whole screen is vanilla HTML, CSS and JavaScript with no frameworks or build step. It is keyboard-friendly (rows open on Enter, Escape closes the drawer), uses aria-live for the changing count, collapses gracefully to a compact layout down to 360px, and meets AA contrast throughout.

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