How artkay0727/r-rich-admin-dashboard works
This is a browser-based Cash-on-Delivery operations dashboard: administrators sign in, review and analyze orders, create orders, and manage fulfillment status and settings. App coordinates authentication and order mutations; services use Supabase with browser-local caching or settings storage. The supplied excerpts are partial and the README is empty, so some component-to-dashboard wiring is shown as unverified rather than inferred as a confirmed call.
Main entry points: App.tsx Dashboard Coordinator · orderService.ts Order Service · authService.ts Authentication Service · supabase.ts Supabase Client
Components 17
Dashboard UI
- Dashboard Coordinator
src/App.tsx - Header
src/components/Header.tsx - Order Statistics
src/components/StatsCards.tsx - Analytics
src/components/AnalyticsSection.tsx
Order Operations
- Orders Table
src/components/OrdersTable.tsx - Order Detail
src/components/OrderDetailModal.tsx - New Order Form
src/components/NewOrderModal.tsx - Order Service
src/lib/orderService.ts - Domain Types
src/types.ts
Identity and Settings
- Login View
src/components/LoginView.tsx - Authentication Service
src/lib/authService.ts - Settings Modal
src/components/SettingsModal.tsx - Settings Service
src/lib/settingsService.ts
Persistence
- Supabase Client
src/lib/supabase.ts - Supabase Backend
- Browser Local Storage
Other components
- Administrator
Connections 17
- Administrator → Login View: signs in
src/components/LoginView.tsx - Login View → Authentication Service: authenticates with
src/components/LoginView.tsx - Dashboard Coordinator → Authentication Service: checks session
src/App.tsx - Authentication Service → Supabase Client: uses
src/lib/authService.ts - Supabase Client → Supabase Backend: connects to
src/lib/supabase.ts - Dashboard Coordinator → Order Service: updates status
src/App.tsx - Dashboard Coordinator → Order Service: creates orders
src/App.tsx - New Order Form → Dashboard Coordinator: submits order
src/App.tsx - Order Service → Supabase Client: reads and writes
src/lib/orderService.ts - Order Service → Browser Local Storage: caches orders
src/lib/orderService.ts - Settings Service → Browser Local Storage: loads and saves
src/lib/settingsService.ts - Dashboard Coordinator → Header
src/App.tsx - Dashboard Coordinator → Order Statistics
src/App.tsx - Dashboard Coordinator → Analytics
src/App.tsx - Dashboard Coordinator → Orders Table
src/App.tsx - Dashboard Coordinator → Order Detail
src/App.tsx - Dashboard Coordinator → Settings Modal
src/App.tsx