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

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

I maintainer di solito rispondono entro 20 giorni

@Furqan-7 ci sta già lavorando.

Dal 27/11/2026.

  • #818 di @Furqan-7 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
go, typescript

Direzione di ricerca

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.

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

Descrizione

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
Lingua principale
TypeScript
Stelle
108
Fork
266
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 AOSSIE-Org/DebateAI

Tutte le issue di AOSSIE-Org/DebateAI

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.