Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Phase 3: Implement bookmarks + application tracker (/my-list)

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

Maintainer thường phản hồi trong vòng 1 ngày

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
55/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ệ
supabase, typescript
Lĩnh vực
authentication, full-stack

Hướng nghiên cứu

Start with the bookmarks schema in src/db/schema.ts lines 66-81, the non-functional control in src/components/directory/resource-card.tsx lines 90-92, and the existing auth flow in src/proxy.ts and src/lib/supabase. Then review the planned entry points in src/app/my-list/page.tsx, src/app/my-list/actions.ts, and src/lib/resources.ts. Done means authenticated users can save resources, edit all four statuses from the card and /my-list, and see the specified empty state.

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

Mô tả

enhancement

Description

Implement the bookmarks and application tracker feature as specified in PRD §8.7. This is a P1 requirement for Phase 3.

Acceptance Criteria (from PRD §8.7)

  • Sign up/in via Supabase Auth (email + Google OAuth) — already implemented in /submit
  • "Save" icon on every card → adds to /my-list
  • Status pill per saved resource: Interested / Applied / Got it / Rejected — updates from the card itself, no separate page needed

Current State

  • Database schema already has bookmarks table with status enum ['interested', 'applied', 'got_it', 'rejected'] (src/db/schema.ts lines 66-81)
  • Supabase Auth plumbing already in place: src/lib/supabase/{server,client}.ts, src/proxy.ts
  • /submit page already has Google + email-link sign-in working
  • ResourceCard has a non-functional bookmark button (line 90-92 in resource-card.tsx)

Implementation Plan

  1. Bookmark API/Server Actions:
    • Create server actions for: add bookmark, update status, remove bookmark
    • Location: src/app/my-list/actions.ts or similar
  2. /my-list page:
    • Protected route (requires auth)
    • Show user's bookmarks grouped by status
    • Allow status changes inline (pill buttons)
  3. ResourceCard integration:
    • Make bookmark button functional
    • Show current status if bookmarked
    • Allow status change from card (dropdown or pill cycle)
  4. Auth protection:
    • Use existing src/proxy.ts pattern for /my-list route
    • Or use Server Component auth check

Files to Create/Modify

  • src/app/my-list/page.tsx (new) - main tracker page
  • src/app/my-list/actions.ts (new) - Server Actions for bookmark CRUD
  • src/components/directory/resource-card.tsx - functional bookmark button
  • src/proxy.ts - add /my-list to matcher for auth redirect
  • src/lib/resources.ts - add getUserBookmarks(), toggleBookmark(), updateBookmarkStatus()

Database Schema (already exists)

bookmarks: {
  userId: uuid (references auth.users)
  resourceId: integer (references resources.id)
  status: 'interested' | 'applied' | 'got_it' | 'rejected'
  createdAt: timestamp
  PK: (userId, resourceId)
}

UX Notes

  • Status pills on card: clicking cycles through states or opens small popover
  • /my-list shows all bookmarks with inline status editing
  • Empty state: "Save resources to track them here"
  • Reuse existing UI patterns (shadcn/ui Badge, Select, etc.)
Ngôn ngữ chính
TypeScript
Star
1
Fork
6
Merge trung bình
11 giờ 16 phút
Pull request đã merge (30 ngày)
16

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 Your-Voldemort/StudentStack

Tất cả issue của Your-Voldemort/StudentStack

Issue tương tự

Thêm issue về TypeScript

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.