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:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "list_items" ADD COLUMN "bought_at" TIMESTAMP(3);
|
||||
Reference in New Issue
Block a user