wutzcalc/client
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris a589f88cd8 admin: fix drink-order reorder race under rapid clicks
BarDrinkEditor derived selected drink order straight from the bar prop,
which only refreshes once a fire-and-forget PATCH's reload() lands. A
second reorder/add/remove click before that round-trip completed
re-derived from the same stale array the first click started from, so
whichever PATCH the server applied last silently won and discarded the
rest.

Track our own in-flight edits in local pendingIds state so back-to-back
clicks chain off each other instead of the lagging prop; it resets to
null (defer to the prop) whenever a fresh bar.drink_ids comes back,
whether that's our own round-trip landing or an edit from elsewhere.
2026-07-31 01:12:20 +02:00
..
public add svg favicon + toolbar logo; set theme before paint 2026-06-14 22:55:15 +02:00
src admin: fix drink-order reorder race under rapid clicks 2026-07-31 01:12:20 +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: standalone /stats page with charts, off the admin dashboard 2026-07-30 11:40:34 +02:00