How cakeysama/retool works
ReTool is a role-based device and reuse-management application. Users sign in, browse device records, and—according to their permissions—manage device and classification data or submit and follow reuse requests. Administrators also manage users and review audit history. The README gives no further product detail; routing and several context-to-repository relationships are visible in excerpts or the SOURCE INDEX, while some page behavior and integrations are represented only by documented module names.
Main entry points: App.tsx App routing and guards · AuthContext.tsx Authentication and profiles · ReToolContext.tsx Application state and actions · repositories Firestore repositories
Components 21
Application flow
- App routing and guards
retool/src/App.tsx
Device workflows
- Device catalogue
retool/src/pages/Dispositivos.tsx - Device details
retool/src/pages/DispositivoDetails.tsx - Device editing
retool/src/pages/DispositivoForm.tsx - Classifications
retool/src/pages/Categorias.tsx - Classification controller
retool/src/presentation/hooks/useCategoriasController.ts - Reuse requests
retool/src/pages/Reutilizacoes.tsx - Device batch import
retool/src/application/usecases/ImportarLoteUseCase.ts - Spreadsheet import parsing
retool/src/application/importacao/planilhaDispositivos.ts - Domain records
retool/src/domain/entities
Identity and oversight
- Authentication and profiles
retool/src/context/AuthContext.tsx - Role permissions
retool/src/hooks/usePermissions.ts - User administration
retool/src/components/UsersManagementModal.tsx - Audit history
retool/src/components/AuditLogsModal.tsx - Notifications
retool/src/components/NotificationsMenu.tsx
Persistence and files
- Application state and actions
retool/src/context/ReToolContext.tsx - Firestore repositories
retool/src/data/repositories - Firebase data source
retool/src/data/datasources/firebase.ts - Attachment storage
retool/src/data/services/FirebaseStorageService.ts
Other components
- ReTool user
- Firebase Storage
Connections 27
- ReTool user → App routing and guards: uses
- App routing and guards → Authentication and profiles: provides auth
retool/src/App.tsx - App routing and guards → Application state and actions: provides state
retool/src/App.tsx - App routing and guards → Device catalogue: routes to
retool/src/App.tsx - App routing and guards → Device details: routes to
retool/src/App.tsx - App routing and guards → Classifications: routes to
retool/src/App.tsx - App routing and guards → Reuse requests: routes to
retool/src/App.tsx - Classifications → Classification controller: uses
retool/src/pages/Categorias.tsx - Classification controller → Application state and actions: reads and updates
retool/src/presentation/hooks/useCategoriasController.ts - Classifications → Role permissions: checks access
retool/src/pages/Categorias.tsx - Device details → Application state and actions: reads and updates
retool/src/pages/DispositivoDetails.tsx - Device details → Role permissions: checks access
retool/src/pages/DispositivoDetails.tsx - Application state and actions → Firestore repositories: calls
retool/src/context/ReToolContext.tsx - Application state and actions → Device batch import: invokes
retool/src/context/ReToolContext.tsx - Device batch import → Firestore repositories: imports batch
retool/src/application/usecases/ImportarLoteUseCase.ts - Authentication and profiles → Firestore repositories: calls
retool/src/context/AuthContext.tsx - Authentication and profiles → Firebase data source: auth services
retool/src/context/AuthContext.tsx - Authentication and profiles → Domain records: uses profiles and logs
retool/src/context/AuthContext.tsx - Application state and actions → Domain records: uses records
retool/src/context/ReToolContext.tsx - Firestore repositories → Firebase data source: reads and writes
retool/src/data/repositories/FirestoreDispositivosRepository.ts - Firestore repositories → Attachment storage: uses attachments
retool/src/data/repositories/FirestoreDispositivosRepository.ts - Attachment storage → Firebase data source: uses Firebase client
retool/src/data/services/FirebaseStorageService.ts - Attachment storage → Firebase Storage: uploads and deletes
retool/src/data/services/FirebaseStorageService.ts - Authentication and profiles → User administration: exposes management
- Authentication and profiles → Audit history: exposes audit history
- Authentication and profiles → Notifications: exposes notifications
- Spreadsheet import parsing → Device batch import: feeds parsed data