web-register-ui UI

React page that captures email, password, and invite code.

Function I/O

NameInOutSidePurpose
handleSubmitFormEventvoidioPOSTs the registration payload and routes the response.

Variables

NameTypeScopePurpose
emailstringcallIdentity for the new account; required.
inviteCodestringcallToken from the off-platform invite hand-off.

Internal data flow

1 Collect form fields. 2 POST /api/register with payload. 3 On 2xx redirect to /welcome; otherwise surface field-level errors.

Errors

NameWhenMeans
ErrInvalidCodeAPI returns 422 with `invite_code` reason.Highlight the invite-code field with the API message.