How williambrito98/plataforma-frontend works
This is a React/TypeScript frontend for a company-scoped administration platform. Users enter through login or the admin area, select a company, and then work with automations and other management areas. The tree also shows audit logs, files, categories, profile, users, and RBAC as distinct capabilities. The sampled code confirms app setup, route composition, company-selection gating, and auth bootstrap; feature internals were not sampled, so links to those areas are left unverified rather than inferred as calls.
Main entry points: routeTree.gen.ts Route tree · AppProvider.tsx App providers · auth-bootstrap.tsx Auth bootstrap · _admin.tsx Admin route gate
Components 24
Application shell
- App entry
src/main.tsx - App providers
src/app/providers/AppProvider.tsx - Route tree
src/routeTree.gen.ts - Admin route gate
src/routes/_admin.tsx - Admin layout
src/features/admin/components/admin-layout.tsx - Query cache
src/lib/query-client.ts
Identity and access
- Login and recovery
src/features/auth/components/login-page.tsx - Auth bootstrap
src/features/auth/components/auth-bootstrap.tsx - Auth state
src/features/auth/stores/auth-store.ts - Permission rules
src/features/auth/constants/permissions.ts
Automation management
- Automation authoring
src/features/automations/components/create-automation-page.tsx - Automation editing
src/features/automations/components/edit-automation-page.tsx - Execution monitoring
src/features/automations/components/automation-execution-monitor.tsx
Company administration
- Company selection
src/features/companies/components/require-company-selection.tsx - Company management
src/features/companies/components/edit-company-page.tsx - Selected company state
src/features/companies/stores/company-store.ts
Operational administration
- Audit logs
src/features/audit-logs/components/audit-logs-page.tsx - File management
src/features/files/components/files-page.tsx - Category management
src/features/categories/components/categories-page.tsx - User management
src/features/users/components/users-page.tsx - Roles and permissions
src/features/rbac/components/rbac-page.tsx - User profile
src/features/profile/components/profile-page.tsx
Other components
- Administrator
- Backend API
Connections 26
- Administrator → App entry: opens
src/main.tsx - App entry → App providers: renders
src/main.tsx - App providers → Route tree: provides router
src/app/providers/AppProvider.tsx - App providers → Auth bootstrap: wraps routes
src/app/providers/AppProvider.tsx - App providers → Query cache: provides cache
src/app/providers/AppProvider.tsx - Route tree → Admin route gate: registers
src/routeTree.gen.ts - Admin route gate → Company selection: requires selection
src/routes/_admin.tsx - Admin route gate → Admin layout: renders
src/routes/_admin.tsx - Route tree → Automation authoring: registers route
src/routeTree.gen.ts - Route tree → Automation editing: registers route
src/routeTree.gen.ts - Route tree → Company management: registers route
src/routeTree.gen.ts - Auth bootstrap → Auth state: uses state
src/features/auth/components/auth-bootstrap.tsx - Auth bootstrap → Selected company state: uses state
src/features/auth/components/auth-bootstrap.tsx - Auth bootstrap → Company selection: syncs company
src/features/auth/components/auth-bootstrap.tsx - Administrator → Login and recovery: signs in
- Login and recovery → Backend API: authenticates
- Automation authoring → Backend API: manages automations
- Automation editing → Permission rules: requires permission
src/routes/_admin/automacoes.$id.editar.tsx - Execution monitoring → Backend API: controls executions
- Company management → Backend API: updates companies
- Audit logs → Backend API: loads audit records
- File management → Backend API: loads files
- Category management → Backend API: manages categories
- User management → Backend API: manages users
- Roles and permissions → Backend API: manages access rules
- User profile → Backend API: updates profile