Commit 82d8e3c
committed
feat: implement production-ready web client and Google OAuth authentication
BREAKING CHANGES:
- Renamed 'backend' directory to 'server' across entire codebase
- Updated all documentation references from backend to server
Frontend Implementation (Next.js 15 + React 19):
- Built complete responsive web application with 165+ new files
- Implemented landing page with hero section, features showcase, and platform cards
- Created comprehensive UI component library using shadcn/ui (40+ components)
- Added animated gradient backgrounds, theme toggling, and shader effects
- Implemented dark/light mode support with theme persistence
Authentication & Authorization:
- Integrated Google OAuth 2.0 with Passport strategy
- Added OAuth callback handling with JWT token generation
- Created auth guards (GoogleAuthGuard) and DTOs (OAuthDto)
- Built complete auth UI with sign-in, sign-up, and forgot password flows
- Implemented protected routes with auth state management using Zustand
- Added comprehensive Google OAuth setup documentation
Contest Management UI:
- Created contest browsing interfaces (list, grid, detail views)
- Implemented real-time countdown timers for upcoming contests
- Added advanced filtering by platform, difficulty, type, and status
- Built contest search functionality with debouncing
- Created platform and difficulty badge components
- Added contest statistics charts and analytics visualization
Dashboard & User Features:
- Implemented user dashboard with widgets and quick actions
- Created profile management with tabs (Profile, Preferences, Security)
- Built notification center with filters, stats, and real-time updates
- Added user preference forms for notification channels and timing
- Implemented account deletion with confirmation dialogs
Admin Panel:
- Created admin layout with navigation and role-based access
- Built user management table with search and filtering
- Implemented contest sync panel for platform synchronization
- Added email composer for custom, bulk, and announcement emails
- Created admin settings page with system configuration
API Integration & State Management:
- Implemented complete API client with axios and request interceptors
- Added React Query for server state management and caching
- Created Zustand stores for auth and UI state
- Built type-safe service layers (auth, contests, notifications, users, admin)
- Implemented comprehensive TypeScript types matching server API schema
- Added automatic token refresh and error handling
Server Enhancements:
- Added 10 new notification endpoints (test channels, email operations)
- Enhanced contest controller with health check endpoint
- Implemented Google OAuth endpoints (/auth/google, /auth/google/callback)
- Added comprehensive environment configuration (.env.example)
- Updated config module for Google OAuth and frontend URL support
- Enhanced JWT payload and user schema for OAuth integration
Documentation:
- Created detailed Google OAuth setup guide (GOOGLE_OAUTH_SETUP.md)
- Added comprehensive UI structure documentation (UI_STRUCTURE.md)
- Migrated all backend documentation to server directory
- Updated 150+ documentation files with server references
- Enhanced API documentation with new endpoints
- Improved deployment and configuration guides
Development Experience:
- Configured Next.js 15 with TypeScript strict mode
- Set up Tailwind CSS 4 with custom configuration
- Added ESLint configuration for code quality
- Integrated PostCSS for CSS processing
- Added proper .gitignore for Next.js projects
- Set up comprehensive package.json with all dependencies
Dependencies Added:
- Frontend: next@15, react@19, react-hook-form, zod, zustand, @tanstack/react-query
- UI: tailwindcss@4, framer-motion, lucide-react, recharts
- Server: @nestjs/passport, passport-google-oauth20, passport types
Testing:
- Added comprehensive unit tests for Google OAuth strategy
- Enhanced auth service and controller test coverage
- Added test utilities for OAuth flows
Fixes:
- Fixed minor bugs from previous commits
- Corrected documentation UI inconsistencies
- Resolved user schema validation issues
- Fixed contest schema typing errors1 parent 4cc1425 commit 82d8e3c
File tree
111 files changed
+8075
-7653
lines changed- client/web
- app
- auth
- callback
- contests
- [id]
- running
- upcoming
- dashboard
- notifications
- components
- core
- auth
- contests
- dashboard
- landing
- notifications
- ui
- lib
- api
- hooks
- store
- types
- public
- docs
- .vitepress
- theme
- api/auth
- server
- src
- auth
- guards
- strategies
- common
- dto
- config
- contests
- schemas
- notifications
- schemas
- users
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
111 files changed
+8075
-7653
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
4 | 38 | | |
5 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
25 | | - | |
| 33 | + | |
26 | 34 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 35 | + | |
77 | 36 | | |
78 | 37 | | |
79 | 38 | | |
| |||
122 | 81 | | |
123 | 82 | | |
124 | 83 | | |
125 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
126 | 90 | | |
127 | 91 | | |
128 | | - | |
| 92 | + | |
129 | 93 | | |
130 | | - | |
| 94 | + | |
131 | 95 | | |
132 | 96 | | |
133 | 97 | | |
| |||
143 | 107 | | |
144 | 108 | | |
145 | 109 | | |
146 | | - | |
147 | | - | |
| 110 | + | |
148 | 111 | | |
149 | 112 | | |
150 | 113 | | |
| |||
158 | 121 | | |
159 | 122 | | |
160 | 123 | | |
161 | | - | |
162 | | - | |
| 124 | + | |
| 125 | + | |
163 | 126 | | |
164 | 127 | | |
165 | 128 | | |
166 | 129 | | |
167 | | - | |
| 130 | + | |
168 | 131 | | |
169 | 132 | | |
170 | 133 | | |
| |||
199 | 162 | | |
200 | 163 | | |
201 | 164 | | |
202 | | - | |
| 165 | + | |
203 | 166 | | |
204 | 167 | | |
205 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
0 commit comments