How mt1504-coffee/aseoucp2 works
This is the Next.js frontend for an institutional cleaning and maintenance management platform. Staff authenticate, record cleaning work or incidents (including media evidence), and administrators review activity history, manage incident status/assignment, and manage users. The frontend centralizes JWT-bearing requests in an API client and persists session details in browser storage; the documented Spring Boot service is external. The graph follows documented capabilities and indexed imports, but several component internals and the backend implementation were not sampled, so uncertain internal links are omitted.
Main entry points: api-client.ts API client · auth-provider.tsx Auth provider · cleaning-form.tsx Cleaning record · login-form.tsx Login form
Components 13
Authentication
- Login form
components/auth/login-form.tsx - Registration form
components/auth/register-form.tsx - Auth provider
components/auth/auth-provider.tsx - Session storage
lib/auth.ts
Staff Reporting
- Cleaning record
components/staff/cleaning-form.tsx - Incident report
components/staff/incident-form.tsx
Administration
- Incident dashboard
components/admin/incidents-dashboard.tsx - Cleaning history
components/admin/cleaning-history.tsx - User management
components/admin/users-list.tsx
API Integration
- Spring Boot API
- API client
lib/api-client.ts
Other components
- Cleaning staff
- Administrator
Connections 18
- Cleaning staff → Login form: signs in
README.md - Administrator → Login form: signs in
README.md - Login form → Auth provider: submits credentials
components/auth/login-form.tsx - Registration form → Auth provider: authenticates
components/auth/register-form.tsx - Auth provider → API client: requests login
components/auth/auth-provider.tsx - Auth provider → Session storage: stores session
components/auth/auth-provider.tsx - Cleaning staff → Cleaning record: records cleaning
README.md - Cleaning staff → Incident report: reports incident
README.md - Cleaning record → API client: uploads evidence
components/staff/cleaning-form.tsx - Cleaning record → API client: submits activity
components/staff/cleaning-form.tsx - Incident report → API client: submits incident
components/staff/incident-form.tsx - Administrator → Incident dashboard: reviews incidents
README.md - Administrator → Cleaning history: reviews activity
README.md - Administrator → User management: manages users
README.md - Incident dashboard → API client: updates status
components/admin/incidents-dashboard.tsx - Cleaning history → API client: loads history
components/admin/cleaning-history.tsx - User management → API client: manages accounts
components/admin/users-list.tsx - API client → Spring Boot API: sends API requests
README.md