-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
organization approval workflow #167
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good! could you pull the latest changes from develop and run git merge develop
from your branch to merge everything? there have been a lot of changes to the sponsored orgs page so i don't want to accidentally break anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Developer: Vi-Linh Vu
Closes #111
Pull Request Summary
Created a tab for viewing organizations pending approval. Added routes to update organizations by user iD using clerk. Added check & cross buttons to organization cards pending approval for admins to approve/deny organizations.
Modifications
src/app/api/user/[id]/route.ts
: Added PUT route to modify unsafeMetadata by user id.src/app/api/user/route.ts
: Added general GET route for Clerk users.src/app/sponsored-organizations/page.tsx
:src/components/sponsored-org-card.tsx
:src/database/organization-schema.ts
: Addedapproved
status to Organization schema to use in SponsoredCardTesting Considerations
unsafeMetadata
. To get rid of a key withinunsafeMetadata
, you set the value tonull
.Pull Request Checklist
Screenshots/Screencast