Trvalé zobrazení QR kódu do ručního zavření #31

Closed
opened 2026-02-04 14:28:14 +01:00 by batmanisko · 0 comments
Member

Feature: Persistent QR Code Display Until Manual Dismissal

FeatureRequest enum: QR_FOREVER
Description: Umožnění zobrazení vygenerovaného QR kódu i po následující dny (dokud ho uživatel ručně "nezavře", např. tlačítkem "Zaplatil jsem")

Implementation Notes

Currently, QR codes disappear after the day changes. They should persist until the user explicitly confirms payment by clicking an "I've paid" button.

Key files to modify:

  • server/src/qr.ts – Add a payment confirmation endpoint; track QR code dismissal state per user
  • client/src/App.tsx – Modify QR display logic to show persisted QR codes; add "I've paid" / "Zaplatil jsem" button

Approach:

  1. Store QR code state (generated, displayed, dismissed) in the database per user
  2. On page load, check if the user has any undismissed QR codes and display them
  3. Add a prominent "Zaplatil jsem" (I've paid) button that marks the QR as dismissed
  4. QR codes should persist across days until manually dismissed
  5. Consider showing a reminder/badge if there are outstanding unpaid QR codes
## Feature: Persistent QR Code Display Until Manual Dismissal **FeatureRequest enum:** `QR_FOREVER` **Description:** Umožnění zobrazení vygenerovaného QR kódu i po následující dny (dokud ho uživatel ručně "nezavře", např. tlačítkem "Zaplatil jsem") ### Implementation Notes Currently, QR codes disappear after the day changes. They should persist until the user explicitly confirms payment by clicking an "I've paid" button. **Key files to modify:** - `server/src/qr.ts` – Add a payment confirmation endpoint; track QR code dismissal state per user - `client/src/App.tsx` – Modify QR display logic to show persisted QR codes; add "I've paid" / "Zaplatil jsem" button **Approach:** 1. Store QR code state (generated, displayed, dismissed) in the database per user 2. On page load, check if the user has any undismissed QR codes and display them 3. Add a prominent "Zaplatil jsem" (I've paid) button that marks the QR as dismissed 4. QR codes should persist across days until manually dismissed 5. Consider showing a reminder/badge if there are outstanding unpaid QR codes
batmanisko added the Vylepšení label 2026-02-04 14:30:09 +01:00
mates closed this issue 2026-02-05 09:57:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Marbes/Luncher#31