Skip to content

Proposal/teacher onboarding mvp#595

Open
CarlyAThomas wants to merge 13 commits into
freeCodeCamp:mainfrom
CarlyAThomas:proposal/teacher-onboarding-mvp
Open

Proposal/teacher onboarding mvp#595
CarlyAThomas wants to merge 13 commits into
freeCodeCamp:mainfrom
CarlyAThomas:proposal/teacher-onboarding-mvp

Conversation

@CarlyAThomas
Copy link
Copy Markdown
Contributor

Checklist:

This PR is not associated with a specific issue

Case Study (Teacher Invite Acceptance Flow)

  1. Admin creates/resends a teacher invite from the admin dashboard.
  2. System sends a secure email link: /teacher/invite/<token>.
  3. Invited teacher signs in with the invited email.
  4. Teacher accepts invite.
  5. Invitation becomes ACCEPTED and user role is set to TEACHER.

What Changed (and Why)

Validation

  • npm run lint:code
  • npm test

…ity signature

- Convert pages/error.js and pages/teacher/invite/[inviteToken].js to modern Next.js Link pattern (no nested anchors)
- Refactor util/inviteEmail.js to accept object params {invitedTeacherEmail, inviteUrl, expiresAt, invitedByEmail}
- Ensures proper Nodemailer integration for teacher invitation emails
- redesign invite acceptance page with FCC-aligned styling
- update teacher invitation email content and branding hierarchy
- fix teacher invite post-accept redirect by role
- improve revoke API message for inactive invites
- add README testing/setup notes for SMTP invite flow
@CarlyAThomas CarlyAThomas requested a review from a team as a code owner May 18, 2026 22:40
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednodemailer@​6.10.197819793100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant