Phase 4: Community submissions + moderation queue
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 70/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- supabase, typescript
- Lĩnh vực
- authentication, database, full-stack
Hướng nghiên cứu
Start with src/app/submit/actions.ts and src/app/submit/submit-form.tsx, then inspect isUrlListed() in src/lib/resources.ts and the existing /submit submission view. Confirm the action validates the required fields, rejects duplicate URLs, records the signed-in user with approved=false, and refreshes the user's status view. Done means a submission appears under review and remains available to the admin queue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Implement community submissions and moderation queue as specified in PRD §8.10. This is a P2 requirement for Phase 4.
Acceptance Criteria (from PRD §8.10)
- Logged-in users can submit a resource (
approved = falseuntil admin review) - Design the
resourcestable'ssubmittedBy/approvedcolumns now (already in schema)
Current State
- Database schema already has
submittedBy(text) andapproved(boolean, default true) columns on resources /submitpage exists with Supabase Auth sign-in/submitpage hasSubmitFormcomponent but it's not fully wired to backend- Admin dashboard already has review queue for
approved = falseresources - Admin can approve/reject submissions
What's Missing
- SubmitForm backend: The form submission action needs to insert into resources with
approved = false - User submission tracking: Show user their submissions with status (already partially in
/submitpage) - Submission validation: Validate URL, required fields, duplicate detection
- Email notification: Notify admin of new submission (optional, Phase 5)
Implementation Plan
- Complete SubmitForm action:
src/app/submit/actions.ts- insert resource withapproved = false,submittedBy = user.id- Validate form data (Zod schema)
- Check for duplicate URL
- Redirect to
/submitwith success message
- Enhance user submission view:
/submitpage already shows user's submissions with status- Ensure real-time updates after submission
- Admin review queue: Already working in
/admindashboard - Duplicate detection: Use existing
isUrlListed()insrc/lib/resources.ts
Files to Modify
src/app/submit/actions.ts- complete the submission Server Actionsrc/app/submit/submit-form.tsx- ensure proper form handlingsrc/lib/resources.ts- verifyisUrlListed()works for duplicate check
Database Schema (already exists)
resources: {
submittedBy: text('submitted_by'), // user id
approved: boolean('approved').notNull().default(true), // false for submissions
// ... other fields
}
UX Notes
- Submission form: name, URL, category, cost type, description (required), tags/region/deadline (optional)
- After submit: "Thanks! Your submission is under review." + show in user's submission list
- Admin sees in review queue with "Approve" / "Reject" / "Edit before approving"
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Your-Voldemort/StudentStack
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
Your-Voldemort/StudentStack#42 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Your-Voldemort/StudentStack#41 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Your-Voldemort/StudentStack#40 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Your-Voldemort/StudentStack#38 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Your-Voldemort/StudentStack#37 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Your-Voldemort/StudentStack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
farbenmeer/tapi#531 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
naver/egjs-flicking#971 ·
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Tenant
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
MTES-MCT/Dossier-Facile-Frontend#2061 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
backnotprop/plannotator#1784 ·
Maintainer thường phản hồi trong vòng 1 ngày