StealThis .dev

Clinic — Supplies Inventory

A medical supplies inventory screen for clinic staff, with a sortable-feeling table of items, SKUs, on-hand counts and par levels. Inline plus and minus steppers adjust stock and recompute each item's OK, Low or Out status pill and row highlight in real time. Filter tabs with live counts, a name-and-SKU search box, summary cards and per-row reorder actions round out a realistic stockroom admin view.

Labで開く
html css vanilla-js
ターゲット: JS HTML

コード

Supplies Inventory

A stockroom admin screen for Northpoint Clinic. The table lists around a dozen real-feeling supplies — exam gloves, gauze, alcohol prep pads, syringes — each with its SKU, on-hand quantity, par level, last restock date and supplier. Every row carries a status pill that is computed, not stored: an item is Out at zero, Low when on-hand has fallen to or below its par level, and OK otherwise. Low and out rows pick up a coloured left accent so they read at a glance.

Inline + / − steppers adjust on-hand counts as items are used or restocked. Each change recomputes the status pill, repaints the row, decrements at zero, and shows or hides the per-row Reorder button live. The filter tabs (All / Low / Out) and the three summary cards stay in sync with the underlying data, and a search box narrows by item name or SKU. Reordering a low or out item fires a calm confirmation toast naming the supplier and a suggested quantity.

The whole screen is vanilla HTML, CSS and JavaScript — no frameworks, no build step. It is keyboard-friendly, uses aria-live regions for the changing counts, collapses gracefully to a card-style layout on narrow screens, and meets AA contrast throughout.

Illustrative UI only — not intended for real medical use.