[BUG]: Pros & Cons Challenge shows "Final Score: X/100" but the maximum depends on how many arguments were submitted
I maintainer di solito rispondono entro 20 giorni
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
- Ambito
- backend-api-design, frontend
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 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
- Lingua principale
- TypeScript
- Stelle
- 108
- Fork
- 266
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/DebateAI
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesForse di nuovo libera @unnati-jaiswal24 l’ha presa 7 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/DebateAI#811 · 2 commenti ·
I maintainer di solito rispondono entro 20 giorni
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesForse già presa @mithunkc017-ship-it l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
AOSSIE-Org/DebateAI#810 · 1 commento ·
I maintainer di solito rispondono entro 20 giorni
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate RoomForse già presa @Rusky-1014 l’ha presa 12 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
AOSSIE-Org/DebateAI#802 ·
I maintainer di solito rispondono entro 20 giorni
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageForse già presa @sujitkr268 l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AOSSIE-Org/DebateAI#801 · 2 commenti ·
I maintainer di solito rispondono entro 20 giorni
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failuresForse già presa @mithunkc017-ship-it l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/DebateAI#798 · 3 commenti ·
I maintainer di solito rispondono entro 20 giorni
Tutte le issue di AOSSIE-Org/DebateAI
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
-
review-followup
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
griffinwork40/agent-afk#5387 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CodeManufactoryLLC/Code60#358 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
android:plan ios:plan main:plan packages:learn
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno