The gateway still confirms a remote submission with a corner toast

Abierto
#1,953 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
35/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Start in apps/gateway/src/Root.tsx, where notifications.addNotification({ type: 'success' }) shows the corner toast, and compare with apps/web, which passes savesSubmissions to InstrumentRenderer. The copy lives in packages/react-core/src/components/InstrumentRenderer/SubmissionSavedNotice.tsx. Done means the gateway passes savesSubmissions so the save is confirmed on the instrument, with the toast removed or kept as the maintainers decide, and the copy question settled.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Area: Gateway Difficulty: Low Enhancement Priority: Low

A remote subject who submits an assignment is told it worked by a toast in the bottom-left corner of the viewport (apps/gateway/src/Root.tsx, notifications.addNotification({ type: 'success' })), away from the instrument they were reading.

apps/web no longer does this: InstrumentRenderer now takes savesSubmissions, and the renderers confirm the save on the instrument itself — above the scalar summary, between the items of a series, and on a series' completion screen. The gateway persists every submission (it PATCHes /api/assignments/:id) but does not pass the prop, so it is the one host still on the toast, and it is the host whose reader is the person whose results they are.

Two things to settle when this is picked up:

  • The copy in packages/react-core/src/components/InstrumentRenderer/SubmissionSavedNotice.tsx is second person ("Your Results Have Been Saved"), which reads correctly for a subject and loosely for a clinician recording someone else's results. Either leave it, or make it host-supplied as LocalizedText the way submitButtonLabel is.
  • Whether the gateway's toast comes off entirely, or stays as well.
Lenguaje dominante
TypeScript
Estrellas
119
Forks
19
Merge medio
1 d 18 h
PR fusionados (30 d)
60

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DouglasNeuroInformatics/OpenDataCapture

Todos los issues de DouglasNeuroInformatics/OpenDataCapture

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.