How enpassant-chess-forum-abesec/en-passant-client works
En-Passant is a Next.js frontend for a chess club, combining public club content with account, recruitment, and administrative workflows. The principal user journey is authentication, recruitment application, task selection and submission; administrators manage applications, tasks, departments, users, and payments. Pages use a shared API helper for backend requests, which attaches Clerk tokens. Public event, leaderboard, and profile capabilities are also represented. Several routes and admin panels were not sampled, so their internal calls are shown only where the README or SOURCE INDEX supports them.
Main entry points: api.js Authenticated API helper · admin/page.js Admin dashboard · [[...sign-in]]/page.js Sign-in and signup · profile/page.js Account profile
Components 21
Public site
- Club homepage
src/app/page.js - Contact form
src/app/contact/page.js - Event gallery
src/app/event-gallery/page.js - Chess leaderboard
src/app/leaderboard/page.js
Identity and profiles
- Sign-in and signup
src/app/auth/sign-in/[[...sign-in]]/page.js - Clerk identity
- Account profile
src/app/profile/page.js - Public user profile
src/app/u/[userName]/page.js
Recruitment
- Recruitment application
src/app/recruitment/apply/page.js - Applicant dashboard
src/app/recruitment/dashboard/page.js - Task selection
src/app/tasks/page.js - Task submission UI
src/components/TaskSubmissionModal.jsx
Administration
- Admin dashboard
src/app/admin/page.js - Application management
src/components/admin/ApplicationsTab.js - Task management
src/components/admin/TasksTab.js - Submission review
src/components/admin/SubmissionReviewDrawer.js - Other admin tools
src/app/admin
API and shared services
- Authenticated API helper
src/lib/api.js - Clerk appearance
src/lib/clerkAppearance.js
Other components
- Visitor
- En-Passant backend
Connections 28
- Visitor → Club homepage: visits
README.md - Visitor → Contact form: inquires
README.md - Visitor → Event gallery: views events
README.md - Visitor → Chess leaderboard: views rankings
README.md - Visitor → Sign-in and signup: authenticates
README.md - Sign-in and signup → Clerk identity: uses identity
README.md - Account profile → Clerk identity: uses session
README.md - Account profile → Authenticated API helper: requests profile data
src/app/profile/page.js - Public user profile → Authenticated API helper: requests profile data
src/app/u/[userName]/page.js - Chess leaderboard → Authenticated API helper: fetches rankings
src/app/leaderboard/page.js - Contact form → Authenticated API helper: sends inquiry
src/app/contact/page.js - Visitor → Recruitment application: applies
README.md - Recruitment application → Authenticated API helper: submits application
src/app/recruitment/apply/page.js - Applicant dashboard → Authenticated API helper: loads application status
src/app/recruitment/dashboard/page.js - Visitor → Task selection: selects tasks
README.md - Task selection → Authenticated API helper: loads task data
src/app/tasks/page.js - Task submission UI → Authenticated API helper: submits task
src/components/TaskSubmissionModal.jsx - Admin dashboard → Authenticated API helper: loads admin data
src/app/admin/page.js - Admin dashboard → Application management: presents applications
- Admin dashboard → Task management: presents tasks
- Application management → Submission review: opens review
- Task management → Authenticated API helper: manages tasks
src/components/admin/TasksTab.js - Submission review → Authenticated API helper: loads submission details
src/components/admin/SubmissionReviewDrawer.js - Visitor → Admin dashboard: administers
README.md - Admin dashboard → Other admin tools: routes to admin tools
- Authenticated API helper → Clerk identity: gets session token
src/lib/api.js - Authenticated API helper → En-Passant backend: sends API requests
src/lib/api.js - Sign-in and signup → Clerk appearance: styles Clerk UI