How globoccn/klabin-command-center works
Central Operacional Klabin is a React/TypeScript operations dashboard frontend backed by n8n webhooks. Users select a reporting period and operational filters, inspect summaries and domain-specific pages, and can generate reports or consult the governed assistant. The graph preserves the README’s documented capabilities; some route internals were not sampled, so those links rely on README statements rather than inspected route code.
Main entry points: __root.tsx App shell and routes · dashboardService.ts Dashboard queries · index.tsx Executive overview · chatService.ts Chat service
Components 21
Application shell
- App shell and routes
src/routes/__root.tsx
Operational analysis
- Executive overview
src/routes/index.tsx - Overview filters
src/components/overview-filters.tsx - Page filters
src/components/filter-bar.tsx - Shared analysis period
src/lib/analysis-period.ts - Tasks and tickets
src/routes/chamados.tsx - Climate analysis
src/routes/climatizacao.tsx - Rounds and preventive work
src/routes/rondas.tsx - Evidence and audit
src/routes/evidencias.tsx - Data quality
src/routes/qualidade.tsx - Period insights
src/lib/overview-analysis.ts
API services
- Dashboard queries
src/services/dashboardService.ts - HTTP API client
src/services/apiClient.ts - Report service
src/services/reportService.ts - Chat service
src/services/chatService.ts - Dashboard data types
src/types/dashboard.ts
Reports and assistant
- Report workflow
src/routes/relatorios.tsx - Assistant conversation
src/components/assistant-conversation.tsx - Assistant page
src/routes/assistente.tsx
Other components
- Operator
- n8n webhooks
Connections 31
- Operator → App shell and routes: opens dashboard
- App shell and routes → Executive overview: routes to
src/routeTree.gen.ts - App shell and routes → Tasks and tickets: routes to
src/routeTree.gen.ts - App shell and routes → Climate analysis: routes to
src/routeTree.gen.ts - App shell and routes → Rounds and preventive work: routes to
src/routeTree.gen.ts - App shell and routes → Evidence and audit: routes to
src/routeTree.gen.ts - App shell and routes → Data quality: routes to
src/routeTree.gen.ts - App shell and routes → Report workflow: routes to
src/routeTree.gen.ts - App shell and routes → Assistant page: routes to
src/routeTree.gen.ts - Executive overview → Overview filters: renders
src/routes/index.tsx - Executive overview → Period insights: derives insights
src/routes/index.tsx - Overview filters → Dashboard queries: loads filter options
src/components/overview-filters.tsx - Page filters → Dashboard queries: loads filter options
src/components/filter-bar.tsx - Page filters → Shared analysis period: saves selected period
src/components/filter-bar.tsx - Executive overview → Shared analysis period: saves selected period
src/routes/index.tsx - Executive overview → Dashboard queries: loads overview data
src/routes/index.tsx - Climate analysis → Dashboard queries: loads climate data
src/routes/climatizacao.tsx - Rounds and preventive work → Dashboard queries: loads rounds data
src/routes/rondas.tsx - Data quality → Dashboard queries: loads quality data
src/routes/qualidade.tsx - Dashboard queries → HTTP API client: requests endpoints
src/services/dashboardService.ts - Dashboard queries → Shared analysis period: reads shared period
src/services/dashboardService.ts - HTTP API client → n8n webhooks: calls webhooks
- Report workflow → Report service: generates and manages
src/routes/relatorios.tsx - Report service → HTTP API client: requests and downloads
src/services/reportService.ts - Assistant page → Assistant conversation: renders conversation
src/routes/assistente.tsx - Assistant conversation → Chat service: submits chat and feedback
src/components/assistant-conversation.tsx - Chat service → HTTP API client: sends chat requests
src/services/chatService.ts - Chat service → n8n webhooks: uses governed chat
- Dashboard queries → Dashboard data types: types responses
src/services/dashboardService.ts - Chat service → Dashboard data types: types chat data
src/services/chatService.ts - Report service → Dashboard data types: types report data
src/services/reportService.ts