CEL-1814: carry the org-invite token in RegisterForm/RegisterInput - #22
CEL-1814: carry the org-invite token in RegisterForm/RegisterInput#22mong-x wants to merge 1 commit into
Conversation
…closed-registration errors - RegisterInput.inviteToken (optional) is sent verbatim by the API client - RegisterForm accepts an inviteToken prop and passes it on register - Friendly error copy for the new 403 REGISTRATION_CLOSED and 400 INVITE_TOKEN_INVALID backend codes (invite-only admission, CEL-1815 switches) - Tests: token pass-through + both error-code surfaces
|
Warning Review limit reachedNext included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds an optional invite-token passthrough to registration and friendly handling for new invite-only backend errors. Additive, backwards-compatible, and covered by tests.
Re-trigger cubic
Part of CEL-1814 (backend: CellarNode/cellarnode-backend-v2#712; producer UI: producer-dashboard PR from branch mjnong/cel-1814-invite-token).
RegisterInput.inviteToken?: string— sent verbatim by the auth API client (POST /auth/registerbody).RegisterFormaccepts aninviteTokenprop and passes it on register.REGISTRATION_CLOSED(surface switch closed, invite required) andINVITE_TOKEN_INVALID(bad/expired/mismatched token).Note: producer-dashboard currently depends on @cellarnode/auth 0.15.0/0.16.0; its PR injects the token locally so it works before the next lib release, and can drop the shim when this ships.
Summary by cubic
Carries the org-invite token through
RegisterFormandRegisterInputso the register call submits it, and maps the new invite-only backend error codes to friendly messages.RegisterInputnow accepts an optionalinviteToken, sent verbatim by the auth API client.RegisterFormaccepts aninviteTokenprop and includes it in the register call.REGISTRATION_CLOSEDandINVITE_TOKEN_INVALIDerrors now show specific, user-friendly copy.Written for commit aff2458. Summary will update on new commits.