Skip to content
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

Add popup to edit user #132

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

nickbar01234
Copy link
Collaborator

Description

Implement API route to edit user's position and display popup on chapter leader view to edit position.

Screenshots

image image

Possible Downsides

I reused Dropdown to implement edit position. To iterate quickly, I also changed the styling for assigning students to a senior. The resulting changes is different from what we have on the mockup. I can revisit the code later to adjust the background color to match the design if necessary.

image

Copy link

vercel bot commented Mar 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
the-legacy-project2 ✅ Ready (Inspect) Visit Preview Mar 25, 2024 5:30pm

const chapter = await prisma.chapter.findFirstOrThrow({
where: {
id: user.ChapterID ?? "",
students: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get all the necessary information with 1 call to the database!

@@ -34,7 +34,7 @@ const InfoTile = (params: InfoTileProps) => {

return (
<div className="flex h-fit w-full flex-col gap-y-4 rounded-lg bg-white p-6 shadow-lg">
<div className="flex justify-between">
<div className="relative flex justify-between">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this for the popup with the ... icon. Otherwise, it will fly out of the screen.

Copy link
Collaborator

@cledi01 cledi01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested functionality on my end as well. Everything looks good!

@nickbar01234 nickbar01234 merged commit 1d9e5c7 into main Mar 25, 2024
4 checks passed
@nickbar01234 nickbar01234 deleted the nickbar01234/edit-position-popup branch March 25, 2024 20:36
johnny-t06 pushed a commit that referenced this pull request Mar 27, 2024
johnny-t06 pushed a commit that referenced this pull request Mar 27, 2024
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.

2 participants