How dave-olu/ultrasonic-nigeria works
Ultrasonic Power Line Venture is a solar-services website with an admin content and account-management area. The public home-page flow loads site content, renders it for visitors, and offers quote requests via WhatsApp; admins can manage site content and authenticate by password or email link. The graph includes documented-by-tree pages and routes even where their implementation was not sampled. Those unsampled components are not connected without evidence; storage and integration links reflect the excerpts shown.
Main entry points: admin-auth.ts Auth logic · admin-auth-form.tsx Admin auth forms · page.tsx Home route · site-home.tsx Home experience
Components 25
Public website
- Home route
Project/app/page.tsx - Home experience
Project/components/site-home.tsx - FAQ section
Project/components/faq-section.tsx - Info pages
Project/app/about/page.tsx - Services page
Project/app/services/page.tsx - Projects page
Project/app/projects/page.tsx - Products page
Project/app/products/page.tsx - Contact page
Project/app/contact/page.tsx
Content management
- Admin dashboard
Project/app/admin/page.tsx - Content API
Project/app/api/site-content/route.ts - Content repository
Project/lib/site-data.ts
Admin authentication
- Admin auth forms
Project/components/admin-auth-form.tsx - Signup endpoint
Project/app/api/auth/signup/route.ts - Password login
Project/app/api/auth/login/route.ts - Email-link request
Project/app/api/auth/email-link/route.ts - Email-link login
Project/app/api/auth/email-login/route.ts - Session endpoint
Project/app/api/auth/session/route.ts - Other auth routes
Project/app/api/auth - Auth logic
Project/lib/admin-auth.ts
Persistence and integrations
- Site content files
Project/data/site-content.json - Auth storage
- Resend email
Other components
- Visitor
- Administrator
Connections 22
- Visitor → Home route: opens
- Home route → Content repository: loads content
Project/app/page.tsx - Home route → Home experience: renders
Project/app/page.tsx - Home experience → FAQ section: renders
Project/components/site-home.tsx - Home experience → WhatsApp: opens quote
Project/components/site-home.tsx - Content API → Auth logic: checks session
Project/app/api/site-content/route.ts - Content API → Content repository: reads and saves
Project/app/api/site-content/route.ts - Content repository → Site content files: reads and writes
Project/lib/site-data.ts - Administrator → Admin dashboard: manages content
- Admin dashboard → Content API: requests changes
- Admin auth forms → Signup endpoint: submits signup
- Admin auth forms → Password login: submits credentials
- Admin auth forms → Email-link request: requests link
- Admin auth forms → Email-link login: submits token
- Signup endpoint → Auth logic: creates account
Project/app/api/auth/signup/route.ts - Password login → Auth logic: verifies credentials
Project/app/api/auth/login/route.ts - Email-link request → Auth logic: creates token
Project/app/api/auth/email-link/route.ts - Email-link request → Resend email: sends email
Project/app/api/auth/email-link/route.ts - Email-link login → Auth logic: consumes token
Project/app/api/auth/email-login/route.ts - Session endpoint → Auth logic: reads session
Project/app/api/auth/session/route.ts - Auth logic → Auth storage: persists auth data
- Administrator → Other auth routes: uses account tools