How hm186812/avatrautoservice works
AVATR is a dealership CRM, showroom, POS, and auto-service application. Staff sign in, then work through dashboard, customer, inventory, stock receiving, sales, billing, and service workflows; the app coordinates view state and persistence. The README also describes a customer-facing vehicle catalog, role-based access, cloud synchronization, payment assets, and offline fallback. The graph reflects those documented capabilities, but unsampled implementation details are represented at directory level. Edges are limited to relationships shown in excerpts, the source index, or README; some documented integrations lack sampled implementation paths.
Main entry points: App.tsx Application coordinator · data.ts Backend data services · POSSalesView.tsx POS and payments · LoginView.tsx Staff sign-in
Components 25
Staff experience
- Application coordinator
src/App.tsx - Staff sign-in
src/components/auth/LoginView.tsx - Role-aware navigation
src/components/layout/Sidebar.tsx
Dealership operations
- Dashboard and reporting
src/components/views/DashboardView.tsx - Customer CRM
src/components/views/CustomerView.tsx - Vehicle catalog
src/components/views/InventoryView.tsx - Stock receiving
src/components/views/StockInView.tsx - POS and payments
src/components/views/POSSalesView.tsx - Bills management
src/components/views/BillsManagementView.tsx - Stock alerts
src/components/views/StockAlertsView.tsx - Appointments
src/components/views/AppointmentsView.tsx - User governance
src/components/views/UserManagementView.tsx - Staff profile
src/components/views/ProfileView.tsx - Sales and service forms
src/components/modals
Data and persistence
- Backend data services
src/backend/data.ts - Record identifiers
src/backend/ids.ts - Input sanitization
src/utils/security.ts - Supabase client
src/backend/client.ts - Supabase cloud
- Browser local storage
Shared interface
- Translations
src/data/translations.ts - Company payment settings
src/data/companySettings.ts - Currency configuration
src/data/currencies.ts - Offline sample data
src/data/mockData.ts
Other components
- Dealership staff
Connections 27
- Dealership staff → Staff sign-in: signs in
- Staff sign-in → Application coordinator: submits credentials
src/App.tsx - Application coordinator → Backend data services: loads and saves
src/App.tsx - Application coordinator → Role-aware navigation: shows navigation
src/App.tsx - Application coordinator → Dashboard and reporting: routes to
src/App.tsx - Application coordinator → Customer CRM: routes to
src/App.tsx - Application coordinator → Vehicle catalog: routes to
src/App.tsx - Application coordinator → Stock receiving: routes to
src/App.tsx - Application coordinator → POS and payments: routes to
src/App.tsx - Application coordinator → Bills management: routes to
src/App.tsx - Application coordinator → Stock alerts: routes to
src/App.tsx - Application coordinator → Appointments: routes to
src/App.tsx - Application coordinator → User governance: routes to
src/App.tsx - Application coordinator → Staff profile: routes to
src/App.tsx - Application coordinator → Sales and service forms: opens forms
src/App.tsx - Stock receiving → Backend data services: uploads vehicle image
src/components/views/StockInView.tsx - POS and payments → Backend data services: saves settings
src/components/views/POSSalesView.tsx - Backend data services → Supabase client: requires client
src/backend/data.ts - Supabase client → Supabase cloud: connects to
README.md - Backend data services → Record identifiers: creates identifiers
src/backend/data.ts - Backend data services → Input sanitization: sanitizes input
src/backend/data.ts - Application coordinator → Browser local storage: stores preferences
src/App.tsx - POS and payments → Company payment settings: reads payment settings
src/components/views/POSSalesView.tsx - POS and payments → Currency configuration: uses currencies
src/components/views/POSSalesView.tsx - Application coordinator → Translations: uses translations
src/App.tsx - Backend data services → Browser local storage: offline fallback
README.md - Application coordinator → Offline sample data: offline data
README.md