Progress difficulty filter lists Hard before Medium
I maintainer di solito rispondono entro 1 giorno
@Pandamachi ci sta già lavorando.
Dal 11/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 86/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, node.js, rust
Direzione di ricerca
Inizia da progressOptions in web/progress.js, dove values("difficulty") crea il menu, e confrontane l’ordine con LEVELS in web/problem-picker.js. L’issue indica tests/browser/progress.test.js e il suo test esistente sulle opzioni di filtro come punto di partenza per il test; aggiungi copertura usando Easy, Medium e Hard. Il lavoro è completo quando le opzioni del selettore seguono l’ordine della scala: All, Easy, Medium, Hard.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 144
- Fork
- 41
- Merge medio
- 1g 9h
- PR unite (30g)
- 95
Preparare l'ambiente
- Nessun Dockerfile né 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 sysprog21/codetrial
-
Highlight the active line in the code editorForse già presa @ArthurArthurArthur0817 l’ha presa 4 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sysprog21/codetrial#247 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Visualize attempt score trends in the progress viewForse già presa @onepch l’ha presa oggi. Aperta
sysprog21/codetrial#275 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Whiteboard pen swatches are named by hex code and do not expose which one is selectedForse già presa @LeafYeh1 l’ha presa oggi. Aperta
sysprog21/codetrial#274 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Toggle line comments in the code editor with Ctrl+/Forse già presa @henrylee1003 l’ha presa oggi. Aperta
sysprog21/codetrial#273 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Adopt a frontend frameworkApertaenhancement help wanted
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
sysprog21/codetrial#270 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sysprog21/codetrial
Issue simili
-
llm translation
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
CybercentreCanada/sawp#13 ·
-
area: backend type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
armadavalor/WinKnife#6 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
5omeOtherGuy/phaseone#870 ·
I maintainer di solito rispondono entro 1 giorno