How yadavmangesh07/jmd-decor works
This is a React/TypeScript business-management frontend, with client and company administration alongside sales documents, purchasing, projects, files, and WCC workflows. Users enter through routed pages, work with lists, profiles, or forms, and those screens call domain services that make authenticated HTTP requests to a separately hosted API. The excerpts and source index establish routing, client operations, authentication, and the shared API client; several other domain screens are unsampled, so their internal interactions are not inferred.
Main entry points: App.tsx Router and Routes · services Domain Services · MainLayout.tsx Main Layout · Clients Client Management
Components 22
App Navigation
- Router and Routes
src/App.tsx - Main Layout
src/components/layout/MainLayout.tsx - Login and Access
src/pages/auth
Business Workflows
- Client Management
src/pages/Clients - Client Form
src/features/clients/ClientForm.tsx - Dashboard
src/pages/dashboard/DashboardPage.tsx - Invoices
src/pages/invoices - Invoice Form
src/features/invoices/InvoiceForm.tsx - Estimates
src/pages/estimates - Challans
src/pages/challan - Credit Notes
src/pages/creditNote - WCC Certificates
src/pages/wcc - Purchases
src/pages/purchases - Projects and Files
src/pages/projects - Account and Settings
src/pages/settings - Company Profile
src/pages/profile/CompanyProfilePage.tsx
Domain Services
- Authentication Service
src/services/authService.tsx - Domain Services
src/services - HTTP API Client
src/lib/axios.ts
Shared Interface
- UI Components
src/components/ui
Other components
- User
- Backend API
Connections 30
- User → Router and Routes: navigates
src/App.tsx - Router and Routes → Login and Access: routes to
src/App.tsx - Router and Routes → Main Layout: wraps routes
src/App.tsx - Router and Routes → Dashboard: routes to
src/App.tsx - Router and Routes → Client Management: routes to
src/App.tsx - Router and Routes → Invoices: routes to
src/App.tsx - Router and Routes → Estimates: routes to
src/App.tsx - Router and Routes → Challans: routes to
src/App.tsx - Router and Routes → WCC Certificates: routes to
src/App.tsx - Router and Routes → Credit Notes: routes to
src/App.tsx - Router and Routes → Projects and Files: routes to
src/App.tsx - Client Management → Client Form: opens form
src/pages/Clients/ClientPage.tsx - Client Form → Domain Services: creates or updates
src/features/clients/ClientForm.tsx - Client Management → Domain Services: loads and deletes
src/pages/Clients/ClientPage.tsx - Dashboard → Domain Services: loads data
src/pages/dashboard/DashboardPage.tsx - Invoices → Domain Services: uses services
src/pages/invoices/InvoiceFormPage.tsx - Invoice Form → Domain Services: uses services
src/features/invoices/InvoiceForm.tsx - Estimates → Domain Services: uses services
src/pages/estimates/EstimateListPage.tsx - Challans → Domain Services: uses services
src/pages/challan/ChallanFormPage.tsx - Credit Notes → Domain Services: uses services
src/pages/creditNote/CreditNoteFormPage.tsx - WCC Certificates → Domain Services: uses services
src/pages/wcc/WCCFormPage.tsx - Projects and Files → Domain Services: uses client service
src/pages/projects/ClientProjectsPage.tsx - Main Layout → Authentication Service: uses authentication
src/components/layout/MainLayout.tsx - Main Layout → Company Profile: loads company data
src/components/layout/MainLayout.tsx - Company Profile → Domain Services: uses company service
src/pages/profile/CompanyProfilePage.tsx - Domain Services → HTTP API Client: makes requests
src/services/clientService.tsx - Authentication Service → HTTP API Client: makes requests
src/services/authService.tsx - HTTP API Client → Backend API: sends HTTP requests
src/lib/axios.ts - Account and Settings → Authentication Service: uses account service
- User → UI Components: uses interface