How muhammad-faizullah/e-commerce-frontend works
Dastoor is a responsive South Asian menswear category-preview storefront, not a live shop. A visitor browses the homepage’s editorial category collection, narrows it by category or search, and can open local-only sign-in or sign-up previews; there is no checkout or backend catalogue connection. The graph separates catalogue content, page routing, account previews, and shared UI/runtime support. Edges reflect the sampled entry point and imports, plus README-documented catalogue behavior; unsampled details are omitted rather than inferred.
Main entry points: App.tsx App and routes · main.tsx React entry point · toaster.tsx Toast display · utils.ts Class utilities
Components 14
Storefront
- App and routes
src/App.tsx - Not-found page
src/pages/not-found.tsx
Editorial catalog
- Category content
src/data/categories.ts - Editorial images
public/collections
Account previews
- Sign-in and sign-up
src/pages/account.tsx
Shared UI and runtime
- React entry point
src/main.tsx - Error boundary
src/components/error-boundary.tsx - Toast display
src/components/ui/toaster.tsx - Toast state
src/hooks/use-toast.ts - Toast primitives
src/components/ui/toast.tsx - Tooltip provider
src/components/ui/tooltip.tsx - Card primitive
src/components/ui/card.tsx - Class utilities
src/lib/utils.ts
Other components
- Visitor
Connections 16
- Visitor → React entry point: opens storefront
- React entry point → App and routes: renders
src/main.tsx - React entry point → Error boundary: wraps app
src/main.tsx - App and routes → Category content: filters and searches
README.md - App and routes → Editorial images: displays imagery
README.md - App and routes → Sign-in and sign-up: routes to
src/App.tsx - App and routes → Not-found page: routes fallback
src/App.tsx - App and routes → Error boundary: wraps routed pages
src/App.tsx - App and routes → Toast display: renders
src/App.tsx - App and routes → Tooltip provider: provides context
src/App.tsx - Toast display → Toast state: reads toast state
src/components/ui/toaster.tsx - Toast display → Toast primitives: renders
src/components/ui/toaster.tsx - Not-found page → Card primitive: renders
src/pages/not-found.tsx - Card primitive → Class utilities: merges classes
src/components/ui/card.tsx - Toast primitives → Class utilities: merges classes
src/components/ui/toast.tsx - Tooltip provider → Class utilities: merges classes
src/components/ui/tooltip.tsx