How itoohealth/frontend-waitlist works
iTOO is a vision-care waitlist site: visitors review the landing page, submit their details (optionally with a referral code), and are directed to a success page with their referral code and queue position. The API validates and stores registrations; admin routes expose waitlist statistics and CSV export. Landing-page composition and registration calls are evidenced in excerpts. Admin-page wiring and the success page’s internal behavior were not sampled, so those relationships are left unverified.
Main entry points: app/page.tsx Landing page · index.ts Database client · Form.tsx Signup form · admin/page.tsx Admin page
Components 19
Public site
- Landing page
src/app/page.tsx - Navigation
src/app/components/Navbar.tsx - Hero section
src/app/components/Hero.tsx - Overview section
src/app/components/Overview.tsx - Features section
src/app/components/Features.tsx - Waitlist steps
src/app/components/WaitlistSteps.tsx - Footer CTA
src/app/components/FooterCTA.tsx - Fade animations
src/app/components/animations.tsx
Waitlist registration
- Signup form
src/app/components/Form.tsx - Success page
src/app/success/page.tsx - Signup API
src/app/api/waitlist/route.ts
Waitlist administration
- Admin page
src/app/admin/page.tsx - Waitlist API
src/app/api/admin/waitlist/route.ts - CSV export API
src/app/api/admin/export-csv/route.ts
Persistence
- Database client
src/db/index.ts - Waitlist schema
src/db/schema.ts
Other components
- Visitor
- Neon PostgreSQL
- Admin
Connections 19
- Visitor → Landing page: visits
src/app/page.tsx - Landing page → Navigation: renders
src/app/page.tsx - Landing page → Hero section: renders
src/app/page.tsx - Landing page → Overview section: renders
src/app/page.tsx - Landing page → Features section: renders
src/app/page.tsx - Landing page → Waitlist steps: renders
src/app/page.tsx - Landing page → Footer CTA: renders
src/app/page.tsx - Landing page → Fade animations: wraps sections
src/app/page.tsx - Hero section → Signup form: renders
src/app/components/Hero.tsx - Signup form → Signup API: POSTs signup
src/app/components/Form.tsx - Signup form → Success page: redirects with details
src/app/components/Form.tsx - Signup API → Database client: queries and inserts
src/app/api/waitlist/route.ts - Database client → Waitlist schema: configures ORM
src/db/index.ts - Database client → Neon PostgreSQL: connects
src/db/index.ts - Admin → Admin page: opens
- Admin page → Waitlist API: requests entries
- Admin page → CSV export API: requests export
- Waitlist API → Database client: reads entries
src/app/api/admin/waitlist/route.ts - CSV export API → Database client: reads entries
src/app/api/admin/export-csv/route.ts