How danncode10/juanproperty works
JuanProperty is a property-management SaaS with a public marketing and blog site, an authenticated dashboard for operational work, and an AI Secretary for data summaries and scheduling. The main user journey is entering through the site, signing in, and managing workspace data; the chat route separately streams assistant responses and persists chat messages. Dashboard capabilities and several domain modules are visible in the tree but were not sampled, so their internal connections are left unverified rather than inferred.
Main entry points: page.tsx Home page · server.ts Supabase clients · route.ts Chat API · tools Assistant tools
Components 27
Public site
- Home page
src/app/page.tsx - Landing sections
src/components/landing - Feature tabs
src/components/features-tabs.tsx - Site navigation
src/components/navbar.tsx - Site configuration
src/lib/config.ts - Blog pages
src/app/blog - Blog preview
src/components/landing/blog-preview.tsx
Workspace operations
- Blog service
src/services/blog.ts - Login page
src/app/login/page.tsx - Dashboard pages
src/app/dashboard - Dashboard service
src/services/dashboard.ts - Leads, bookings, gallery, team
src/services - Services editor
src/components/dashboard/tabs/services-tab.tsx - Services service
src/services/services.ts - BIR tax calculations
src/bir/core - Scheduling domain
src/scheduling/core
AI Secretary
- Chat interface
src/hooks/use-active-chat.tsx - Chat API
src/app/api/chat/route.ts - Chat persistence
src/services/ai-chat.service.ts - Assistant tools
src/ai/tools - Artifact preview
src/components/chat/document-preview.tsx
Platform services
- Authentication services
src/services/auth.ts - Supabase clients
src/utils/supabase/server.ts - Database schema types
src/lib/db/schema.ts - Supabase database
Other components
- Visitor
- OpenAI model
Connections 23
- Visitor → Home page: opens
- Home page → Site navigation: renders
src/app/page.tsx - Home page → Landing sections: renders
src/app/page.tsx - Home page → Feature tabs: renders
src/app/page.tsx - Home page → Dashboard service: loads profile data
src/app/page.tsx - Home page → Site configuration: reads configuration
src/app/page.tsx - Blog pages → Blog service: loads posts
src/app/blog/[slug]/page.tsx - Blog preview → Blog service: loads posts
src/components/landing/blog-preview.tsx - Login page → Authentication services: uses authentication
src/app/login/page.tsx - Services editor → Services service: manages services
src/components/dashboard/tabs/services-tab.tsx - Chat interface → Chat API: sends chat requests
- Chat API → Chat persistence: persists messages
src/app/api/chat/route.ts - Chat API → Assistant tools: selects enabled tools
src/app/api/chat/route.ts - Chat API → OpenAI model: streams completion
src/app/api/chat/route.ts - Chat persistence → Supabase clients: queries database
src/services/ai-chat.service.ts - Assistant tools → Supabase clients: reads workspace data
src/ai/tools/getDatabaseSummary.ts - Assistant tools → Scheduling domain: may create schedules
- Services service → Supabase clients: reads and writes services
src/services/services.ts - Blog service → Supabase clients: queries content
src/services/blog.ts - Supabase clients → Supabase database: reads and writes
- Dashboard pages → Leads, bookings, gallery, team: manages records
- Dashboard pages → BIR tax calculations: offers tax workflows
- Artifact preview → Chat interface: shares chat artifacts