How unnikrishnandec03-lgtm/trustgate works
TrustGate Sentinel is a forensic fraud-gateway interface for reviewing document, identity, voice, and transaction threats. Operators sign in, select a preset or ingest a file, inspect scan findings and risk signals, then review history or quarantine a suspicious entity; scan records are persisted to Firestore. The repository describes multimodal triage, but the sampled implementation chiefly shows a UI workflow and preset-driven analysis, not a backend AI detection engine. Edges are limited to relationships visible in excerpts or the source index.
Main entry points: App.tsx Application flow · WebForensicWorkspace.tsx Web workspace · useFirebaseAuth.ts Auth state · DualViewCanvas.tsx Document comparison
Components 23
Operator Access
- Login screens
New folder (2)/src/components/LoginScreen.tsx - Authorization modal
New folder (2)/src/components/LoginAuthorizationModal.tsx - Auth state
New folder (2)/src/hooks/useFirebaseAuth.ts
Forensic Workflow
- Application flow
New folder (2)/src/App.tsx - Web workspace
New folder (2)/src/components/WebForensicWorkspace.tsx - Mobile workspace
New folder (2)/src/components/MobileForensicInterface.tsx - Scenario presets
New folder (2)/src/data/mockPresets.ts - Scan history
New folder (2)/src/components/HistoricalScansTable.tsx - Latency metrics
New folder (2)/src/components/LatencyThroughputChart.tsx - Health monitor
New folder (2)/src/components/GlobalHealthMonitor.tsx
Threat Review
- Document comparison
New folder (2)/src/components/DualViewCanvas.tsx - Document renderers
New folder (2)/src/utils/documentRenderers.ts - ELA generator
New folder (2)/src/utils/elaGenerator.ts - Forensic findings
New folder (2)/src/components/ForensicHallmarksDrawer.tsx - Risk meter
New folder (2)/src/components/RiskMeterRing.tsx - Audio spectrogram
New folder (2)/src/components/AudioSpectrogramViewer.tsx - Transaction graph
New folder (2)/src/components/TransactionGraphViewer.tsx - Threat vector radar
New folder (2)/src/components/VectorRadarChart.tsx
Data and Platform
- Firebase services
New folder (2)/src/lib/firebase.ts - Firestore
- Forensic data model
New folder (2)/src/types/forensic.ts - Glass effects
New folder (2)/src/components/LiquidGlass.tsx
Other components
- Security operator
Connections 27
- Security operator → Application flow: uses
- Application flow → Auth state: gets auth state
New folder (2)/src/App.tsx - Auth state → Firebase services: calls auth helpers
New folder (2)/src/hooks/useFirebaseAuth.ts - Application flow → Firebase services: persists scans
New folder (2)/src/App.tsx - Application flow → Firebase services: subscribes to audits
New folder (2)/src/App.tsx - Firebase services → Firestore: reads and writes
New folder (2)/src/lib/firebase.ts - Auth state → Firestore: writes profiles
New folder (2)/src/hooks/useFirebaseAuth.ts - Application flow → Scenario presets: loads scenarios
New folder (2)/src/App.tsx - Application flow → Web workspace: presents workspace
New folder (2)/src/App.tsx - Application flow → Mobile workspace: presents workspace
- Application flow → Scan history: supplies scan history
New folder (2)/src/App.tsx - Application flow → Forensic data model: uses scan types
New folder (2)/src/App.tsx - Web workspace → Document comparison: renders comparison
New folder (2)/src/components/WebForensicWorkspace.tsx - Mobile workspace → Document comparison: renders comparison
New folder (2)/src/components/MobileForensicInterface.tsx - Document comparison → Document renderers: uses renderers
New folder (2)/src/components/DualViewCanvas.tsx - Document comparison → ELA generator: uses ELA
New folder (2)/src/components/DualViewCanvas.tsx - Web workspace → Forensic findings: shows findings
New folder (2)/src/components/WebForensicWorkspace.tsx - Forensic findings → Risk meter: renders meter
New folder (2)/src/components/ForensicHallmarksDrawer.tsx - Web workspace → Audio spectrogram: shows audio analysis
New folder (2)/src/components/WebForensicWorkspace.tsx - Web workspace → Transaction graph: shows transaction graph
New folder (2)/src/components/WebForensicWorkspace.tsx - Web workspace → Threat vector radar: shows threat vectors
New folder (2)/src/components/WebForensicWorkspace.tsx - Web workspace → Scan history: shows scan history
New folder (2)/src/components/WebForensicWorkspace.tsx - Web workspace → Latency metrics: shows latency
New folder (2)/src/components/WebForensicWorkspace.tsx - Web workspace → Health monitor: offers health view
- Login screens → Auth state: uses auth
New folder (2)/src/components/LoginScreen.tsx - Authorization modal → Auth state: receives auth actions
New folder (2)/src/components/LoginAuthorizationModal.tsx - Glass effects → Glass effects: uses effects
New folder (2)/src/components/LiquidGlass.tsx