How raouf-b-dev/ecommerce-admin-dashboard works
This is a browser-based e-commerce operator console: operators sign in, pass session and permission gates, then view or manage dashboard metrics, catalog, inventory, orders, users, and roles through the store API. The README describes the API as the source of business rules and lists the major screens; the router excerpt and source index show selected route and component relationships. Several feature data-flow internals were not sampled, so those connections are not inferred.
Main entry points: app-layout.tsx Admin layout · client.ts HTTP client · main.tsx React entry · router.tsx Route map
Components 18
Application shell
- React entry
src/main.tsx - Route map
src/app/router.tsx - Admin layout
src/components/layout/app-layout.tsx - Theme provider
src/components/theme/theme-provider.tsx
Identity and access
- Session context
src/lib/auth/auth-context.tsx - Route guards
src/lib/auth/permission-route.tsx - Sign-in
src/features/auth/pages/login-page.tsx
Commerce operations
- Dashboard
src/features/dashboard/pages/dashboard-page.tsx - Products and categories
src/features/products/pages/products-page.tsx - Inventory
src/features/inventory/pages/inventory-detail-page.tsx - Orders
src/features/orders/pages/orders-page.tsx
People administration
- User administration
src/features/users/pages/user-detail-page.tsx - Roles and permissions
src/features/roles/pages/roles-settings-page.tsx
API and realtime
- HTTP client
src/lib/api/client.ts - Store API
- WebSocket service
src/lib/ws/websocket-service.ts - Browser API mock
src/lib/mock/browser.ts
Other components
- Operator
Connections 24
- Operator → React entry: opens console
README.md - React entry → Route map: mounts router
src/main.tsx - React entry → Session context: provides session
src/main.tsx - React entry → Theme provider: provides theme
src/main.tsx - React entry → WebSocket service: mounts provider
src/main.tsx - React entry → Browser API mock: starts optionally
src/main.tsx - Route map → Sign-in: routes to
src/app/router.tsx - Route map → Admin layout: routes through
src/app/router.tsx - Route map → Route guards: guards routes
src/app/router.tsx - Route guards → Session context: checks permissions
- Operator → Session context: signs in
README.md - Admin layout → Dashboard: hosts screen
- Admin layout → Products and categories: hosts screen
- Admin layout → Inventory: hosts screen
- Admin layout → Orders: hosts screen
- Admin layout → User administration: hosts screen
- Admin layout → Roles and permissions: hosts screen
- Dashboard → HTTP client: loads data
- Products and categories → HTTP client: reads and mutates
- Inventory → HTTP client: reads and mutates
- Orders → HTTP client: reads and mutates
- User administration → HTTP client: reads and mutates
- Roles and permissions → HTTP client: reads and mutates
- HTTP client → Store API: sends HTTP
README.md