How bosspainter/califromlovable works
Calipro Painting’s application is a customer-facing painting-services website with project galleries, quote requests, a paint-advice feature, and a protected admin area for site content. Visitors enter through the home or service pages, browse gallery and project content, and can request a quote; the chat API and paint advisor provide a separate AI feature. Admins sign in, pass an authentication guard, and manage content backed by Supabase. The excerpts show the home page’s data loading and several integration calls; some listed routes and admin details are unsampled, so their internal behavior is not expanded.
Main entry points: routeTree.gen.ts Route registry · index.tsx Home page · client.ts Supabase backend · auth.tsx Sign-in page
Components 27
Public website
- Home page
src/routes/index.tsx - Chimney service
src/routes/chimney-fireplace.tsx - Gutter service
src/routes/gutter-cleaning.tsx - Quote form
src/components/contact-form.tsx - Paint advisor
src/components/paint-advisor.tsx - Chat API
src/routes/api/chat.ts - AI responses
src/lib/ai/responses.ts - AI run IDs
src/lib/ai/run-id.ts
Content and projects
- Project gallery
src/components/project-gallery.tsx - Gallery page
src/routes/gallery.tsx - Project listings
src/routes/projects.index.tsx - Project detail
src/routes/projects.$slug.tsx - CMS queries
src/lib/cms.ts
Admin and identity
- Admin console
src/routes/_authenticated/admin.tsx - Auth guard
src/routes/_authenticated/route.tsx - Sign-in page
src/routes/auth.tsx - OAuth integration
src/integrations/lovable/index.ts
Application platform
- Supabase backend
src/integrations/supabase/client.ts - Preview auth storage
src/integrations/supabase/previewAuthStorage.ts - Router setup
src/router.tsx - Route registry
src/routeTree.gen.ts - Application root
src/routes/__root.tsx - Server handler
src/server.ts - Error capture
src/lib/error-capture.ts - Error response page
src/lib/error-page.ts - Button component
src/components/ui/button.tsx
Other components
- Site visitor
Connections 34
- Site visitor → Home page: opens
src/routes/index.tsx - Site visitor → Chimney service: opens
- Site visitor → Gutter service: opens
- Site visitor → Gallery page: opens
- Site visitor → Project listings: opens
- Site visitor → Project detail: opens
- Site visitor → Sign-in page: opens
- Home page → CMS queries: loads content
src/routes/index.tsx - Home page → Quote form: renders
src/routes/index.tsx - Home page → Paint advisor: renders
src/routes/index.tsx - Home page → Project gallery: renders
src/routes/index.tsx - Quote form → Supabase backend: submits to
src/components/contact-form.tsx - Quote form → Button component: renders
src/components/contact-form.tsx - Chat API → AI responses: requests
src/routes/api/chat.ts - AI responses → AI run IDs: uses
src/lib/ai/responses.ts - Project gallery → CMS queries: loads content
src/components/project-gallery.tsx - CMS queries → Supabase backend: reads and uploads
src/lib/cms.ts - Sign-in page → OAuth integration: starts OAuth
src/routes/auth.tsx - Sign-in page → Supabase backend: checks session
src/routes/auth.tsx - Auth guard → Supabase backend: checks user
src/routes/_authenticated/route.tsx - Admin console → Supabase backend: accesses backend
src/routes/_authenticated/admin.tsx - Admin console → CMS queries: uses content tools
src/routes/_authenticated/admin.tsx - Supabase backend → Preview auth storage: configures storage
src/integrations/supabase/client.ts - Router setup → Route registry: loads routes
src/router.tsx - Route registry → Home page: registers route
src/routeTree.gen.ts - Route registry → Sign-in page: registers route
src/routeTree.gen.ts - Route registry → Chimney service: registers route
src/routeTree.gen.ts - Route registry → Gutter service: registers route
src/routeTree.gen.ts - Route registry → Gallery page: registers route
src/routeTree.gen.ts - Route registry → Project listings: registers route
src/routeTree.gen.ts - Route registry → Project detail: registers route
src/routeTree.gen.ts - Application root → Route registry: hosts routes
src/routeTree.gen.ts - Server handler → Error capture: captures errors
src/server.ts - Server handler → Error response page: renders on failure
src/server.ts