How durwank2002/doors_timberframe works
TimberCraft is a React storefront for handcrafted wooden doors and frames. Shoppers browse and filter the catalog, inspect products, optionally configure a door, then add selections to a quote cart or contact the business through an enquiry form or WhatsApp. Cart and wishlist state persist in browser storage, with toast feedback. The graph covers the principal storefront and quote workflow plus product visualization and timber guidance; some App wiring and unsampled component behavior are supported only by the source index, so uncertain links are omitted.
Main entry points: App.jsx Storefront app · ProductDetailModal.jsx Product details · CartContext.jsx Quote cart · EnquiryModal.jsx Enquiry form
Components 26
Storefront
- Storefront app
src/App.jsx - Storefront layout
src/components/layout
Product discovery
- Catalog grid
src/components/catalog/CatalogGrid.jsx - Catalog filters
src/components/catalog/FilterSidebar.jsx - Catalog search
src/components/catalog/SearchBar.jsx - Catalog sorting
src/components/catalog/SortDropdown.jsx - Product cards
src/components/catalog/ProductCard.jsx - Product catalog data
src/data/products.js
Product exploration
- Product details
src/components/product/ProductDetailModal.jsx - Product gallery
src/components/product/ProductGallery.jsx - Door configurator
src/components/configurator/CustomDoorConfigurator.jsx - Room visualizer
src/components/product/RoomVisualizer.jsx - Timber guide
src/components/catalog/TimberSpeciesGuide.jsx
Quotes and state
- Quote cart
src/context/CartContext.jsx - Cart drawer
src/components/cart/CartDrawer.jsx - Wishlist state
src/context/WishlistContext.jsx - Wishlist drawer
src/components/wishlist/WishlistDrawer.jsx - Enquiry form
src/components/enquiry/EnquiryModal.jsx
Shared logic
- Toast feedback
src/context/ToastContext.jsx - Persistent state hook
src/hooks/useLocalStorage.js - Price formatting
src/utils/formatters.js - Form validation
src/utils/validators.js - WhatsApp link builder
src/utils/whatsapp.js
Other components
- Shopper
- Browser local storage
Connections 35
- Shopper → Storefront app: browses
src/App.jsx - Storefront app → Storefront layout: renders
src/App.jsx - Storefront app → Catalog search: renders
src/App.jsx - Storefront app → Catalog sorting: renders
src/App.jsx - Storefront app → Catalog filters: renders
src/App.jsx - Storefront app → Catalog grid: renders
src/App.jsx - Catalog grid → Product cards: renders
src/components/catalog/CatalogGrid.jsx - Storefront app → Product details: renders
src/App.jsx - Product details → Product gallery: renders
src/components/product/ProductDetailModal.jsx - Storefront app → Door configurator: renders
src/App.jsx - Storefront app → Room visualizer: renders
src/App.jsx - Storefront app → Timber guide: renders
src/App.jsx - Product details → Quote cart: adds items
src/components/product/ProductDetailModal.jsx - Door configurator → Quote cart: adds items
src/components/configurator/CustomDoorConfigurator.jsx - Cart drawer → Quote cart: updates cart
src/components/cart/CartDrawer.jsx - Storefront app → Cart drawer: renders
src/App.jsx - Storefront app → Wishlist drawer: renders
src/App.jsx - Product details → Wishlist state: toggles items
src/components/product/ProductDetailModal.jsx - Wishlist drawer → Wishlist state: reads state
src/components/wishlist/WishlistDrawer.jsx - Storefront app → Enquiry form: renders
src/App.jsx - Enquiry form → Quote cart: reads quote
src/components/enquiry/EnquiryModal.jsx - Enquiry form → WhatsApp link builder: builds link
src/components/enquiry/EnquiryModal.jsx - Cart drawer → WhatsApp link builder: builds link
src/components/cart/CartDrawer.jsx - Product details → WhatsApp link builder: builds link
src/components/product/ProductDetailModal.jsx - WhatsApp link builder → WhatsApp: opens chat
src/utils/whatsapp.js - Enquiry form → Form validation: validates input
src/components/enquiry/EnquiryModal.jsx - Quote cart → Persistent state hook: persists state
src/context/CartContext.jsx - Wishlist state → Persistent state hook: persists state
src/context/WishlistContext.jsx - Persistent state hook → Browser local storage: reads and writes
src/hooks/useLocalStorage.js - Quote cart → Toast feedback: shows feedback
src/context/CartContext.jsx - Wishlist state → Toast feedback: shows feedback
src/context/WishlistContext.jsx - Enquiry form → Toast feedback: shows feedback
src/components/enquiry/EnquiryModal.jsx - Catalog grid → Product catalog data: displays products
- Product details → Price formatting: formats prices
src/components/product/ProductDetailModal.jsx - WhatsApp link builder → Price formatting: formats currency
src/utils/whatsapp.js