How juanpiiis/mobulaaa works
Mobulaa is a role-based inventory and order-management application. Users enter through authentication and role-specific dashboards; sellers browse products and manage orders, warehouse staff handle stock and order fulfillment, finance reviews orders, and administrators manage inventory and operational reporting. The tree identifies these product areas, while sampled code confirms customer lookup/registration and order history, product search, Excel inventory uploads, and realtime notifications. Most page implementations were not sampled, so their internal calls and cross-role transitions are not asserted.
Main entry points: layout.tsx Dashboard shell · client.ts Supabase client · ClienteSelector.tsx Customer selection · route.ts Upload processing
Components 33
Access & workspace
- Sign in
app/(auth)/login/page.tsx - Registration
app/(auth)/registro/page.tsx - Dashboard shell
app/(dashboard)/layout.tsx - Home routing
app/page.tsx
Sales & customers
- Seller workspace
app/(dashboard)/vendedor/page.tsx - Product catalog
app/(dashboard)/vendedor/catalogo/page.tsx - My orders
app/(dashboard)/vendedor/mis-pedidos/page.tsx - Customer selection
components/pedidos/ClienteSelector.tsx - Customer registration
components/pedidos/ClienteNuevoForm.tsx - Order history
components/pedidos/HistorialClienteModal.tsx - Product search
lib/hooks/useBuscarProducto.ts - Receivables review
app/(dashboard)/cartera/page.tsx
Warehouse operations
- Warehouse workspace
app/(dashboard)/bodeguero/page.tsx - Stock inventory
app/(dashboard)/bodeguero/inventario/page.tsx - Stock entries
app/(dashboard)/bodeguero/entradas/page.tsx - Stock movements
app/(dashboard)/bodeguero/movimientos/page.tsx - Order processing
app/(dashboard)/bodeguero/pedidos/page.tsx
Administration
- Admin workspace
app/(dashboard)/admin/page.tsx - Product management
app/(dashboard)/admin/productos/page.tsx - Warehouse management
app/(dashboard)/admin/bodegas/page.tsx - Inventory upload
app/(dashboard)/admin/subir-inventario/page.tsx - Upload processing
app/api/subir-inventario/route.ts - Stock counts
app/(dashboard)/admin/cortes/page.tsx - Count detail
app/(dashboard)/admin/cortes/[id]/page.tsx - Statistics
app/(dashboard)/admin/estadisticas/page.tsx - Reports
app/(dashboard)/admin/reportes/page.tsx - User management
app/(dashboard)/admin/usuarios/page.tsx
Data & realtime
- Excel cleaning
lib/utils/dataExcel.ts - Customer lookup
lib/hooks/useBuscarCliente.ts - Realtime alerts
lib/context/NotificacionesContext.tsx - Supabase client
lib/supabase/client.ts - Supabase data store
Other components
- Staff user
Connections 20
- Staff user → Home routing: opens
- Staff user → Sign in: signs in
- Staff user → Registration: registers
- Sign in → Dashboard shell: enters
- Registration → Dashboard shell: enters
- Dashboard shell → Seller workspace: presents role
- Dashboard shell → Warehouse workspace: presents role
- Dashboard shell → Admin workspace: presents role
- Customer selection → Customer lookup: searches
- Customer selection → Customer registration: registers missing
- Customer selection → Order history: opens history
- Customer lookup → Supabase client: queries through
- Customer registration → Supabase client: writes through
- Order history → Supabase client: queries through
- Product search → Supabase client: queries through
- Supabase client → Supabase data store: accesses
- Inventory upload → Upload processing: submits file
- Upload processing → Excel cleaning: cleans rows
- Upload processing → Supabase data store: writes counts
- Realtime alerts → Supabase data store: subscribes to changes