Save the wishlist in the database

Abierto
#10 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, python, sql, supabase

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
CSS
Estrellas
1
Forks
1
Merge medio
39 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NotADIM2/GameVault

Todos los issues de NotADIM2/GameVault

Issues similares

Más issues de Security

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.