Selecting a language inside an instrument preview switches the app language and closes the preview on Manage Group
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, tailwindcss, typescript
Línea de trabajo
Start in apps/web/src/components/InstrumentPreviewDialog/InstrumentPreviewDialog.tsx around lines 93-99, where InstrumentRenderer gets no language prop, then follow useInstrumentLanguage to see how changeContentLanguage binds to the global changeLanguage. Next, check useInstrumentInfoQuery and the queryKey in apps/web/src/routes/_app/group/manage.tsx (lines 854-870 and 976-987) to see why refetching unmounts ManageGroupForm. Done means preview language changes stay local and the dialog stays open while the query refetches.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
InstrumentPreviewDialog (apps/web/src/components/InstrumentPreviewDialog/InstrumentPreviewDialog.tsx:93-99) renders InstrumentRenderer with no language prop. useInstrumentLanguage(undefined) therefore binds changeContentLanguage to libui's global changeLanguage, so switching languages from inside a previewed interactive instrument (its "Select Language" screen, its toolbar language toggle, or a changeLanguage event from the iframe) switches the whole web app's interface language.
On /group/manage (apps/web/src/routes/_app/group/manage.tsx:854-870, 976-987), useInstrumentInfoQuery includes resolvedLanguage in its queryKey. Switching to an uncached language sets instrumentInfoQuery.data to undefined while refetching, which makes data null and causes WithFallback to unmount ManageGroupForm (where previewItem state lives), closing the open InstrumentPreviewDialog immediately.
Reproduce
- Open
/group/managein English. - Click the preview icon on a bilingual interactive instrument (or a series containing one) with
enableLanguageSelect: trueorenableLanguageToggle: true, click Preview Form, and click Begin. - Pick Français on the "Select Language" screen (or from the toolbar language toggle).
Actual: the entire web interface switches to French and the preview dialog unmounts and closes while useInstrumentInfoQuery refetches for fr.
Expected: the preview stays open (and language switches inside a preview stay local to the preview, or ManageGroupForm keeps previous instrumentInfoQuery data while refetching).
- Lenguaje dominante
- TypeScript
- Estrellas
- 119
- Forks
- 19
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 60
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 DouglasNeuroInformatics/OpenDataCapture
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePosiblemente ocupada @2389400626lh-ops la tomó hoy. AbiertoArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Los mantenedores suelen responder en 1 día
-
Area: Infrastructure Chore Difficulty: Low Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DouglasNeuroInformatics/OpenDataCapture#1948 ·
Los mantenedores suelen responder en 1 día
-
apps/web preview overwrites newly built dist/index.html with stale dist/index.html.bak across buildsAbiertoArea: Infrastructure Area: Web Bug Difficulty: Low Priority: Medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DouglasNeuroInformatics/OpenDataCapture#1938 ·
Los mantenedores suelen responder en 1 día
-
Area: API Bug Difficulty: Low Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
DouglasNeuroInformatics/OpenDataCapture#1937 ·
Los mantenedores suelen responder en 1 día
-
Area: Infrastructure Bug Difficulty: Low Priority: Medium Security
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DouglasNeuroInformatics/OpenDataCapture#1916 ·
Los mantenedores suelen responder en 1 día
Todos los issues de DouglasNeuroInformatics/OpenDataCapture
Issues similares
-
Resources: New templates of Beijing SubwayPosiblemente ocupada @rmt-svc la tomó hoy. Abiertoresources
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
railmapgen/rmg-templates#2726 ·
Los mantenedores suelen responder en 1 día
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
homarr-labs/homarr#7729 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Buzzpy/Dev-Encyclopedia#218 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
prio:low status:done type:content
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
davidsneighbour/samui-samui.de#1925 ·