How indragovich/ocrnerverify works
ocrnerverify is a role-based web app for submitting and verifying routine-cost reports with scanned attachments. Operators submit reports; verifiers browse by region, run automated extraction and comparison, then review mismatches and record a decision. Super admins also manage users and inspect audit history. The graph follows the documented React → Laravel → OCR/NER architecture and includes its main report, review, and administration branches. Some backend and frontend modules were not excerpted, so those links rely on README statements or are omitted where the caller is not evidenced.
Main entry points: App.tsx Page routing · VerifierDashboard.tsx Verification dashboard · api.ts HTTP client · VerifikasiController.php Laravel API
Components 31
Web application
- Page routing
src/App.tsx - Report entry
src/pages/InputDashboard.tsx - Verification dashboard
src/pages/VerifierDashboard.tsx - Review details
src/components/DetailModal.tsx - Attachment viewer
src/components/LampiranViewer.tsx - Sign-in
src/pages/LoginPage.tsx - User administration
src/pages/AdminUsersPage.tsx - Audit history
src/pages/AuditLogPage.tsx - Authentication client
src/services/authService.ts - Report API client
src/services/verifikasiService.ts - User API client
src/services/userService.ts - HTTP client
src/services/api.ts
Laravel application
- Laravel API
backend/app/Http/Controllers/VerifikasiController.php - Batch verification
backend/app/Http/Controllers/BatchVerifikasiController.php - Verification job
backend/app/Jobs/ProcessVerifikasiJob.php - OCR/NER integration
backend/app/Services/OcrNerService.php - Result comparison
backend/app/Services/MatchingService.php - Regional scoping
backend/app/Services/WilayahService.php - Audit logging
backend/app/Services/AuditService.php - User management API
backend/app/Http/Controllers/Admin/UserController.php - Audit API
backend/app/Http/Controllers/AuditLogController.php - Report export
backend/app/Http/Controllers/ExportController.php
Document extraction
- Extraction API
ocr-ner-service/main.py - OCR extraction
ocr-ner-service/ocr/extractor.py - Entity extraction
ocr-ner-service/ner/extractor.py
Records and governance
- Cost reports
backend/app/Models/VerifikasiBiayaRutin.php - User records
backend/app/Models/User.php - Audit records
backend/app/Models/AuditLog.php
Other components
- Operator
- Verifier
- Super admin
Connections 39
- Operator → Report entry: enters reports
README.md - Verifier → Verification dashboard: reviews reports
README.md - Super admin → User administration: manages users
README.md - Super admin → Audit history: views history
README.md - Page routing → Report entry: routes to
src/App.tsx - Page routing → Verification dashboard: routes to
src/App.tsx - Page routing → Sign-in: routes to
src/App.tsx - Page routing → User administration: routes to
src/App.tsx - Page routing → Audit history: routes to
src/App.tsx - Report entry → Authentication client: uses
src/pages/InputDashboard.tsx - Report entry → Report API client: submits reports
src/pages/InputDashboard.tsx - Verification dashboard → Authentication client: uses
src/pages/VerifierDashboard.tsx - Verification dashboard → Report API client: requests verification
src/pages/VerifierDashboard.tsx - Verification dashboard → Review details: opens details
src/pages/VerifierDashboard.tsx - Review details → Report API client: saves decisions
src/components/DetailModal.tsx - Review details → Attachment viewer: renders attachment
src/components/DetailModal.tsx - Sign-in → Authentication client: signs in
- User administration → User API client: manages accounts
src/pages/AdminUsersPage.tsx - Audit history → HTTP client: loads audit data
- Authentication client → HTTP client: sends requests
src/services/authService.ts - Report API client → HTTP client: sends requests
src/services/verifikasiService.ts - User API client → HTTP client: sends requests
src/services/userService.ts - HTTP client → Laravel API: calls API
README.md - Laravel API → Cost reports: reads and writes
backend/app/Http/Controllers/VerifikasiController.php - Laravel API → Audit logging: logs changes
backend/app/Http/Controllers/VerifikasiController.php - Laravel API → Regional scoping: checks scope
backend/app/Http/Controllers/VerifikasiController.php - Batch verification → Verification job: dispatches jobs
backend/app/Http/Controllers/BatchVerifikasiController.php - Verification job → Cost reports: processes report
- Verification job → OCR/NER integration: requests extraction
- OCR/NER integration → Extraction API: sends attachment
README.md - Extraction API → OCR extraction: extracts text
ocr-ner-service/main.py - Extraction API → Entity extraction: extracts entities
ocr-ner-service/main.py - Extraction API → Result comparison: provides extracted values
- User management API → User records: reads and updates
backend/app/Http/Controllers/Admin/UserController.php - User management API → Audit logging: logs account changes
backend/app/Http/Controllers/Admin/UserController.php - Audit logging → Audit records: writes entries
backend/app/Services/AuditService.php - Audit API → Audit records: reads entries
- Report export → Cost reports: exports reports
backend/app/Http/Controllers/ExportController.php - Report export → Audit records: exports history
backend/app/Http/Controllers/ExportController.php