How prefeiturasp/sme-sigpae-frontend works
SIGPAE is a React application for managing São Paulo’s school-meal program. Its main user journey is authenticated school, regional-office, and CODAE staff entering or reviewing meal-service requests; the application routes users to workflow screens, which use domain services to exchange data with the API. The README also describes product management, special diets, measurement, pre-receiving, and receiving. Several of these areas are represented from documented capabilities and the file tree; their internal calls were not sampled, so those links are left unasserted.
Main entry points: _base.ts HTTP client · auth.jsx Authentication · App.tsx Application · routes.jsx Route access
Components 25
Application entry
- Application
src/App.tsx - Redux state
src/reducers.jsx - Route access
src/routes.jsx - Feature routes
src/configs/rotas/index.ts - Login and recovery
src/components/Login/index.tsx
Navigation and shared UI
- Page shell
src/components/Shareable/Page/Page.jsx - Navigation sidebar
src/components/Shareable/Sidebar/SidebarContent.jsx - Return confirmation
src/components/Shareable/Page/ModalVoltar.jsx
Food-service workflows
- Meal-service requests
src/components/InclusaoDeAlimentacao/Escola/Formulario/index.tsx - Menu changes
src/components/AlteracaoDeCardapio/Escola/index.jsx - Snack-kit requests
src/components/SolicitacaoDeKitLanche/Container/index.jsx - Meal suspensions
src/components/SuspensaoDeAlimentacao/index.jsx
Program operations
- Special diets
src/services/dietaEspecial.service.jsx - Product management
src/services/produto.service.jsx - Initial measurement
src/components/screens/LancamentoInicial/PeriodoLancamentoMedicaoInicial/index.jsx - Pre-receiving
src/configs/rotas/preRecebimento/index.ts - Receiving checks
src/services/recebimento/questoesConferencia.service.ts
Identity and data access
- Authentication
src/services/auth.jsx - HTTP client
src/services/_base.ts - Runtime configuration
src/constants/config.jsx - Shared workflow constants
src/constants/shared.jsx
Other components
- School staff
- DRE staff
- CODAE staff
- SIGPAE API
Connections 23
- Application → Route access: renders routes
src/App.tsx - Application → Redux state: creates state
src/index.jsx - Route access → Login and recovery: routes to
src/routes.jsx - Route access → Feature routes: maps routes
src/routes.jsx - Route access → Authentication: checks access
src/routes.jsx - Page shell → Navigation sidebar: renders
src/components/Shareable/Page/Page.jsx - School staff → Application: uses
README.md - DRE staff → Application: uses
README.md - CODAE staff → Application: uses
README.md - Authentication → HTTP client: sends requests
src/services/auth.jsx - Authentication → Runtime configuration: reads settings
src/services/auth.jsx - Authentication → SIGPAE API: authenticates
- HTTP client → Authentication: refreshes tokens
src/services/_base.ts - HTTP client → Runtime configuration: uses base URL
src/services/_base.ts - HTTP client → SIGPAE API: sends requests
- Product management → HTTP client: calls API client
src/services/produto.service.jsx - Special diets → HTTP client: calls API client
src/services/dietaEspecial.service.jsx - Initial measurement → HTTP client: calls API client
- Receiving checks → HTTP client: calls API client
src/services/recebimento/questoesConferencia.service.ts - Meal-service requests → HTTP client: submits requests
- Menu changes → HTTP client: submits changes
- Snack-kit requests → HTTP client: submits requests
- Meal suspensions → HTTP client: submits requests