How agrotech-t/agrotech-t-frontend works
AGROTECH-T is a React frontend for agricultural management, with a REST backend responsible for persistence and business rules. The user enters through the published authentication route; after sign-in, the authenticated home screen exposes farm, poultry-house, inventory, configuration, and profile areas. Inventory manages farm inventories, products, movements, loans, and reports; the galpon area supports houses, lots, and events. The README describes several other domains as reserved, so they are represented as capability placeholders rather than active workflow stages. Evidence is limited to the README and indexed or excerpted files.
Main entry points: HomeScreen.tsx Authenticated home · AuthScreen.tsx Account screen · main.tsx React bootstrap · App.tsx App routes
Components 22
Application entry
- React bootstrap
src/app/main.tsx - App routes
src/app/App.tsx - Active routes
src/app/routes/index.tsx
Accounts
- Auth page
src/features/auth/pages/AuthPage.tsx - Account screen
src/features/auth/components/AuthScreen.tsx - Sign-in and recovery
src/features/auth/components/SignInForm.tsx - Registration form
src/features/auth/components/SignUpForm.tsx - Account operations
src/features/auth/services/account.ts - Browser session
src/features/auth/services/session.ts
Farm workspace
- Authenticated home
src/features/home/components/HomeScreen.tsx - Workspace navigation
src/components/layout/AppShell.tsx - Farm management
src/features/farms/components/FarmsScreen.tsx
Operational domains
- Farm inventories
src/features/inventario/components/InventoryManager.tsx - Poultry-house operations
src/features/galpon/components/GalponPanel.tsx - Roles and permissions
src/features/configuracion/components - Profile management
src/features/profile/components/ProfileScreen.tsx - Alerts
src/features/alertas - Reserved domains
src/features/production
API transport
- Inventory API operations
src/features/inventario/services/inventoryApi.ts - Shared HTTP client
src/services/api/client.ts
Other components
- User
- REST backend
Connections 21
- User → React bootstrap: opens
README.md - React bootstrap → App routes: mounts
src/app/main.tsx - App routes → Active routes: renders
src/app/App.tsx - Active routes → Auth page: routes to
src/app/routes/index.tsx - Auth page → Account screen: renders
src/features/auth/pages/AuthPage.tsx - Account screen → Sign-in and recovery: renders
src/features/auth/components/AuthScreen.tsx - Account screen → Registration form: renders
src/features/auth/components/AuthScreen.tsx - Account screen → Account operations: logs out through
src/features/auth/components/AuthScreen.tsx - Account screen → Browser session: reads and clears
src/features/auth/components/AuthScreen.tsx - Account screen → Authenticated home: shows after sign-in
src/features/auth/components/AuthScreen.tsx - Authenticated home → Workspace navigation: uses
src/features/home/components/HomeScreen.tsx - Authenticated home → Farm management: imports
src/features/home/components/HomeScreen.tsx - Authenticated home → Poultry-house operations: renders
src/features/home/components/HomeScreen.tsx - Authenticated home → Farm inventories: imports
src/features/home/components/HomeScreen.tsx - Authenticated home → Roles and permissions: imports
src/features/home/components/HomeScreen.tsx - Authenticated home → Profile management: imports
src/features/home/components/HomeScreen.tsx - Authenticated home → Alerts: offers notifications
- Farm inventories → Farm management: uses farm types
src/features/inventario/components/InventoryManager.tsx - Inventory API operations → Shared HTTP client: sends requests through
src/features/inventario/services/inventoryApi.ts - Shared HTTP client → REST backend: sends JSON over HTTP
README.md - User → Reserved domains: future capabilities
README.md