How rocko1825/agrocrew_frondend works
AgroCrew is an Angular frontend for producers, advisors, and administrators, backed by a Spring Boot REST API. Users sign in or recover access, then work through role-specific plot, evaluation, alert, map, dashboard, and administration screens; results and reports are presented in the browser. The route table confirms lazy-loaded screens and role guards, while the README documents additional feature areas whose source files are absent from this tree. Those unsampled features are represented at the subsystem level; edges cite only route declarations or README statements.
Main entry points: app.routes.ts Role-based routes · api.service.ts HTTP API client · reporte.service.ts Zone dashboard · mapa.ts Reusable maps and charts
Components 20
User experience
- Application shell
src/app/app.ts - Role-based routes
src/app/app.routes.ts - Reusable maps and charts
src/app/shared/components/mapa.ts - CSV export
src/app/shared/utils/csv.ts
AgroCrew workflows
- Access and profile
- Plot management
- Crop evaluation
- Risk alerts
src/app/core/services/alerta.service.ts - Risk map
- Zone dashboard
src/app/core/services/reporte.service.ts - Catalog and economic data
Shared platform
- HTTP API client
src/app/core/services/api.service.ts - JWT and error handling
src/app/core/interceptors/auth.interceptor.ts - Session and roles
src/app/core/services/auth.service.ts - API data contracts
src/app/core/models/api.models.ts - Spanish / English
src/app/core/i18n/idioma.ts - Theme preference
src/app/core/services/tema.service.ts
External services
- AgroCrew REST API
- OpenStreetMap / Leaflet
Other components
- Producer / advisor / admin
Connections 28
- Producer / advisor / admin → Application shell: uses
README.md - Application shell → Role-based routes: hosts
src/app/app.ts - Role-based routes → Access and profile: loads
src/app/app.routes.ts - Role-based routes → Plot management: loads
src/app/app.routes.ts - Role-based routes → Crop evaluation: loads
src/app/app.routes.ts - Role-based routes → Risk alerts: loads
src/app/app.routes.ts - Role-based routes → Risk map: loads
src/app/app.routes.ts - Role-based routes → Zone dashboard: loads
src/app/app.routes.ts - Role-based routes → Catalog and economic data: loads
src/app/app.routes.ts - Access and profile → HTTP API client: requests
- Plot management → HTTP API client: requests
- Crop evaluation → HTTP API client: requests
- Risk alerts → HTTP API client: requests
src/app/core/services/alerta.service.ts - Zone dashboard → HTTP API client: requests
src/app/core/services/reporte.service.ts - Catalog and economic data → HTTP API client: requests
- HTTP API client → AgroCrew REST API: sends HTTP
README.md - HTTP API client → JWT and error handling: passes requests
- JWT and error handling → Session and roles: reads token
src/app/core/interceptors/auth.interceptor.ts - JWT and error handling → Spanish / English: translates errors
src/app/core/interceptors/auth.interceptor.ts - Access and profile → Session and roles: manages session
src/app/core/services/auth.service.ts - Reusable maps and charts → OpenStreetMap / Leaflet: renders maps
- Zone dashboard → CSV export: exports data
- Application shell → Theme preference: sets toaster theme
src/app/app.ts - Producer / advisor / admin → Spanish / English: selects language
README.md - Producer / advisor / admin → Theme preference: selects theme
README.md - Plot management → Reusable maps and charts: uses map
- Risk map → Reusable maps and charts: uses map
- Zone dashboard → Reusable maps and charts: uses charts