feat: Build Student Onboarding Workflow#600
Conversation
Fixed Join Page and added instructions for enabling permission on FreeCodeCamp Proper TODO: Implement 'Connect' button functionality. This requires Mrugesh's PR #66063 to be implemented. Currently, the Connect button just adds the user to the Classroom without verification.
Previously, when a user enters a join link for a classroom that does not exist, it would allow the user to enter the Join page and fail silently.
Now calls get-user-id endpoint in FreeCodeCamp Proper Disables Connect button upon successfully connecting to classroom Adds user to Classroom and adds user's FCC Proper ID to their account.
|
I got an error saying that the TPA API error token was not the same. I added TPA_API_BEARER_TOKEN=local-test-secret-123 to the .env file in classroom and that fixed the error. You should probably include this in the instructions. Everything is working! |
|
I just updated the instructions. Thank you for taking a look at this! |
This adds get-user-id calls on top of the get-user-data ones in PR 602. This assumes that PR 602 was successfully merged first.
Signed-off-by: Newton Ly Chung <newtonchung99@gmail.com>
Added error comments Added (as a Student) label to Join Classroom heading if your role is TEACHER
utsab
left a comment
There was a problem hiding this comment.
One workflow has a bug:
- Student clicks the join link.
- Student is prompted to "Sign in" on Classroom
- After student signs in through Auth0, the student is currently taken to the general homepage of Classroom.
The expected behavior for step 3, should be that the student is redirected back to the join link.
| </div> | ||
| <p className='text-sm text-gray-500 leading-6'> | ||
| Note: If you change the email on your freeCodeCamp account | ||
| later, you may need to reconnect to this classroom. |
There was a problem hiding this comment.
Let's remove this. It's better if we provide these instructions when students actually need to do this, perhaps in FCC proper when they do change their email address. As is, it just clutters up this page, and they're probably not going to remember this in the future anyway.
Checklist:
Update index.md)Closes #596
This PR fixes the Classroom Join Page and added instructions for enabling permission on FreeCodeCamp Proper.
Description
Here's a description of the Student Invitation / Onboarding from Start to Finish:
6a. If a student does not have an FCC Proper account, FCC Proper will ask them to sign in first.
How to test
These instructions will guide you on setting up a teacher and student account and onboarding the student into FreeCodeCamp Classroom.
Get 2 gmails, one to be a student and one to be a teacher.
Update FCC Proper - Use my branch: NewtonLC/freeCodeCamp at feat/classroom
.envwith all of the new variables insample.env. If needed, runcp sample.env .envand then re-do the FCC Proper AUTH0 variables. Then change the values for FCC_ENABLE_CLASSROOM to true and TPA_API_BEARER_TOKEN to local-test-secret-123. Set FCC_ENABLE_DEV_LOGIN_MODE to false.docker start mongodbandpnpm run developin your terminal. (If you get an error about not being able to find docker, start it up first)TPA_API_BEARER_TOKEN=local-test-secret-123to the.envfilenpx prisma migrate resetin terminalnpm run developandnpx prisma studioin two different terminalsWhat's Blocking this PR from fully working?
get-user-idendpoint, which is required for the "Connect" feature to work.