How hoangphatdev/drivex works
DriveX is a React UI prototype for a Vietnamese used-car marketplace, not a production service: its data and interactions live in client-side state. Users enter through a role-switchable app shell, browse and inspect listings, estimate on-road costs, and can follow buyer, seller, or admin workflows for wishlists, appointments, listing submission, moderation, and master data. The graph shows documented product capabilities alongside sampled implementation; backend persistence, real authentication, and external services are absent.
Main entry points: App.jsx App shell and state · CarCard.jsx Vehicle cards · StatusBadge.jsx Status badges · formatters.js Formatting and fees
Components 21
App orchestration
- App shell and state
apps/prototype/src/App.jsx - React entry point
apps/prototype/src/main.jsx
Vehicle discovery
- Marketplace search
apps/prototype/src/screens/MarketplaceScreen.jsx - Search filters
apps/prototype/src/components/FilterSidebar.jsx - Vehicle details
apps/prototype/src/screens/VehicleDetailScreen.jsx - On-road estimator
apps/prototype/src/components/OnRoadCalculator.jsx
Buyer and seller workflows
- Account and profile
apps/prototype/src/screens/AuthProfileScreen.jsx - Buyer dashboard
apps/prototype/src/screens/BuyerDashboardScreen.jsx - Appointment dialogs
apps/prototype/src/components/Modals.jsx - Seller inventory
apps/prototype/src/screens/SellerDashboardScreen.jsx - Listing editor
apps/prototype/src/screens/CarListingFormScreen.jsx - Seller storefront
apps/prototype/src/screens/SellerStorefrontScreen.jsx
Marketplace administration
- Listing moderation
apps/prototype/src/screens/AdminModerationScreen.jsx - Master data
apps/prototype/src/screens/AdminMasterDataScreen.jsx
Shared UI and data
- Role navigation
apps/prototype/src/components/Navbar.jsx - Vehicle cards
apps/prototype/src/components/CarCard.jsx - Status badges
apps/prototype/src/components/StatusBadge.jsx - Mock marketplace data
apps/prototype/src/data/mockData.js - Car image generator
apps/prototype/src/utils/carImageGenerator.js - Formatting and fees
apps/prototype/src/utils/formatters.js
Other components
- Marketplace user
Connections 30
- Marketplace user → App shell and state: uses
README.md - React entry point → App shell and state: renders
apps/prototype/src/main.jsx - App shell and state → Mock marketplace data: initializes state
apps/prototype/src/App.jsx - App shell and state → Role navigation: renders
apps/prototype/src/App.jsx - App shell and state → Marketplace search: routes to
apps/prototype/src/App.jsx - App shell and state → Vehicle details: routes to
apps/prototype/src/App.jsx - App shell and state → Account and profile: routes to
apps/prototype/src/App.jsx - App shell and state → Buyer dashboard: routes to
apps/prototype/src/App.jsx - App shell and state → Seller inventory: routes to
apps/prototype/src/App.jsx - App shell and state → Listing editor: routes to
apps/prototype/src/App.jsx - App shell and state → Seller storefront: routes to
apps/prototype/src/App.jsx - App shell and state → Listing moderation: routes to
apps/prototype/src/App.jsx - App shell and state → Master data: routes to
apps/prototype/src/App.jsx - App shell and state → Appointment dialogs: renders
apps/prototype/src/App.jsx - Marketplace search → Search filters: renders
apps/prototype/src/screens/MarketplaceScreen.jsx - Marketplace search → Vehicle cards: renders
apps/prototype/src/screens/MarketplaceScreen.jsx - Vehicle details → On-road estimator: renders
apps/prototype/src/screens/VehicleDetailScreen.jsx - On-road estimator → Formatting and fees: calculates fees
apps/prototype/src/components/OnRoadCalculator.jsx - Buyer dashboard → Vehicle cards: renders
apps/prototype/src/screens/BuyerDashboardScreen.jsx - Seller inventory → Status badges: renders
apps/prototype/src/screens/SellerDashboardScreen.jsx - Seller inventory → Formatting and fees: formats values
apps/prototype/src/screens/SellerDashboardScreen.jsx - Listing editor → Car image generator: generates photos
apps/prototype/src/screens/CarListingFormScreen.jsx - Seller storefront → Vehicle cards: renders
apps/prototype/src/screens/SellerStorefrontScreen.jsx - Listing moderation → Status badges: renders
apps/prototype/src/screens/AdminModerationScreen.jsx - Master data → Status badges: renders
apps/prototype/src/screens/AdminMasterDataScreen.jsx - Vehicle cards → Status badges: renders
apps/prototype/src/components/CarCard.jsx - Vehicle cards → Formatting and fees: formats values
apps/prototype/src/components/CarCard.jsx - Appointment dialogs → Status badges: renders
apps/prototype/src/components/Modals.jsx - Appointment dialogs → Formatting and fees: formats prices
apps/prototype/src/components/Modals.jsx - Mock marketplace data → Car image generator: builds listing photos
apps/prototype/src/data/mockData.js