Progress difficulty filter lists Hard before Medium
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 86/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js, rust
Línea de trabajo
Empieza con progressOptions en web/progress.js, donde values("difficulty") crea el menú, y compara su orden con LEVELS en web/problem-picker.js. El issue identifica tests/browser/progress.test.js y su prueba existente de opciones de filtro como punto de partida para la prueba; añade cobertura usando Easy, Medium y Hard. Se considera terminado cuando las opciones del selector siguen el orden de la escala: All, Easy, Medium, Hard.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Observed behavior
Once the saved history holds attempts at all three levels, the Difficulty select under "Filter attempts" in the lobby's progress panel lists its options as All, Easy, Hard, Medium. Hard sits between Easy and Medium, so the menu reads in a different order from the difficulty checkboxes beside it, and a reader scanning for the next level up meets the hardest one first.
Expected behavior
The options follow the difficulty scale: All, Easy, Medium, Hard. That is the order LEVELS in web/problem-picker.js defines and the order the lobby's own difficulty checkboxes use.
Reproduction
- Save at least one report at each of Easy, Medium and Hard, so the progress panel has attempts at all three levels.
- Open the lobby and find the Difficulty select under "Filter attempts" in the progress panel.
- Read the options: All, Easy, Hard, Medium.
Without three saved reports, the list can be read straight from the module. From a checkout, passing buildProgressModel three records whose difficulties are Hard, Easy and Medium returns options.difficulty as ["Easy","Hard","Medium"].
CodeTrial version
A checkout of main at 8c3dda1 (2026-10-11). cargo run -- --version was not run; the list above came from loading web/progress.js of that checkout under Node 24.
Environment
OS: Windows 11 (Node 24 for the module-level reproduction)
Browser: any; the list is computed in web/progress.js before the page renders it
Language: any
Problem: any
Sanitized evidence
progressOptions in web/progress.js builds the menu with values("difficulty") and no comparator, so Array.prototype.sort compares the strings and "Hard" sorts before "Medium"; the duration menu on the next line does pass a numeric comparator. The test "filter options are deduplicated, ordered, and free of unreadable values" in tests/browser/progress.test.js uses only Easy and Medium, for which the alphabetical and the scale order agree, so it passes either way. The panel and this list arrived together in 451d870.
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- Lenguaje dominante
- Rust
- Estrellas
- 144
- Forks
- 41
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 103
Preparar el entorno
- Sin Dockerfile ni 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 sysprog21/codetrial
-
Highlight the active line in the code editorPosiblemente ocupada @ArthurArthurArthur0817 la tomó hace 5 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
sysprog21/codetrial#247 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
sysprog21/codetrial#291 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
-
Visualize attempt score trends in the progress viewPosiblemente ocupada @onepch la tomó hace 1 día. Abierto
sysprog21/codetrial#275 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Adopt a frontend frameworkAbiertoenhancement help wanted
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
sysprog21/codetrial#270 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de sysprog21/codetrial
Issues similares
-
ai_p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ClickHouse/ClickHouse#125522 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: OpenRouter streaming chunks report the requested router name instead of the model OpenRouter servedPosiblemente ocupada @Mrun25 la tomó hoy. Abiertobug llm translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
BerriAI/litellm#46095 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug effort:low flow:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
jaroslawherod/micold-ai-ide#788 ·
Los mantenedores suelen responder en 1 día
-
Docs: refresh target-app-parity and file-format-parity against mainPosiblemente ocupada @vangel76 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
storytold/photocraft#4417 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
bevyengine/dlss_wgpu#37 ·