How aman-pannu/property-consultant-nextjs works
This is a Next.js property-consultant website with a public marketing and listings experience, suburb landing pages, lead capture, and a CRM-lite admin dashboard. A visitor can browse the site, submit a contact lead, and have it validated, stored, and optionally emailed; staff can search, stage, and export leads. Listings are selected through a provider-switching CMS layer, while services come from Supabase. The README also documents a weekly email digest and several CMS integrations. Relationships below follow excerpts and README statements; unsampled route or provider internals are not inferred.
Main entry points: page.jsx Home page · index.js Listings provider · supabase.js Supabase client · AdminTable.jsx Lead table
Components 34
Public experience
- Home page
app/page.jsx - Navigation
components/Navbar.jsx - Hero
components/Hero.jsx - Metrics
components/Metrics.jsx - Services section
components/Services.jsx - Listings section
components/Listings.jsx - Listing details
components/ListingDetailsModal.jsx - Testimonials
components/Testimonials.jsx - About section
components/About.jsx - Process section
components/Process.jsx - Contact form
components/Contact.jsx - Footer
components/Footer.jsx - Suburb pages
app/suburbs/[slug]/page.jsx - Sitemap
app/sitemap.js
Lead management
- Admin dashboard
app/admin/page.jsx - Lead table
components/AdminTable.jsx - Lead capture API
app/api/lead/route.js - Lead list API
app/api/leads/route.js - Lead update API
app/api/leads/[id]/route.js - CSV export API
app/api/leads/export/route.js - Weekly digest
app/api/cron/digest/route.js - Basic Auth
middleware.js
Content delivery
- Listings provider
lib/cms/index.js - Airtable adapter
lib/cms/airtable.js - Notion adapter
lib/cms/notion.js - Sanity adapter
lib/cms/sanity.js - Supabase listings
lib/cms/supabase.js - Local listings
content/listings.json - Suburb data
content/suburbs.json
Data and integrations
- Services query
lib/services.js - Supabase client
lib/supabase.js - Supabase database
- Email sender
lib/email.js
Other components
- Site visitor
Connections 41
- Site visitor → Home page: browses
README.md - Home page → Navigation: renders
app/page.jsx - Home page → Hero: renders
app/page.jsx - Home page → Metrics: renders
app/page.jsx - Home page → Services section: renders
app/page.jsx - Home page → Listings section: renders
app/page.jsx - Home page → Testimonials: renders
app/page.jsx - Home page → About section: renders
app/page.jsx - Home page → Process section: renders
app/page.jsx - Home page → Contact form: renders
app/page.jsx - Home page → Footer: renders
app/page.jsx - Site visitor → Contact form: submits inquiry
README.md - Contact form → Lead capture API: posts lead
- Listings section → Listings provider: loads listings
components/Listings.jsx - Listings section → Listing details: opens details
components/Listings.jsx - Listings provider → Airtable adapter: dispatches
lib/cms/index.js - Listings provider → Notion adapter: dispatches
lib/cms/index.js - Listings provider → Sanity adapter: dispatches
lib/cms/index.js - Listings provider → Supabase listings: dispatches
lib/cms/index.js - Listings provider → Local listings: reads local JSON
lib/cms/index.js - Suburb pages → Listings provider: loads listings
app/suburbs/[slug]/page.jsx - Suburb pages → Listings provider: loads suburbs
app/suburbs/[slug]/page.jsx - Listings provider → Suburb data: reads suburbs
lib/cms/index.js - Sitemap → Listings provider: loads suburbs
app/sitemap.js - Services section → Services query: requests services
components/Services.jsx - Services query → Supabase client: queries services
lib/services.js - Admin dashboard → Lead table: renders
app/admin/page.jsx - Lead table → Lead list API: fetches leads
components/AdminTable.jsx - Lead table → Lead update API: updates stage
components/AdminTable.jsx - Lead table → CSV export API: downloads CSV
components/AdminTable.jsx - Admin dashboard → Basic Auth: protected by
README.md - Lead capture API → Supabase client: reads and writes
app/api/lead/route.js - Lead capture API → Email sender: sends alert
app/api/lead/route.js - Lead list API → Supabase client: queries leads
app/api/leads/route.js - Lead update API → Supabase client: updates lead
app/api/leads/[id]/route.js - CSV export API → Supabase client: queries leads
app/api/leads/export/route.js - Weekly digest → Supabase client: queries recent leads
app/api/cron/digest/route.js - Weekly digest → Email sender: sends digest
app/api/cron/digest/route.js - Supabase client → Supabase database: accesses data
lib/supabase.js - Supabase listings → Supabase client: uses client
lib/cms/supabase.js - Email sender → Site visitor: notifies staff