How adityaa61/trendy-threads---frontend- works
TrendyThreads is represented here by the React/TypeScript storefront and admin client; the listed tree contains no backend implementation. The main user journey is browsing products, managing a cart, and checking out, alongside authentication, profile/order history, and admin management. The graph separates UI routes, commerce, admin, and Redux state. API links are shown only where excerpts establish them; backend and Cloudinary internals are documented capabilities but are not present in this repository tree.
Main entry points: App.tsx Router App · store.ts Redux Store · cartSlice.ts Cart State · Checkout.tsx Checkout
Components 27
Application UI
- Router App
src/App.tsx - Storefront Layout
src/layout/UserLayout.tsx - Login & Register
src/pages - Profile & Orders
src/pages/Profile.tsx
Storefront Commerce
- Product Catalog
src/pages - Product Details
src/pages/ProductDetails.tsx - Cart UI
src/components/CartDrawer.tsx - Checkout
src/pages/Checkout.tsx - Payment Button
src/components/PaypalButton.tsx
Admin Console
- Admin Layout
src/Admin/AdminLayout.tsx - Admin Dashboard
src/Admin/AdminDashboard.tsx - Product Management
src/Admin/ProductManagement.tsx - Edit Product
src/Admin/EditProduct.tsx - Order Management
src/Admin/OrderManagement.tsx - User Management
src/Admin/UserManagement.tsx
Client State
- Redux Store
src/Redux/store.ts - Authentication State
src/Redux/slices/authSlice.ts - Cart State
src/Redux/slices/cartSlice.ts - Checkout State
src/Redux/slices/checkoutSlice.ts - Product State
src/Redux/slices/productSlice.ts - Order State
src/Redux/slices/orderSlice.ts - Admin State
src/Redux/slices/adminSlice.ts - Admin Product State
src/Redux/slices/adminProductSlice.ts - Admin Order State
src/Redux/slices/adminOrderSlice.ts
Other components
- Shopper
- Backend API
- Cloudinary
Connections 37
- Shopper → Router App: uses
src/App.tsx - Router App → Storefront Layout: routes to
src/App.tsx - Router App → Admin Layout: routes to
src/App.tsx - Router App → Product Catalog: routes to
src/App.tsx - Router App → Product Details: routes to
src/App.tsx - Router App → Checkout: routes to
src/App.tsx - Router App → Login & Register: routes to
src/App.tsx - Router App → Profile & Orders: routes to
src/App.tsx - Router App → Admin Dashboard: routes to
src/App.tsx - Router App → Product Management: routes to
src/App.tsx - Router App → Edit Product: routes to
src/App.tsx - Router App → Order Management: routes to
src/App.tsx - Router App → User Management: routes to
src/App.tsx - Storefront Layout → Cart UI: renders
src/layout/UserLayout.tsx - Storefront Layout → Cart State: dispatches
src/layout/UserLayout.tsx - Product Details → Cart State: dispatches
src/pages/ProductDetails.tsx - Checkout → Checkout State: dispatches
src/pages/Checkout.tsx - Checkout → Cart State: dispatches
src/pages/Checkout.tsx - Checkout → Payment Button: renders
src/pages/Checkout.tsx - Login & Register → Authentication State: uses
src/pages/Register.tsx - Profile & Orders → Authentication State: reads
src/pages/Profile.tsx - Product Management → Admin Product State: dispatches
src/Admin/ProductManagement.tsx - Edit Product → Admin Product State: dispatches
src/Admin/EditProduct.tsx - Order Management → Admin Order State: dispatches
src/Admin/OrderManagement.tsx - User Management → Admin State: dispatches
src/Admin/UserManagement.tsx - Redux Store → Authentication State: registers reducer
src/Redux/store.ts - Redux Store → Product State: registers reducer
src/Redux/store.ts - Redux Store → Cart State: registers reducer
src/Redux/store.ts - Redux Store → Checkout State: registers reducer
src/Redux/store.ts - Redux Store → Order State: registers reducer
src/Redux/store.ts - Redux Store → Admin State: registers reducer
src/Redux/store.ts - Redux Store → Admin Product State: registers reducer
src/Redux/store.ts - Redux Store → Admin Order State: registers reducer
src/Redux/store.ts - Authentication State → Backend API: requests auth
src/Redux/slices/authSlice.ts - Cart State → Backend API: requests cart
src/Redux/slices/cartSlice.ts - Edit Product → Backend API: uploads image
src/Admin/EditProduct.tsx - Backend API → Cloudinary: stores images
README.md