Repository navigation
feat: Enhance navbar with login/logout functionality and account menu… - #21
Open
WasThatRudy wants to merge 28 commits into
Open
WasThatRudy wants to merge 28 commits into
WasThatRudy wants to merge 28 commits into
Conversation
…; add token management and logout confirmation modal
…data fetching; update navbar links to use Next.js Link component
…e submission handling with new input fields and error management
…ement event listeners for auth updates and improve user experience in Hero and Navbar
… improve clarity for users by specifying expected link types
…amline authentication handling by eliminating unnecessary localStorage reads
…r team submissions and enhance section decorations with animations
… teams; enhance data structure for submissions and improve UI for project links
…afety for participant data in submissions API
…ion state management and related effects for improved performance
…sions API and update UI to display this information in the submissions section
…missions component for improved user experience
…y and adjusting skeleton display logic for better clarity
…o streamline code
…nality, displaying top 3 winning teams, and improving project links presentation for better user engagement
Restore RegistrationForm on /register (was commented out after last year's event) and bring back the active Register For Hackathon button in the hero.
- next 15.3.5 -> 16, eslint-config-next 16 (native flat config, next lint replaced with eslint CLI) - mongoose 8 -> 9, rate-limiter-flexible 7 -> 11, lucide-react 1.x, plus all minor/patch bumps (react 19.2, ioredis, cloudinary, etc.) - lucide 1.x dropped brand icons; add local Github/Linkedin/Twitter SVGs in components/ui/brand-icons.tsx with the same API - drop unused deps: drizzle-orm, mongodb (mongoose bundles its own driver), deprecated @types/ioredis - remove stale pnpm-lock.yaml so Vercel installs from package-lock Tailwind stays on 3.x deliberately: v4 is a config migration, deferred to the frontend refresh.
consume() rejects with a plain Error (not a RateLimiterRes) when the Redis store is unreachable. The catch treated every rejection as a 429, so a dead Redis blocked ALL traffic with a misleading 'try again in 0 minutes' response. Fail open on store errors instead and log loudly; rate limiting is defense-in-depth, not a gate worth taking registrations down for. Also ceil the retry message so genuine limits never display '0 minutes'.
The regex requires an Indian mobile number (first digit 6-9), but the error said 'must be 10 digits', which is confusing when a 10-digit number is rejected. Say what's actually required, in both API routes and the form.
The Cloudinary SDK rejects with plain objects ({message, http_code}),
not Error instances, so every upload failure was reported as
'Unknown error occurred'. Extract the SDK's message and HTTP code so
bad credentials, quota, etc. are visible in the response and logs.
Frontend replaced wholesale with the 2026 design — hairline grid, Chalet/Source Code Pro, notched buttons, single-accent budget — copied verbatim from sxivansx/segfault2026. Backend untouched: all API routes and lib moved to src/ to adopt the design repo's layout (tsconfig @/* now maps to ./src/*). The design's /register was a placeholder; the registration form is now built in its design language (numbered fieldsets, mono labels, notched submit, ok/err mono states) and wired to /api/teamRegistration with client validation mirroring the API rules. The page stays gated on REGISTRATION.state in src/content/event.ts — flip 'soon' to 'open' to launch. Old UI (landing, dashboard, login, multi-step form) and its deps (framer-motion, radix, lucide, zustand, tailwind 3 toolchain) removed; now tailwind 4 + motion. Old pages remain in git history for the hackathon phase rebuild.
Strip the 2025 post-hackathon API routes (auth/login, teamDetails, submission, submissions, clickTracking) and the jsonwebtoken dep they carried — this deployment registers teams, nothing else. The footer's 2025 proof strip now points at the archived site's new home, 2025.segfault.compilertech.org.
SegFault 2026 development moved to WasThatRudy/segfault-2026. This repo returns to its end-of-2025 state (registrations closed, winners and submissions on display) and will be served at 2025.segfault.compilertech.org.
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.
…; add token management and logout confirmation modal