How elpablooficial/-twm-proyecto-compra-venta works
This is a React/Vite commerce-management application with a public storefront and seller-facing administration. Users can browse the home screen or log in, while sellers navigate inventory, services, messages, reviews, quotes, orders, reports, receipts, and transaction history. Product and service state is held in React contexts with sample data; orders are explicitly in-memory. The README describes only the starter setup, so capabilities are inferred from the routes and sampled screens. Several screen implementations were not sampled, so their internal data flows are not asserted.
Main entry points: App.jsx Routes and providers · SellerTemplate.jsx Seller layout · ServicesScreen.jsx Service management · Header.jsx Site header
Components 28
Application shell
- Routes and providers
src/App.jsx - React bootstrap
src/main.jsx
Public and account
- Storefront home
src/pages/Home/HomeScreen.jsx - Sign in
src/pages/Login/LoginScreen.jsx - Registration
src/pages/Register/RegisterScreen.jsx - Mock authentication
src/services/authService.js - Profile
src/pages/Profile/ProfileScreen.jsx
Catalog management
- Product inventory
src/pages/Inventory/InventoryScreen.jsx - Product editor
src/pages/Inventory/AddProductScreen.jsx - Service management
src/pages/Services/ServicesScreen.jsx - Service editor
src/pages/Services/ServiceFormScreen.jsx
Seller operations
- Message moderation
src/pages/MessageModeration/MessageModerationScreen.jsx - Review management
src/pages/Reviews/ReviewsScreen.jsx - Quote list
src/pages/Quotes/QuotesScreen.jsx - Quote details
src/pages/Quotes/QuoteDetailScreen.jsx - Order management
src/pages/Orders/OrdersScreen.jsx - Sales reports
src/pages/Reports/ReportsScreen.jsx - Receipt view
src/pages/Receipt/ReceiptScreen.jsx - Transaction history
src/pages/TransHistoryScreen/TransHistoryScreen.jsx
Shared UI and state
- Product state
src/context/ProductContext.jsx - Service state
src/context/ServiceContext.jsx - Quote state
src/context/QuotesContext.jsx - Seller layout
src/components/templates/SellerTemplate/SellerTemplate.jsx - Site header
src/components/organisms/Header/Header.jsx - Styled button
src/components/atoms/Button/CustomButton.jsx - Confirmation dialog
src/components/molecules/ConfirmDialog/ConfirmDialog.jsx - Summary card
src/components/molecules/StatCard/StatCard.jsx
Other components
- Visitor or seller
Connections 45
- Visitor or seller → Routes and providers: opens app
src/App.jsx - Routes and providers → Storefront home: routes to
src/App.jsx - Routes and providers → Sign in: routes to
src/App.jsx - Routes and providers → Registration: routes to
src/App.jsx - Routes and providers → Product inventory: routes to
src/App.jsx - Routes and providers → Product editor: routes to
src/App.jsx - Routes and providers → Service management: routes to
src/App.jsx - Routes and providers → Service editor: routes to
src/App.jsx - Routes and providers → Message moderation: routes to
src/App.jsx - Routes and providers → Profile: routes to
src/App.jsx - Routes and providers → Quote list: routes to
src/App.jsx - Routes and providers → Quote details: routes to
src/App.jsx - Routes and providers → Review management: routes to
src/App.jsx - Routes and providers → Order management: routes to
src/App.jsx - Routes and providers → Receipt view: routes to
src/App.jsx - Routes and providers → Sales reports: routes to
src/App.jsx - Routes and providers → Transaction history: routes to
src/App.jsx - React bootstrap → Routes and providers: renders
src/main.jsx - React bootstrap → Mock authentication: imports
src/main.jsx - Sign in → Mock authentication: authenticates
src/pages/Login/LoginScreen.jsx - Product inventory → Seller layout: renders
src/pages/Inventory/InventoryScreen.jsx - Service management → Seller layout: renders
src/pages/Services/ServicesScreen.jsx - Message moderation → Seller layout: renders
src/pages/MessageModeration/MessageModerationScreen.jsx - Quote list → Seller layout: renders
src/pages/Quotes/QuotesScreen.jsx - Order management → Seller layout: renders
src/pages/Orders/OrdersScreen.jsx - Sales reports → Seller layout: renders
src/pages/Reports/ReportsScreen.jsx - Seller layout → Site header: renders
src/components/templates/SellerTemplate/SellerTemplate.jsx - Product inventory → Product state: reads and updates
src/pages/Inventory/InventoryScreen.jsx - Product editor → Product state: reads and updates
- Service management → Product state: reads categories
src/pages/Services/ServicesScreen.jsx - Service management → Service state: reads and deletes
src/pages/Services/ServicesScreen.jsx - Service editor → Product state: reads categories
src/pages/Services/ServiceFormScreen.jsx - Service editor → Service state: reads and updates
src/pages/Services/ServiceFormScreen.jsx - Quote list → Quote state: uses hook
src/pages/Quotes/QuotesScreen.jsx - Quote details → Quote state: uses state
- Product inventory → Summary card: shows summaries
src/pages/Inventory/InventoryScreen.jsx - Service management → Summary card: shows summaries
src/pages/Services/ServicesScreen.jsx - Message moderation → Summary card: shows summaries
src/pages/MessageModeration/MessageModerationScreen.jsx - Order management → Summary card: shows summaries
src/pages/Orders/OrdersScreen.jsx - Sales reports → Summary card: shows summaries
src/pages/Reports/ReportsScreen.jsx - Confirmation dialog → Styled button: uses
src/components/molecules/ConfirmDialog/ConfirmDialog.jsx - Storefront home → Site header: renders
src/pages/Home/HomeScreen.jsx - Profile → Site header: renders
src/pages/Profile/ProfileScreen.jsx - Receipt view → Site header: renders
src/pages/Receipt/ReceiptScreen.jsx - Transaction history → Site header: renders
src/pages/TransHistoryScreen/TransHistoryScreen.jsx