CAPTURE - TCE-MA Mobile Inspection System
Official app of the Court of Auditors of the State of Maranhão (TCE-MA) for auditors and inspectors to conduct structured data collection during field inspections.
🔐 AUTHENTICATION AND SECURITY
• Institutional login via Keycloak SSO (OAuth 2.0/OpenID Connect)
• JWT tokens with automatic renewal
• Integrated password recovery
• Secure logout with token invalidation
• Multiple environments (Production/Certification/Development)
• HTTPS/TLS encryption for all communications
• Route guard for authenticated pages
📸 PHOTO CAPTURE
• **Take photo:** Native camera with optimized settings
- 80% quality
- Automatic orientation correction
- Automatically save to the device gallery
• **Select from gallery:** Up to 10 photos at a time
• **Preserved quality:** Smart compression
• **Preview:** Preview before attaching
📹 VIDEO CAPTURE
• **Record new video:**
- Custom full-screen recording interface
- Recording with Audio
- Start/Stop recording buttons
- Format: MP4 (iOS) / WebM (Android)
- Native MediaRecorder API
• **Select video from gallery:**
- Choose from existing videos
- Support for common formats
📂 DOCUMENT ATTACHMENTS
• Select files from the device
• Support for multiple formats:
- Documents: PDF, DOC, DOCX, TXT, CSV
- Spreadsheets: XLS, XLSX
- Presentations: PPT, PPTX
- Various other formats
• Comments per attached file
• View attached documents
📍 GEOLOCATION
• **Manual capture of GPS coordinates:**
- Specific button to update location
- High precision (GPS enabled)
- 90-second timeout
- Recording of geographic coordinates of visited units
• **When it works:**
- During inspections in progress, review, or validation
- Only for non-simulated inspections
- Requires user location permission
⚠️ **Important:** Does NOT perform continuous or automatic location tracking
💾 OFFLINE MODE
• **Full functionality without internet:**
- Questionnaire completion
- Media capture
- Secure local saving
• **Smart synchronization:**
- Automatic connection detection
- Pending upload queue
- Unsynced item counter
- Confirmation before synchronization
- Progress bar during synchronization
- Completion notification
📊 INSPECTION MANAGEMENT
• **Dashboard with indicators:**
- Total inspections available
- Statistics by status
- Progress overview
• **Inspection list:**
- Filters by category
- Search by text
- Status: In Planning, In Execution, In Review, In Validation
- Identification of simulated inspections
- Progress indicator
• **Inspection details Inspection:**
- Name and description
- Administrative units involved
- Assigned questionnaires
- Start and end dates
- Responsible auditor identification
• **Access control:**
- Only the responsible auditor can complete the survey
- Deadline validation
- Simulation mode for training
✅ VALIDATION AND QUALITY
• **Automatic validations:**
- Mandatory questions
- Numeric answer format
- Character limit in texts
- Check for empty fields
• **Quality control:**
- Review of questionnaires before completion
- Multi-level validation system
- Audit comments
- Change history
👤 PROFILE AND SETTINGS
• **User profile:**
- Profile photo
- Full name
- Institutional email
- View personal data
🔔 NOTIFICATIONS AND ALERTS
• Warnings for missing mandatory fields
• Confirmation before completing surveys
• Notification of pending synchronization
• Connectivity alerts
• Visual feedback of actions (toasts)
• Confirmation of critical operations