How christever/mydevis works
MS PEINTURE is a French quote-management web application for managing clients, estimates and company settings. A signed-in user can choose or create a client, create a draft quote, add priced lines, review totals and update its status; the home page summarizes activity. React contexts hold domain state: client and settings data use Firestore, while quote data is currently in memory, consistent with the README’s temporary-data caveat. The sampled files show routing, context wiring and key calculations; some capabilities below are documented in the README but their implementations were not sampled.
Main entry points: MainLayout.jsx Application layout · devis-context.jsx Quote state and lifecycle · DevisDetails.jsx Quote detail · clients-context.jsx Client state and storage
Components 20
Access and navigation
- Route access
src/router/routes.jsx - Sign in
src/pages/Login/Login.jsx - Authentication and profile
src/contexts/auth-context.jsx - Application layout
src/Layout/MainLayout.jsx - Activity overview
src/pages/Home/Home.jsx
Client management
- Client directory
src/pages/Clients/Clients.jsx - Client editor
src/components/Clients/ClientDialog.jsx - Client form
src/components/Clients/ClientForm.jsx - Client state and storage
src/contexts/clients-context.jsx
Quote management
- Quote list
src/pages/Devis/Devis.jsx - Quote creation
src/components/Devis/DevisDialog.jsx - Quote state and lifecycle
src/contexts/devis-context.jsx - Quote detail
src/pages/Devis/DevisDetails.jsx - Quote line editor
src/components/Devis/DevisLigneDialog.jsx - Quote calculations
src/utils/devis-calculs.js
Business settings
- Settings screen
src/pages/Parametres/Parametres.jsx - Settings state and storage
src/contexts/parametres-context.jsx
Other components
- User
- Firebase connection
src/firebase/config.js - Firebase services
Connections 31
- User → Route access: navigates
src/router/routes.jsx - Route access → Sign in: routes to
src/router/routes.jsx - Route access → Application layout: protects routes
src/router/routes.jsx - Application layout → Activity overview: hosts
src/router/routes.jsx - Application layout → Client directory: hosts
src/router/routes.jsx - Application layout → Quote list: hosts
src/router/routes.jsx - Application layout → Quote detail: hosts
src/router/routes.jsx - Application layout → Settings screen: hosts
src/router/routes.jsx - Application layout → Client state and storage: provides
src/Layout/MainLayout.jsx - Application layout → Quote state and lifecycle: provides
src/Layout/MainLayout.jsx - Application layout → Settings state and storage: provides
src/Layout/MainLayout.jsx - Sign in → Authentication and profile: signs in
src/pages/Login/Login.jsx - Authentication and profile → Firebase connection: uses services
src/contexts/auth-context.jsx - Client directory → Client state and storage: reads and updates
src/pages/Clients/Clients.jsx - Client directory → Client editor: opens editor
src/pages/Clients/Clients.jsx - Client editor → Client form: renders
src/components/Clients/ClientDialog.jsx - Client state and storage → Firebase connection: reads and writes
src/contexts/clients-context.jsx - Firebase connection → Firebase services: connects
src/firebase/config.js - Quote list → Quote state and lifecycle: reads quotes
src/pages/Devis/Devis.jsx - Quote list → Quote creation: opens editor
src/pages/Devis/Devis.jsx - Quote creation → Client state and storage: selects clients
src/components/Devis/DevisDialog.jsx - Quote creation → Quote state and lifecycle: creates quote
- Quote detail → Quote state and lifecycle: reads quote
src/pages/Devis/DevisDetails.jsx - Quote detail → Quote line editor: opens editor
src/pages/Devis/DevisDetails.jsx - Quote line editor → Quote state and lifecycle: adds or updates line
src/components/Devis/DevisLigneDialog.jsx - Quote state and lifecycle → Quote calculations: calculates totals
src/contexts/devis-context.jsx - Quote detail → Quote calculations: calculates display total
src/pages/Devis/DevisDetails.jsx - Activity overview → Quote state and lifecycle: summarizes quotes
src/pages/Home/Home.jsx - Settings screen → Settings state and storage: reads and changes
src/pages/Parametres/Parametres.jsx - Settings state and storage → Firebase connection: reads and writes
src/contexts/parametres-context.jsx - Quote state and lifecycle → Settings state and storage: uses quote settings
src/contexts/devis-context.jsx