Adding challenges - #11
Open
GuyOnWifi wants to merge 23 commits into
Open
Conversation
- automatically fetches challenges from the db - displays it in table format with filters - card format for a grid view with expandable text boxes
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sohelshekhIn
previously approved these changes
Jan 1, 2026
Contributor
Author
|
The code for QR scanning was written for check ins in mind, so adding challenges made the code a bit... hairy. Should I refactor it or leave it be? The only thing that I would have to implement is a way to revoke challenge submissions (would it be needed?) |
Admin dashboard that supports: - deletion of challenges - editing challenges - enable / disable - vieweing completion counts - adding challenges
Contributor
Author
|
Last thing for me to add is server-side checks on max completions of a challenge and I believe that is it. |
Added atomic operations to ensure a submission won't exceed max submissions. Added a unique constraint to the challenge submissions.
Added @radix-ui/react-switch to package.json and ensured @radix-ui/react-accordion is included.
…ponents Deleted the admin dashboard page, API routes for challenge management (create, update, delete), and associated UI components to streamline the application structure.
Replaced the custom isAuthenticated function with a direct session check using the auth module. This streamlines the authentication process for protected routes and improves code readability.
…additional buttons from ChallengeCard
all users see same set in challenges regardless of their role, only admins in the admin portal can view all challenges (enabeled / disabed)
Deleted the ChallengesDataTable and columns files, along with associated imports in ChallengesPage and ChallengeCard, to streamline the challenges section of the dashboard.
| { status: 404 }, | ||
| ); | ||
| } | ||
|
|
Member
There was a problem hiding this comment.
make sure to save logs for positve events
sohelshekhIn
previously approved these changes
Jan 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
So far, created a "challenges" tab that: