How oyarzabalvalentin174-beep/motomecanica works
This is a Spanish-language workshop and retail management application: staff manage inventory, sales, returns, estimates, technical records, and reporting through a Next.js interface. The principal workflow is a staff member entering an operation in a client view, sending it to an API route, and having that route invoke the database layer; the clearest sampled example is inventory editing. Major features are represented from the file tree, but most page wiring and endpoint calls were not excerpted, so those links are omitted or marked unverified.
Main entry points: db.js Database access · PresupuestosClient.js Estimates · perfil/route.js User profile · [...nextauth]/route.js Credentials sign-in
Components 24
Identity and profile
- Credentials sign-in
taller/app/api/auth/[...nextauth]/route.js - User profile
taller/app/api/perfil/route.js - User administration
taller/components/UsuariosClient.js
Workshop operations
- Inventory management
taller/components/StockClient.js - Inventory API
taller/app/api/stock/route.js - Returns
taller/components/DevolucionClient.js - Return history
taller/components/VerDevolucionesClient.js - Technical records
taller/components/FichaTecnicaClient.js - Personal use
taller/components/UsoPersonalClient.js - Personal-use API
taller/app/api/uso-personal/route.js - Brand catalog
taller/components/MarcasClient.js - Price adjustments
taller/components/AjustePreciosClient.js
Sales and estimates
- Sales entry
taller/components/VentaClient.js - Sales API
taller/app/api/ventas/route.js - Sales history
taller/components/VerVentasClient.js - Estimates
taller/components/PresupuestosClient.js - Estimate import
taller/lib/presupuestoExcelImport.js - Estimate spreadsheet
taller/lib/presupuestoExcel.js - Estimate PDF
taller/lib/presupuestoPdfDocument.js
Reporting
- Report listings
taller/components/ReportesListaClient.js - Report charts
taller/components/ReportesGraficosClient.js - Report export
taller/lib/reportesExcel.js
Shared runtime
- Database access
taller/components/db.js
Other components
- Workshop staff
Connections 27
- Workshop staff → Credentials sign-in: signs in
taller/app/api/auth/[...nextauth]/route.js - Credentials sign-in → Database access: checks credentials
taller/app/api/auth/[...nextauth]/route.js - Workshop staff → User profile: updates profile
- User profile → Credentials sign-in: checks session
taller/app/api/perfil/route.js - User profile → Database access: reads and writes
taller/app/api/perfil/route.js - Workshop staff → Inventory management: manages inventory
- Inventory management → Inventory API: posts inventory
taller/components/StockClient.js - Inventory API → Database access: accesses data
- Workshop staff → Returns: records returns
- Workshop staff → Return history: reviews returns
- Workshop staff → Technical records: maintains records
- Workshop staff → Personal use: records usage
- Personal use → Personal-use API: submits usage
- Personal-use API → Database access: records usage
taller/app/api/uso-personal/route.js - Workshop staff → Brand catalog: manages brands
- Workshop staff → Price adjustments: adjusts prices
- Workshop staff → Sales entry: enters sale
- Sales entry → Sales API: submits sale
- Sales API → Database access: records sale
taller/app/api/ventas/route.js - Workshop staff → Sales history: reviews sales
- Workshop staff → Estimates: creates estimates
- Estimates → Estimate import: imports spreadsheet
- Estimates → Estimate spreadsheet: exports spreadsheet
- Estimates → Estimate PDF: generates PDF
- Workshop staff → Report listings: reviews reports
- Workshop staff → Report charts: views charts
- Report listings → Report export: exports reports