Downloaded markdown reports use internal lowercase keys instead of display labels for programming languages
Los mantenedores suelen responder en 1 día
@SkyDrive2 ya está trabajando en esto.
Desde el 9/10/2026.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
Mueve la función auxiliar languageLabel de web/app.js a web/lib.js y expórtala para poder reutilizarla entre módulos. A continuación, actualiza las funciones downloadSavedReport de web/app.js y buildMarkdown de web/interview.js para que envuelvan sus valores de language con languageLabel() antes de pasarlos a reportMarkdown. Verifica la corrección descargando un informe Markdown desde la interfaz web y confirmando que el encabezado de la sección del código final usa la etiqueta de idioma con el formato adecuado (p. ej., ## Final code (Python) en lugar de ## Final code (python)).
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Observed behavior
When downloading an interview report as a .md file, the heading for the final code section displays the raw, lowercase internal language key (e.g., ## Final code (python) or ## Final code (cpp)).
However, in the web UI (such as the Past attempts history panel), the language is correctly formatted and displays as Python or C++.
Root Cause Analysis
The inconsistency occurs because the Markdown generator receives the raw language key instead of the formatted label:
- In
web/app.js(around line 1232) insidedownloadSavedReport(), the code passeslanguage: attempt.languagetoreportMarkdown(). - Similarly, in
web/interview.js(around line 2942) insidebuildMarkdown(), the code passeslanguage: state.language.
The formatting helper function languageLabel(value) is currently defined locally in web/app.js (around line 1371), which makes it inaccessible to web/interview.js and missed during the download serialization.
Expected behavior
The downloaded markdown report should be consistent with the web UI and use the proper human-readable label (e.g., ## Final code (Python)), rather than the internal data key.
Proposal
- Move the
languageLabelfunction fromweb/app.jstoweb/lib.jsand export it, so it can be shared across modules. - Wrap the
languagevariable withlanguageLabel()inside bothdownloadSavedReport(web/app.js) andbuildMarkdown(web/interview.js) before passing it toreportMarkdown.
I have already verified this fix locally and can submit a pull request if this direction is acceptable.
Reproduction
- Open the CodeTrial web UI and navigate to the lobby (Past attempts).
- Click the "Download report (.md)" button for any completed interview.
- Open the downloaded
.mdfile in a text editor. - Scroll to the bottom and observe the heading:
## Final code (python)instead of## Final code (Python).
(The exact same issue occurs when downloading the report immediately after a session ends).
CodeTrial version
Built from source (commit 3c8fccd)
Environment
OS: All
Browser: All
Language: Any
Interview loop: N/A
Problem: N/A
REACTO or STAR step: Post-interview (Report Download)
Reconnect: N/A
Sanitized evidence
Downloaded markdown file contains:
## Final code (python)
Expected:
## Final code (Python)
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- Lenguaje dominante
- Rust
- Estrellas
- 160
- Forks
- 64
- 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
-
Progress difficulty filter lists Hard before MediumPosiblemente ocupada @Pandamachi la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
sysprog21/codetrial#281 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Highlight the active line in the code editorPosiblemente ocupada @ArthurArthurArthur0817 la tomó hace 6 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
Todos los issues de sysprog21/codetrial
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
RustCrypto/SSH#596 ·
-
proxy: SQL-over-HTTP turns empty arrays into [""] or [false], or HTTP 500 for int and float arraysAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
neondatabase/neon#12965 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
goauthentik/authentik#26867 ·
Los mantenedores suelen responder en 1 día
-
Table and code-block right borders are clipped when the TOC panel is resized wider than the defaultAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
api bug macos maintainer-needed p2 triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día