Skip to content

Adding challenges - #11

Open
GuyOnWifi wants to merge 23 commits into
stagingfrom
challenges
Open

Adding challenges#11
GuyOnWifi wants to merge 23 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.
{ status: 404 },
);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

make sure to save logs for positve events

sohelshekhIn
sohelshekhIn previously approved these changes Jan 13, 2026
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