Save the wishlist in the database

オープン
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, python, sql, supabase

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
CSS
スター
1
フォーク
1
平均マージ
39分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NotADIM2/GameVault のほかの issue

NotADIM2/GameVault の issue をすべて見る

似ている issue

Security の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。