-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Milestone
Description
the process of verifying who has paid for sce membership is very inefficient. we can fix this by making a lot of the requirements automated using clark. let's help fix this by modifying the UI of user profiles so that they can verify their membership.
game plan
the current UI code is found in src/Pages/Profile/MemberView/Profile.js. here's how the UI looks right now:
- let's add a button that says
Verify Membershipnext to the other buttons. when clicked, this button should:- pop up a confirmation modal on the user's screen (use
src/Components/DecisionModal/ConfirmationModal.js. you can refer tosrc/Pages/CardReader/CardReader.jsto see how confirmation modal is used for deleting office access cards - if the user is already a verified member (membership state >= 1), the confirmation modal should say something like "hey, you're already a member, you can't verify membership!!". so you will need to use
response.accessLevelto determine what type of membership the user has. - if the user is a nonmember, the confirmation modal should have an input box that prompts the user to enter a confirmation code, as well as a submit button. the submit button should be disabled if the input box is empty. and then based on if the confirmation was successful or not, we can display a message to the user; for now, let's just give them a filler message like "you just confirmed your membership!"
- pop up a confirmation modal on the user's screen (use
feel free to use as much creative freedom as you'd like to create the UI, all that matters is functionality, have fun with your UI/UX 😁
Metadata
Metadata
Assignees
Labels
No labels