How auditstaff1jbyl-tech/trinitas works
This is a branch cash-variance reconciliation and analysis dashboard. Staff or managers enter and review variance incidents, maintain branch/staff/category registries, and inspect operational, trend, and root-cause reports; records can be persisted in Firestore and reports exported. The graph preserves the major analysis views and dashboard subviews, though several view-to-view and data-loading connections cannot be verified from the excerpts. Some App routing and Firebase synchronization details are unsampled, so uncertain links are omitted.
Main entry points: App.tsx Application Shell · firestoreService.ts Firestore Service · exportUtils.ts CSV Export · DataEntryModal.tsx Incident Entry
Components 22
Incident Workflow
- Application Shell
src/App.tsx - Incident Entry
src/components/DataEntryModal.tsx - Incident Review
src/components/IncidentDetailModal.tsx - Variance Records
src/types.ts
Analysis & Reporting
- Dashboard
src/components/DashboardView.tsx - Executive KPIs
src/components/ExecutiveKPIs.tsx - Trend Chart
src/components/MainTrendChart.tsx - Branch Performance
src/components/BranchPerformanceView.tsx - Staff Performance
src/components/StaffPerformanceView.tsx - Root Cause Analysis
src/components/RootCauseAnalysisView.tsx - Improvement Trends
src/components/TrendsImprovementView.tsx - Variance Monitoring
src/components/VarianceMonitoringView.tsx - Reports
src/components/ReportsView.tsx - Analytics Engine
src/utils/analytics.ts - CSV Export
src/utils/exportUtils.ts
Administration
- Registry Settings
src/components/SettingsView.tsx - Variance Categories
src/data/categories.ts - Seed Data
src/data/mockData.ts
Persistence
- Firestore Service
src/services/firestoreService.ts - Firebase Setup
src/lib/firebase.ts - Cloud Firestore
Other components
- Manager / Staff
Connections 23
- Manager / Staff → Application Shell: uses
- Application Shell → Incident Entry: opens
src/App.tsx - Application Shell → Incident Review: opens
src/App.tsx - Application Shell → Dashboard: routes to
src/App.tsx - Application Shell → Branch Performance: renders
src/App.tsx - Application Shell → Staff Performance: renders
src/App.tsx - Application Shell → Analytics Engine: computes insights
src/App.tsx - Application Shell → Firestore Service: saves records
src/App.tsx - Application Shell → Firestore Service: saves registries
src/App.tsx - Application Shell → Variance Records: holds
src/App.tsx - Dashboard → Executive KPIs: renders
src/components/DashboardView.tsx - Dashboard → Trend Chart: renders
src/components/DashboardView.tsx - Incident Entry → Variance Categories: uses categories
src/components/DataEntryModal.tsx - Incident Entry → Analytics Engine: formats values
src/components/DataEntryModal.tsx - Branch Performance → CSV Export: exports data
src/components/BranchPerformanceView.tsx - Staff Performance → CSV Export: exports data
src/components/StaffPerformanceView.tsx - Reports → CSV Export: exports reports
src/components/ReportsView.tsx - Variance Monitoring → CSV Export: exports data
src/components/VarianceMonitoringView.tsx - Application Shell → Seed Data: initializes records
src/App.tsx - Application Shell → Variance Categories: resets categories
src/App.tsx - Firestore Service → Cloud Firestore: reads and writes
src/services/firestoreService.ts - Firestore Service → Firebase Setup: uses database client
src/services/firestoreService.ts - Firebase Setup → Cloud Firestore: initializes client
src/lib/firebase.ts