Journal Link to task: typing after a keyboard choice still appends to the title (follow-up to #480)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
Línea de trabajo
Lee TaskTypeahead.tsx y sus pruebas, centrándote en handleSelect, handleKeyDown y handleInputChange. Reproduce la selección de una tarea con las teclas de flecha y Enter; después, escribe algo o pulsa ArrowDown. Comprueba también Escape cuando el foco permanece en el campo de entrada. El trabajo estará terminado cuando la siguiente pulsación reemplace el título seleccionado y ArrowDown vuelva a abrir la lista con el título seleccionado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Follow-up to #480 (PR #483), found in the plan review of PR #483 and listed by the builder as a follow-up candidate. Web only (TaskFlow.Web). Not groomed yet.
Problem
#480 fixed the "Link to task" picker (TaskTypeahead) so that focusing (Tab) or clicking the input on a linked daily log row selects the prefilled title, and the first keystroke replaces it. The keyboard path after choosing a task was not covered by any acceptance criterion and still has the original bug:
- In the picker, choose a task with the arrow keys and Enter.
handleSelectsetsinputValueto''and closes the list. Focus stays in the input, which shows the new title (displayValueisselectedTitlewhile closed), with nothing selected. - Type
42.handleInputChangereceives<title>42, so the filter is the title plus the new characters and task #42 is not found. This is the bug #480 fixed for focus and click. - Or press ArrowDown instead. The list reopens with
inputValuestill'', so the title disappears from the input instead of being shown selected.
A mouse click at step 2 works, because #483's click path reopens the list and selects the title.
Expected
After choosing a task by keyboard, the next keystroke replaces the title, and ArrowDown reopens the list with the chosen title shown and selected. This matches what a click does after a selection.
Notes
- Web only:
TaskTypeahead.tsx(handleSelect,handleKeyDown,handleInputChange) and its tests. - Builds on PR #483 (#480), so it comes after that merges.
- The builder's suggestion: on a keyboard reopen, set
inputValuetoselectedTitleand select it. - Check the same path after Escape when
onEscapekeeps focus in the input. - Minor: clicking the input first, or clearing the text, works around it.
- Lenguaje dominante
- C#
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 2 h 28 min
- PR fusionados (30 d)
- 107
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 nevridge/TaskFlow
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
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
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de nevridge/TaskFlow
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Issue-Bug Needs-Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
JiaFeiMiao-K-Cat/DiscImageStudio#281 ·
Los mantenedores suelen responder en 1 día
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
area/access-management Frontend onboarding candidate :handshake:
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Altinn/altinn-auth#4941 ·
Los mantenedores suelen responder en 1 día