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

Abierto
#817 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 20 días

@Furqan-7 ya está trabajando en esto.

Desde el 27/11/2026.

  • #818 de @Furqan-7 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
go, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
TypeScript
Estrellas
108
Forks
266
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AOSSIE-Org/DebateAI

Todos los issues de AOSSIE-Org/DebateAI

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.