Save the wishlist in the database

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, python, sql, supabase

Direzione di ricerca

Start by reading supabase/schema.sql to see the existing table and RLS patterns, then add the wishlist table with user_id, game_id and added_at. In backend/queries.py, follow the existing query style and add add/remove functions plus POST routes that enforce login and CSRF. On the game page, wire the button to those routes and add a library Wishlist view, keeping the localStorage path for logged-out users. Done means a logged-in wishlist survives across devices and the logged-out behaviour is unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

backend database enhancement frontend help wanted

The wishlist button on game pages only saves to the browser's localStorage, so it's lost on another device or after clearing site data.

Goal: store wishlists per user in Supabase.

  • Add a wishlist (user_id, game_id, added_at) table to supabase/schema.sql, with RLS enabled like the other tables
  • Add queries in backend/queries.py and POST routes to add/remove (CSRF-protected, login required)
  • Update the game page button and add a "Wishlist" view to the library
  • Logged-out users: keep the current browser-only behaviour

Describe the schema change and upgrade steps in your PR.

Lingua principale
CSS
Stelle
1
Fork
1
Merge medio
39m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NotADIM2/GameVault

Tutte le issue di NotADIM2/GameVault

Issue simili

Altre issue su Security

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.