Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Reviews: add "Most helpful" sort with helpful votes

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

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

説明

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.

主要言語
TypeScript
スター
1
フォーク
6
平均マージ
22時間 9分
マージ済み PR(30日)
42

環境構築

はじめの一歩

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

Your-Voldemort/StudentStack のほかの issue

Your-Voldemort/StudentStack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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