Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Reviews: add "Most helpful" sort with helpful votes

Aperta
#119 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

The issue proposes a review_votes table, a helpful toggle on /r/[slug], and a Most helpful sort. First read PRD §8.11 and issue #107 to understand the existing review sorts; then inspect the review page and its data access paths. The scope is still up for discussion, so confirm the voting rules with the maintainer before implementation; done means students can vote within those rules and reviews sort by vote count, then recency.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

PRD §8.11's UX notes ask for reviews to be sortable by most recent, highest rated, and most helpful. #107 shipped the first two. "Most helpful" needs students to be able to mark reviews as helpful, which doesn't exist yet.

Proposed scope (for discussion before a PR)

  • New review_votes table: review_id (FK to reviews, deleted with the review), user_id, created_at, unique (review_id, user_id), RLS on. One new migration.
  • A "Helpful (N)" toggle on each review on /r/[slug], for signed-in students. Students can't vote on their own review; this is checked on the server, and review authors stay anonymous.
  • Signed-out visitors see the count, and the button prompts them to sign in.
  • A third sort link, "Most helpful": helpful count first, then most recent.

Questions for the maintainer

  1. Is this worth adding now, given how few reviews there are so far?
  2. Should a student have to have saved the resource (like writing a review does) before they can vote?
  3. Should votes be "helpful" only, or helpful/not helpful?

Out of scope: moderation or reporting of reviews.

Lingua principale
TypeScript
Stelle
1
Fork
6
Merge medio
21h 33m
PR unite (30g)
48

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Your-Voldemort/StudentStack

Tutte le issue di Your-Voldemort/StudentStack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.