[BUG]: Pros & Cons Challenge shows "Final Score: X/100" but the maximum depends on how many arguments were submitted
メンテナーはふだん 20 日以内に返信
評価
- 難易度
- 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 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(functionEvaluateProsCons). - 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
- Log in and open Coach, then Pros and Cons Challenge (
/coach/pros-cons). - Click "Get Topic".
- Fill in only Pro 1 and Con 1 with good arguments and click "Submit Arguments".
- 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
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 はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/DebateAI のほかの issue
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes再び着手できるかも @unnati-jaiswal24 が 7 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/DebateAI#811 · コメント 2 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes対応中かも @mithunkc017-ship-it が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
AOSSIE-Org/DebateAI#810 · コメント 1 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate Room対応中かも @Rusky-1014 が 12 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AOSSIE-Org/DebateAI#802 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument page対応中かも @sujitkr268 が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/DebateAI#801 · コメント 2 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failures対応中かも @mithunkc017-ship-it が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/DebateAI#798 · コメント 3 件 ·
メンテナーはふだん 20 日以内に返信
AOSSIE-Org/DebateAI の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
review-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
griffinwork40/agent-afk#5387 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CodeManufactoryLLC/Code60#358 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
android:plan ios:plan main:plan packages:learn
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信