[BUG]: Pros & Cons Challenge shows "Final Score: X/100" but the maximum depends on how many arguments were submitted

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

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

@Furqan-7 がすでに取り組んでいます。

2026年11月27日 から。

  • #818 @Furqan-7 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
go, typescript

調査の方向性

The score is calculated in backend/services/pros_cons.go and displayed in frontend/src/Pages/ProsConsChallenge.tsx. Read how the submit response represents the arguments and their scores, then check how the page renders the final score. Done when the displayed maximum reflects the number of submitted arguments; an open linked pull request (#818) indicates work is already underway.

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

説明

bug
Bug Description

On the Pros & Cons Challenge page (/coach/pros-cons), the final score is always shown "out of 100", for example "Final Score: 19/100". That number is misleading

How the score is really calculated:

  • Each argument you write gets its own score out of 10.
  • The final score is just these scores added together.

So the highest possible score depends on how many arguments you write:

  • 1 pro + 1 con = 2 arguments, so the maximum is 20
  • 5 pros + 5 cons = 10 arguments, so the maximum is 100

The page lets you submit as few as 1 pro and 1 con. If you do that and both are excellent (10/10 and 9/10), you get 19 out of a possible 20. But the page shows "19/100", which looks like you failed.

Where it happens:

  • The adding up is done in backend/services/pros_cons.go (function EvaluateProsCons).
  • The "/100" text is hard-coded in frontend/src/Pages/ProsConsChallenge.tsx:

tsx
Final Score: {evaluation.score}/100

Suggested fix: show the score out of the real maximum, which is 10 × the number of arguments submitted (so "19/20" in the example above). Only the label changes; the points users earn stay exactly the same. I'd like to work on this.

Steps to Reproduce
  1. Log in and open Coach, then Pros and Cons Challenge (/coach/pros-cons).
  2. Click "Get Topic".
  3. Fill in only Pro 1 and Con 1 with good arguments and click "Submit Arguments".
  4. Both arguments get high scores (for example 10/10 and 9/10), but the page shows "Final Score: 19/100"
Logs and Screenshots

Screenshot taken on the current main branch. The evaluation response was mocked using the same format the /coach/pros-cons/submit endpoint returns

preview
Environment Details
  • OS: Windows 11
  • Browser: Brave (Chromium-based)
  • Frontend: current main (95b24b5)
  • Not specific to any browser or OS, because the "/100" text is hard-coded in the page.
Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
TypeScript
スター
108
フォーク
266
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

AOSSIE-Org/DebateAI のほかの issue

AOSSIE-Org/DebateAI の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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