feat: mark list items as bought on tap and record boughtAt

Tapping an item in the list toggles it via a new
PATCH /lists/:listId/items/:itemId endpoint. Marking an item as bought
stores boughtAt (for future stats) and clearing it back to pending
resets the timestamp. The web app updates optimistically and each row is
now a real button with aria-pressed.
This commit is contained in:
Jose Selesan
2026-10-16 10:44:23 -03:00
parent 6aa86a3b68
commit c4f6b8bc85
11 changed files with 315 additions and 31 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "list_items" ADD COLUMN "bought_at" TIMESTAMP(3);