issues
search
alapha23
/
UrbanScholar
A fullstack TikTok clone with Nextjs, Prisma, trpc
toptop-clone.vercel.app
0
stars
0
forks
source link
[Task] Role Registration
#12
Closed
alapha23
closed
3 months ago
alapha23
commented
8 months ago
Description
Three roles
planner
Creates the project
Goes through stages Details refer to #9
public
register
read stages through a conversational interface
policy maker
read stages through a conversational interface
generate reports, only in stage 5
Tasks
Frontend
[x] sign-in page redirects to role-selection if role unselected
[x] Add role selection page
[x] If choose planner/policy maker, prompt to enter invitation code to register either as a planner or a policy maker
[x] can go back to previous page
[x] click finish, then call "verify" API to verify the invitation code
[x] if verify passed, then call "role" API to save the role
[x] if verify failed, then show up a Red Alert message "Invalid Invitation Code"
[x] If choose a general public person, prompt to the page of basic information, support skip/finish then jump to main page
Backend
[x] New Backend Route "register"
[x] New Backend API": "save_profile", "save_role", "verify"
[x] Add Role, Profile to the DB
[x] Add Profile Information to the DB
alapha23
commented
3 months ago
29
Description
Three roles
planner
public
policy maker
Tasks
Frontend
Backend