Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Registration doesn't prefill the invited email for modal and REDCap invites

Aperta
#965 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with application/user-client/src/pages/Register.tsx:103 and trace how registration uses the response from GET /invites/{inviteId}/prefill; then inspect the endpoint and invite data it reads. The issue says to use the invite's own email when the stored prefill lacks one, while considering the unauthenticated-link concern and related #954. Verify that modal and REDCap invites prefill the email and that existing prefill values are preserved.

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

Descrizione

admin-client backend question

When an admin invites someone from the invite modal or through a REDCap import, the registration page opens with the email field empty. The participant has to type the address the invite went to, and registration looks the invite up by its ID and that email together (application/backend/src/controllers/AuthController.ts:211), so a typo fails with "Invite for … not found".

Register fills the email only from the invite's prefill (application/user-client/src/pages/Register.tsx:103), and GET /invites/{inviteId}/prefill returns the stored prefill as it is.

  • The invite modal's prefill only carries studyParticipant.externalId (application/admin-client/src/components/InviteModal.tsx:49, :87, :228).
  • The REDCap import removes the email before it builds the prefill (application/backend/src/controllers/IntegrationsController.ts:340).
  • The CSV import keeps profile.email in the prefill (application/admin-client/src/pages/participants/list.tsx:479-485), so that path should already prefill, though I haven't checked it in a browser. #937 currently removes it from the CSV prefill too.

Fix: have the prefill endpoint fill in the invite's own email when the stored prefill has none, so every invite path gets it. The endpoint needs no login, so this adds the email to what an invite link shows, the same concern as #954. If #954 adds an email check before the form, carry the checked email into the form instead.

Related: #937, #954.

Lingua principale
TypeScript
Stelle
4
Fork
0
Merge medio
14h 50m
PR unite (30g)
5

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 Garvan-Data-Science-Platform/ctrl

Tutte le issue di Garvan-Data-Science-Platform/ctrl

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.