Commit Graph

13 Commits

Author SHA1 Message Date
vergiLgood1 0f3cb701c4 feat(profile): enhance officer and user profile details with improved null checks and formatting
- Updated OfficerProfileDetail to include better null checks for officer attributes and added patrol statistics.
- Introduced a new method to format role names for better display.
- Enhanced UserProfileDetail to handle cases where user data may not be available, displaying appropriate messages.
- Added address display functionality in UserProfileDetail.
- Improved SettingsScreen to fetch user profile data if not already loaded and display it with a loading indicator.
- Refactored SecuritySettingsScreen to use reactive state management with GetX for better performance and user experience.
- Created ProfileEditForm for editing user profiles with validation and image upload options.
- Added a custom circular loader widget for consistent loading indicators across the app.
2025-05-27 08:39:46 +07:00
vergiLgood1 c6931619de feat(settings): implement base settings controller and specific controllers for display mode, email, language, notifications, privacy, security, and text size
- Added BaseSettingsController to manage loading states and error handling.
- Created DisplayModeController to handle theme settings with persistence.
- Implemented EmailController for managing email preferences and verification.
- Developed LanguageController for language selection and persistence.
- Added NotificationsController to manage notification preferences.
- Created PrivacyController for privacy settings management.
- Implemented SecurityController for security settings including 2FA and backup codes.
- Developed TextSizeController to manage text size settings.
- Created SettingsController to aggregate all sub-controllers and manage user settings.
- Added UI components for displaying officer and user profile details.
2025-05-27 07:10:04 +07:00
vergiLgood1 8f781740e7 feat: Implement selfie verification feature with camera preview, countdown, and error handling
- Added CameraPreviewWidget for real-time camera feed and face detection.
- Created CapturedSelfieView to display captured selfies and verification results.
- Introduced CountdownOverlayWidget to manage countdown during face verification.
- Developed DebugPanel for troubleshooting liveness detection issues.
- Implemented ErrorStateWidget to handle and display error messages.
- Added InstructionBanner to guide users through the verification process.
- Created VerificationProgressWidget to show progress of verification steps.
2025-05-24 22:13:13 +07:00
vergiLgood1 5c3faac8c3 feat: Implement registration form and verification steps
- Added FormRegistrationScreen for user profile completion with step navigation.
- Created SelfieVerificationStep for capturing and validating user selfies.
- Implemented OfficerInfoStep and UnitInfoStep for officer-specific information input.
- Introduced PanicButtonController and PanicButtonPage for emergency alert functionality.
- Developed CustomElevatedButton and CustomBottomNavigationBar for enhanced UI components.
2025-05-23 22:30:06 +07:00
vergiLgood1 d9fffff68d feat: Enhance selfie verification process with ID card comparison
- Added functionality to compare the uploaded selfie with the ID card photo.
- Introduced new state variables in SelfieVerificationController to manage face comparison status and confidence levels.
- Implemented face detection and ID comparison logic in the selfie verification workflow.
- Updated UI components in SelfieVerificationStep to display face match results and provide retry options.
- Refactored IdentityVerificationStep to utilize new widget structure for better organization.
- Created separate widgets for identity verification fields and face verification section for improved readability and maintainability.
- Updated API endpoints for Azure Face API to use the latest version.
- Removed deprecated validation button from ImageUploader widget.
- Added navigation utility class for better route management.
2025-05-22 21:47:01 +07:00
vergiLgood1 1908318769 Refactor DocumentIntelligenceService and related classes to comment out code for future reference; update AuthenticationRepository to remove splash screen on app start. 2025-05-22 16:51:13 +07:00
vergiLgood1 867efe0bc9 Add role selection 2025-05-19 13:35:57 +07:00
vergiLgood1 1fd17ee0af feat: Add branding and launch images for dark mode support
- Added dark mode branding images for the app.
- Created contents.json files for branding and launch background images.
- Implemented splash screen with animated Lottie assets based on theme.
- Developed authentication repository with email/password and social login functionalities.
- Introduced background service for heavy computations in isolates.
- Added splash controller to manage authentication flow during splash screen.
2025-05-19 00:12:05 +07:00
vergiLgood1 8d67e7bbb3 feat: Add biometric permission and update activity to FlutterFragmentActivity; refactor bindings and remove unused repositories 2025-05-17 07:50:58 +07:00
vergiLgood1 803a28494d feat: Implement user profile and role management features
- Added ProfileRepository for managing user profile data including fetching, updating, and uploading avatars.
- Introduced RolesRepository to handle role-related operations such as fetching all roles and retrieving roles by ID or name.
- Created UserRepository for user data management, including user authentication checks and profile updates.
- Developed OfficerModel to represent officer data with JSON serialization.
- Implemented RoleSelectionController to manage role selection logic during onboarding.
- Added LocationWarningScreen to handle location validation and user notifications.
- Created RoleSelectionScreen for users to select their roles during onboarding.
- Developed RoleCard widget for displaying role options in a user-friendly manner.
2025-05-17 07:10:00 +07:00
vergiLgood1 ffed8b8ede feat(panic-button): add models for events, evidences, incident logs, and sessions
- Implement EventModel with JSON serialization and deserialization.
- Create EvidenceModel with associated JSON handling.
- Develop IncidentLogModel to manage incident logs and their evidences.
- Introduce SessionsModel to track user sessions related to events.
- Update index file to export new models.

feat(personalization): introduce permissions and resources models

- Add PermissionModel to manage user permissions with JSON support.
- Create ResourceModel to define resources and their associated permissions.
- Ensure proper serialization and deserialization for both models.

chore(database): update Prisma schema for new models and relationships

- Add new models: events, evidences, incident_logs, sessions, permissions, and resources.
- Define relationships between users, roles, and permissions.
- Update existing models to maintain referential integrity.
- Introduce enums for session status, contact message status, crime rates, and crime status.
2025-05-16 18:41:16 +07:00
vergiLgood1 7ad427baf6 feat: Update pubspec.yaml with new dependencies and local assets
- Updated description format in pubspec.yaml
- Added multiple utility packages for enhanced functionality
- Included local assets and fonts for better UI design
- Updated widget test to reference the new app structure
- Registered new plugins in generated_plugin_registrant.cc for Windows
- Updated generated_plugins.cmake to include new plugins
- Modified Supabase config to allow additional redirect URLs
2025-05-16 15:42:03 +07:00
vergiLgood1 636f892a42 Add Flutter app sigap-mobile as regular folder 2025-05-16 06:36:07 +07:00