[BUG]: Pros & Cons Challenge shows "Final Score: X/100" but the maximum depends on how many arguments were submitted
Los mantenedores suelen responder en 20 días
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
- Área
- backend-api-design, frontend
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 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
- Lenguaje dominante
- TypeScript
- Estrellas
- 108
- Forks
- 266
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/DebateAI
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesQuizá libre de nuevo @unnati-jaiswal24 la tomó hace 7 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AOSSIE-Org/DebateAI#811 · 2 comentarios ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesPosiblemente ocupada @mithunkc017-ship-it la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
AOSSIE-Org/DebateAI#810 · 1 comentario ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate RoomPosiblemente ocupada @Rusky-1014 la tomó hace 12 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
AOSSIE-Org/DebateAI#802 ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pagePosiblemente ocupada @sujitkr268 la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
AOSSIE-Org/DebateAI#801 · 2 comentarios ·
Los mantenedores suelen responder en 20 días
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failuresPosiblemente ocupada @mithunkc017-ship-it la tomó hace 15 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
AOSSIE-Org/DebateAI#798 · 3 comentarios ·
Los mantenedores suelen responder en 20 días
Todos los issues de AOSSIE-Org/DebateAI
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
-
review-followup
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
griffinwork40/agent-afk#5387 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CodeManufactoryLLC/Code60#358 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
android:plan ios:plan main:plan packages:learn
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día