The gateway still confirms a remote submission with a corner toast

Aperta
#1,953 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
119
Fork
19
Merge medio
1g 18h
PR unite (30g)
60

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DouglasNeuroInformatics/OpenDataCapture

Tutte le issue di DouglasNeuroInformatics/OpenDataCapture

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.