wutzcalc/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 3c9fd3d55c client: long-press picker also offers quick-remove when already in cart
Fixes the rest of #70 - mara's answer: "when there are already drinks
in cart, i want to be able to remove them - so show negative numbers
there too."

Second row of -1..-5 buttons appears in the count picker only when the
long-pressed drink already has cart quantity (an empty-cart drink keeps
the original add-only picker - nothing to remove). Routed through
incLine (the qty-stepper's own clamp-at-zero-and-drop-the-line logic)
rather than addDrink's raw qty+n, so over-removing (e.g. -5 on a qty-3
line) drops the line cleanly instead of going negative - verified this
specific clamping behavior with a standalone reproduction of the logic
before trusting it. Remove buttons get the existing button.danger
styling (red), matching the app's established negative/removal
convention (Pfand-return tile, cart-line.return).

pnpm --filter client typecheck and build both clean.
2026-08-03 17:26:13 +02:00
..
public add svg favicon + toolbar logo; set theme before paint 2026-06-14 22:55:15 +02:00
src client: long-press picker also offers quick-remove when already in cart 2026-08-03 17:26:13 +02:00
admin.html add svg favicon + toolbar logo; set theme before paint 2026-06-14 22:55:15 +02:00
index.html add svg favicon + toolbar logo; set theme before paint 2026-06-14 22:55:15 +02:00
package.json client: standalone /stats page with charts, off the admin dashboard 2026-07-30 11:40:34 +02:00
stats.html client: standalone /stats page with charts, off the admin dashboard 2026-07-30 11:40:34 +02:00
tsconfig.json scaffold festival drink tracker (pnpm workspace, Fastify + SQLite, Preact tablet UI, admin) 2026-05-19 18:12:01 +02:00
vite.config.ts client: show build version + browser diagnostics for bug triage 2026-08-03 15:33:17 +02:00