How amiruh1/winware-360 works
Winware 360 is a role-based equipment rental and support portal for Winware staff and customers. Users sign in or register, then work through role-specific areas: browse and order equipment, manage equipment and contracts, pay invoices, or submit and track support tickets. Staff also manage inventory, users, finance, and operational indicators. The frontend authenticates through Cognito and sends API requests to the deployed backend; the README describes server-side permission checks and AI-backed suggestions. Edges from unsampled pages to the API reflect documented capabilities, not inspection of their implementation.
Main entry points: api.ts Authenticated API client · auth.tsx Session and permissions · FuncionesIA.tsx AI assistance features · page.tsx Equipment catalog and orders
Components 26
Access and shared UI
- Sign-in and registration
app/login/page.tsx - Session and permissions
lib/auth.tsx - Application shell
components/AppShell.tsx - Shared forms and status UI
components/Campos.tsx
Customer portal
- Equipment catalog and orders
app/(app)/catalogo/page.tsx - My equipment
app/(app)/mis-equipos/page.tsx - My contracts
app/(app)/mis-contratos/page.tsx - My payments
app/(app)/mis-pagos/page.tsx - Payment form
components/PagoForm.tsx
Staff operations
- Operational summary
app/(app)/page.tsx - Inventory management
app/(app)/inventario/page.tsx - Staff contracts
app/(app)/contratos/page.tsx - Finance
app/(app)/finanzas/page.tsx - User administration
app/(app)/usuarios/page.tsx - Performance indicators
app/(app)/indicadores/page.tsx
Support and AI
- Staff ticket board
app/(app)/mesa-de-ayuda/page.tsx - Customer support
app/(app)/soporte/page.tsx - AI assistance features
components/FuncionesIA.tsx
Frontend services
- Authenticated API client
lib/api.ts - Token persistence
lib/sesion.ts - Cognito client
lib/cognito.ts - Data loading hooks
lib/hooks.ts - Domain data types
lib/tipos.ts
Other components
- Staff or customer
- Amazon Cognito
- Winware API
Connections 29
- Staff or customer → Sign-in and registration: signs in
README.md - Sign-in and registration → Session and permissions: uses auth
app/login/page.tsx - Session and permissions → Cognito client: authenticates with
lib/auth.tsx - Cognito client → Amazon Cognito: sends credentials
README.md - Session and permissions → Authenticated API client: loads profile
lib/auth.tsx - Session and permissions → Token persistence: stores tokens
lib/auth.tsx - Authenticated API client → Token persistence: gets token
lib/api.ts - Authenticated API client → Winware API: sends requests
README.md - Application shell → Session and permissions: checks access
- Operational summary → Authenticated API client: loads summary
README.md - Inventory management → Authenticated API client: manages equipment
README.md - Staff contracts → Authenticated API client: loads contracts
README.md - Finance → Authenticated API client: manages invoices
README.md - User administration → Authenticated API client: approves accounts
README.md - Performance indicators → Authenticated API client: loads indicators
app/(app)/indicadores/page.tsx - Equipment catalog and orders → Authenticated API client: places orders
README.md - Equipment catalog and orders → Payment form: uses payment form
app/(app)/catalogo/page.tsx - My equipment → Authenticated API client: loads equipment
README.md - My contracts → Authenticated API client: loads contracts
README.md - My payments → Authenticated API client: loads payments
README.md - My payments → Payment form: uses payment form
app/(app)/mis-pagos/page.tsx - Staff ticket board → Authenticated API client: updates tickets
README.md - Customer support → Authenticated API client: submits tickets
README.md - Equipment catalog and orders → AI assistance features: offers recommendations
app/(app)/catalogo/page.tsx - Staff ticket board → AI assistance features: offers ticket assistance
app/(app)/mesa-de-ayuda/page.tsx - Customer support → AI assistance features: offers self-help
app/(app)/soporte/page.tsx - AI assistance features → Authenticated API client: requests suggestions
components/FuncionesIA.tsx - Inventory management → Data loading hooks: loads data
app/(app)/inventario/page.tsx - Shared forms and status UI → Domain data types: uses domain values