Skip to content

Adding challenges - #11

Open
GuyOnWifi wants to merge 81 commits into
stagingfrom
challenges
Open

Adding challenges#11
GuyOnWifi wants to merge 81 commits into
stagingfrom
challenges

Conversation

@GuyOnWifi

Copy link
Copy Markdown
Contributor

So far, created a "challenges" tab that:

  • automatically fetches challenges from the db
  • displays it in table format with filters
  • card format for a grid view with expandable text boxes

- automatically fetches challenges from the db
- displays it in table format with filters
- card format for a grid view with expandable text boxes
@vercel

vercel Bot commented Jan 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daedalus-hacker-portal Error Error Mar 5, 2026 1:25am

Request Review

@sohelshekhIn
sohelshekhIn changed the base branch from main to staging January 1, 2026 07:28
sohelshekhIn
sohelshekhIn previously approved these changes Jan 1, 2026
@GuyOnWifi

Copy link
Copy Markdown
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
@GuyOnWifi

Copy link
Copy Markdown
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.
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.
sohelshekhIn and others added 3 commits February 6, 2026 02:10
* 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
sohelshekhIn and others added 18 commits February 23, 2026 00:37
* 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.
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