Save the wishlist in the database

Đang mở
#10 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, python, sql, supabase

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
CSS
Star
1
Fork
1
Merge trung bình
39 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NotADIM2/GameVault

Tất cả issue của NotADIM2/GameVault

Issue tương tự

Thêm issue về Security

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.