Adding challenges - #11
Open
GuyOnWifi wants to merge 81 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.
* refactor: improve messaging and layout across dashboard components * feat: implement dynamic site banners with dismissal functionality * fix: banner build error * refactor: banner implementation * refactor: update short question 1
* fix: update schedule-view for dark mode * feat: dyanmic time slot to reduce scroll height * feat: little more fun to the schedule view - Introduced a theme toggle for light and dark modes in the schedule view. - Updated ScheduleEvent component to adapt event colors based on the selected theme. - Created ScheduleThemeToggle and ScheduleThemeProvider components for managing theme state. - Enhanced global CSS with new variables for light mode styling. - Refactored SchedulePage to utilize the new ScheduleView component for improved structure. * build fix
* fix: update schedule-view for dark mode * feat: dyanmic time slot to reduce scroll height * feat: little more fun to the schedule view - Introduced a theme toggle for light and dark modes in the schedule view. - Updated ScheduleEvent component to adapt event colors based on the selected theme. - Created ScheduleThemeToggle and ScheduleThemeProvider components for managing theme state. - Enhanced global CSS with new variables for light mode styling. - Refactored SchedulePage to utilize the new ScheduleView component for improved structure. * build fix * feat: add QR code scanner functionality and enhance dashboard layout - Introduced a new Scanner page for QR code scanning, including camera permission handling and event selection. - Removed the QrCodeOrganizerActions component as its functionality is no longer needed. - Updated the QRCodePage layout for improved user experience. - Enhanced Sidebar navigation to conditionally display links based on user roles. - Added camera permission prompts and improved camera access handling in the scanner component. - Updated navigation configuration to include the new Scanner page, restricted to volunteer roles. * feat: enhance RSVP form with phone number validation and input component
* fix: update schedule-view for dark mode * feat: dyanmic time slot to reduce scroll height * feat: little more fun to the schedule view - Introduced a theme toggle for light and dark modes in the schedule view. - Updated ScheduleEvent component to adapt event colors based on the selected theme. - Created ScheduleThemeToggle and ScheduleThemeProvider components for managing theme state. - Enhanced global CSS with new variables for light mode styling. - Refactored SchedulePage to utilize the new ScheduleView component for improved structure. * build fix * feat: add QR code scanner functionality and enhance dashboard layout - Introduced a new Scanner page for QR code scanning, including camera permission handling and event selection. - Removed the QrCodeOrganizerActions component as its functionality is no longer needed. - Updated the QRCodePage layout for improved user experience. - Enhanced Sidebar navigation to conditionally display links based on user roles. - Added camera permission prompts and improved camera access handling in the scanner component. - Updated navigation configuration to include the new Scanner page, restricted to volunteer roles. * feat: enhance RSVP form with phone number validation and input component * block hacker view into profile, schedule & qr * update rsvp days * feat: update HackathonPrepEmail with new design and event details
…in the status configuration and email templates. Introduce a new script for resetting all user passwords for testing purposes, with safety checks and confirmation prompts.
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: