[BUG]: Pros & Cons Challenge shows "Final Score: X/100" but the maximum depends on how many arguments were submitted
Maintainers usually reply within 20 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- go, typescript
- Domain
- backend-api-design, frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 266
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/DebateAI
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesMay be free again @unnati-jaiswal24 claimed this 7 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/DebateAI#811 · 2 comments ·
Maintainers usually reply within 20 days
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesPossibly taken @mithunkc017-ship-it claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
AOSSIE-Org/DebateAI#810 · 1 comment ·
Maintainers usually reply within 20 days
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate RoomPossibly taken @Rusky-1014 claimed this 11 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AOSSIE-Org/DebateAI#802 ·
Maintainers usually reply within 20 days
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pagePossibly taken @sujitkr268 claimed this 6 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/DebateAI#801 · 2 comments ·
Maintainers usually reply within 20 days
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failuresPossibly taken @mithunkc017-ship-it claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/DebateAI#798 · 3 comments ·
Maintainers usually reply within 20 days
All issues in AOSSIE-Org/DebateAI
Similar issues
-
enhancement status:needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
dongdongbh/Mindwtr#1625 ·
Maintainers usually reply within 1 day
-
area/ui-schema good first issue type/bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
duckdb/duckdb-wasm#2335 ·
Maintainers usually reply within 1 day