How dream-kid-342/canon-motors works
This is a Canon Motors vehicle-import showcase and enquiry site, despite the generic README title. Visitors discover inventory from the home page, browse or filter listings, inspect vehicle details, save favourites, and contact the business; supporting pages explain categories, makes, and the import process. The graph separates routes, shared site components, inventory/contact logic, and runtime support. Relationships are based on excerpts and SOURCE INDEX references; unsampled route behavior is represented only where the index or route tree supports it.
Main entry points: PageHeader.tsx Page heading · business.ts Business contact links · index.tsx Home and discovery · inventory.ts Inventory adapter
Components 28
Site routes
- Shared site shell
src/routes/__root.tsx - Home and discovery
src/routes/index.tsx - Vehicle listings
src/routes/vehicles.index.tsx - Vehicle detail
src/routes/vehicles.$id.tsx - Saved vehicles
src/routes/favourites.tsx - Categories
src/routes/categories.tsx - Makes
src/routes/makes.tsx - Contact page
src/routes/contact.tsx - About page
src/routes/about.tsx - Importing guide
src/routes/how-importing-works.tsx
Site presentation
- Navigation header
src/components/site/SiteHeader.tsx - Site footer
src/components/site/SiteFooter.tsx - Page heading
src/components/site/PageHeader.tsx - Vehicle card
src/components/site/VehicleCard.tsx - Enquiry form
src/components/site/EnquiryForm.tsx - UI controls
src/components/ui/button.tsx - Mobile sheet
src/components/ui/sheet.tsx
Inventory and contact
- Inventory adapter
src/lib/inventory.ts - Favourites state
src/lib/favourites.ts - Business contact links
src/lib/business.ts
App runtime
- Router setup
src/router.tsx - Route registry
src/routeTree.gen.ts - Server entry
src/server.ts - Error capture
src/lib/error-capture.ts - Error response
src/lib/error-page.ts
Other components
- Visitor
- Email client
Connections 45
- Visitor → Router setup: opens site
src/router.tsx - Router setup → Route registry: uses routes
src/router.tsx - Route registry → Shared site shell: registers routes
src/routeTree.gen.ts - Visitor → Home and discovery: browses
src/routes/index.tsx - Visitor → Vehicle listings: browses
- Visitor → Vehicle detail: opens listing
- Shared site shell → Navigation header: renders
src/routes/__root.tsx - Shared site shell → Site footer: renders
src/routes/__root.tsx - Home and discovery → Inventory adapter: reads listings
src/routes/index.tsx - Home and discovery → Vehicle card: renders
src/routes/index.tsx - Home and discovery → Enquiry form: renders
src/routes/index.tsx - Home and discovery → Business contact links: uses contact links
src/routes/index.tsx - Vehicle listings → Inventory adapter: filters listings
src/routes/vehicles.index.tsx - Vehicle listings → Vehicle card: renders
src/routes/vehicles.index.tsx - Vehicle detail → Inventory adapter: looks up vehicle
src/routes/vehicles.$id.tsx - Vehicle detail → Vehicle card: renders related vehicle
src/routes/vehicles.$id.tsx - Vehicle detail → Enquiry form: renders enquiry
src/routes/vehicles.$id.tsx - Vehicle detail → Business contact links: uses contact details
src/routes/vehicles.$id.tsx - Saved vehicles → Favourites state: reads saved IDs
src/routes/favourites.tsx - Saved vehicles → Inventory adapter: resolves vehicles
src/routes/favourites.tsx - Saved vehicles → Vehicle card: renders
src/routes/favourites.tsx - Categories → Inventory adapter: counts categories
src/routes/categories.tsx - Makes → Inventory adapter: counts makes
src/routes/makes.tsx - Contact page → Enquiry form: renders enquiry
src/routes/contact.tsx - Contact page → Business contact links: shows contacts
src/routes/contact.tsx - Home and discovery → Page heading: uses guide steps
src/routes/index.tsx - About page → Page heading: renders heading
src/routes/about.tsx - Categories → Page heading: renders heading
src/routes/categories.tsx - Makes → Page heading: renders heading
src/routes/makes.tsx - Contact page → Page heading: renders heading
src/routes/contact.tsx - Saved vehicles → Page heading: renders heading
src/routes/favourites.tsx - Vehicle listings → Page heading: renders heading
src/routes/vehicles.index.tsx - Importing guide → Page heading: renders heading
src/routes/how-importing-works.tsx - Navigation header → Favourites state: reads saved IDs
src/components/site/SiteHeader.tsx - Navigation header → Business contact links: uses phone link
src/components/site/SiteHeader.tsx - Navigation header → UI controls: uses buttons
src/components/site/SiteHeader.tsx - Vehicle card → Inventory adapter: formats vehicle
src/components/site/VehicleCard.tsx - Vehicle card → Favourites state: toggles saved state
src/components/site/VehicleCard.tsx - Enquiry form → Business contact links: builds message links
src/components/site/EnquiryForm.tsx - Enquiry form → UI controls: uses buttons
src/components/site/EnquiryForm.tsx - Business contact links → WhatsApp: opens chat link
- Business contact links → Email client: opens mail link
- Server entry → Error capture: uses capture
src/server.ts - Server entry → Error response: uses error response
src/server.ts - Mobile sheet → UI controls: supports sidebar