Commit Graph

63 Commits

Author SHA1 Message Date
vergiLgood1 92d906de5e add readme 2025-08-05 14:37:12 +07:00
vergiLgood1 aa675f04f9 first commit 2025-08-05 14:30:36 +07:00
vergiLgood1 7c44fa86bd feat(statistics): enhance safety indicators with animations and improve UI components 2025-05-27 18:09:30 +07:00
vergiLgood1 8bafa19e31 feat(statistics): implement shimmer loading placeholders in statistics view 2025-05-27 17:45:43 +07:00
vergiLgood1 b54c204963 feat(statistics): add crime statistics fetching methods and enhance statistics view with animated indicators 2025-05-27 17:42:31 +07:00
vergiLgood1 c116e5d229 feat(panic): enhance incident logs model and repository, add recent incidents fetching, and improve statistics view UI 2025-05-27 17:00:40 +07:00
vergiLgood1 b62c64d36d feat(statistics): update district handling and improve dropdown components in statistics view 2025-05-27 15:43:28 +07:00
vergiLgood1 860481a093 feat: Implement Statistics View and Emergency Features
- Added StatisticsViewController to manage crime statistics and safety indicators.
- Created CrimeStatsHeader widget for displaying district and date information.
- Developed EmergencyView with PanicButton and QuickActionButton for emergency actions.
- Introduced MainSafetyIndicator and RecoveryIndicator for visual safety metrics.
- Implemented StatIndicatorCard for displaying various statistics with progress indicators.
- Added functionality to change month and year for crime statistics.
- Integrated loading states and error handling in the UI.
- Created custom dropdowns for month and year selection.
- Enhanced user experience with responsive design and visual feedback.
2025-05-27 15:28:25 +07:00
vergiLgood1 eb3008caf1 feat(auth): update biometric login to use refresh token and add sign out confirmation dialog 2025-05-27 10:14:08 +07:00
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 61fb40bc0f feat: Add Settings Screen and related functionality
- Implemented SettingsScreen with tabs for Account, Social, and Devices.
- Added various settings pages including Email, Notifications, Privacy, Security, Display Mode, Language, Text Size, and Terms of Service.
- Integrated navigation to new settings pages from the main settings screen.
- Updated navigation menu to include the new SettingsScreen.
- Refactored authentication flow to navigate to the main navigation menu after successful login.
- Enhanced UI with theme consistency across new settings pages.
2025-05-27 06:20:45 +07:00
vergiLgood1 1967fdb6b8 feat: Update authentication flow and UI enhancements for sign-in and forgot password screens 2025-05-27 04:34:04 +07:00
vergiLgood1 0da8d5621c feat: Add Check Location feature with validation and UI enhancements 2025-05-27 03:45:01 +07:00
vergiLgood1 b6a82438dd feat: Enhance registration flow with navigation buttons and error handling 2025-05-27 01:53:29 +07:00
vergiLgood1 569e1d6049 feat: Enhance selfie verification step with navigation buttons and validation
- Added StepNavigationButtons to SelfieVerificationStep for improved navigation.
- Implemented validation logic to ensure selfie verification is completed before proceeding.
- Updated AuthButton to use theme colors for better consistency.
- Modified OfficerModel to allow nullable fields and added new fields for enhanced data handling.
- Set default role to Viewer in RoleSelectionController.
- Updated role selection screen with new asset for improved UI.
- Enhanced UserMetadataModel with new methods for updating officer and viewer data.
- Added logging to OfficerRepository and UserRepository for better debugging.
- Improved image uploader error overlay with a blurred background for better visibility.
- Added support for SVG images in StateScreen widget.
- Introduced custom input decoration in CustomTextField for more flexibility.
- Reduced total steps for officers from 4 to 3 in TNum constants.
- Fixed schema for patrol_units in Prisma to ensure correct field definitions.
- Created StepNavigationButtons widget for reusable navigation controls across steps.
2025-05-27 00:44:32 +07:00
vergiLgood1 407233916b feat: Enhance Patrol Unit Management
- Added new fields `category` and `memberCount` to `PatrolUnitModel` for better categorization and tracking of patrol units.
- Introduced `PatrolUnitController` to manage patrol unit operations, including creation, validation, and fetching of patrol units.
- Implemented enhanced validation for patrol unit creation, ensuring all required fields are correctly filled.
- Updated `updateOfficerProfile` method in `OfficerRepository` to return nullable `OfficerModel`.
- Improved `CustomTextField` widget to handle disabled states with appropriate styling.
- Added new colors for information and disabled states in `TColors`.
- Refactored `UserRepository` to update user metadata with role information using a new `UserMetadataModel`.
2025-05-26 18:46:37 +07:00
vergiLgood1 105d992faa feat: Enhance KTP Validation Logic and Update Patrol Unit Selection UI
- Expanded KTP validation to include additional required fields: 'jenis_kelamin' and 'kewarganegaraan'.
- Improved error handling for missing or invalid gender and nationality during KTP validation.
- Updated Patrol Unit Selection Screen to reflect changes in UI elements, including renaming 'Position' to 'Rank' and enhancing dark mode support.
- Refactored image uploader and circular loader components to utilize theme-aware colors for better visual consistency.
2025-05-26 16:22:52 +07:00
vergiLgood1 5bd92a0399 feat: Enhance Selfie Verification Step with Dark Mode Support and Improved Snackbars
- Added dark mode support for warning colors in the Selfie Verification Step.
- Replaced hardcoded colors with theme-aware colors for better UI consistency.
- Updated Snackbar notifications to use a centralized loader utility for better user feedback.
- Refactored the auto-verify toggle and bypass liveness check functionality for clarity.
- Improved layout and styling for better user experience.

fix: Update Units Repository with Logging and Error Handling

- Integrated logging for unit fetching operations in the Units Repository.
- Added checks for empty unit lists to prevent unnecessary errors.
- Improved error handling for database operations.

refactor: Revamp Image Source Dialog and Uploader for Dark Mode

- Enhanced Image Source Dialog to support dark mode styling.
- Updated Image Uploader to use a custom circular loader for better visual feedback during uploads.

style: Standardize Step Indicator Colors Based on Theme

- Adjusted step indicator icon colors to adapt based on the current theme (dark/light).

chore: Update Tips Container to Use New Color Constants

- Refactored Tips Container to utilize new color constants for better maintainability.

style: Introduce New Color Constants for Card Styles

- Added new color constants for card backgrounds, borders, and text to improve UI consistency across the application.

fix: Adjust Total Steps for Officer Selection Process

- Updated the total steps for officer selection from 5 to 4 to reflect the current flow.

chore: Add Patrol Unit Selection Screen for Officer Information

- Implemented a new Patrol Unit Selection Screen to allow officers to configure their patrol units.
- Integrated selection modes and unit creation functionality for enhanced user experience.
2025-05-26 13:31:12 +07:00
vergiLgood1 423c5a369f feat: Add position extraction and related fields for KTA model; enhance selfie verification with development mode options 2025-05-26 06:05:21 +07:00
vergiLgood1 a7652aadfb fix: new condition flag for idCardType 2025-05-26 05:06:35 +07:00
vergiLgood1 dd2bb57e42 feat: Enhance officer information signup form with additional fields and validation
- Added new text controllers and error states for unit ID, patrol unit ID, name, position, phone, email, valid until, avatar, QR code, banned reason, and banned until.
- Implemented validation logic for the new fields in the officer info controller.
- Updated the signup form screen to include new input fields for unit ID and patrol unit ID.
- Refactored the signup with role screen to improve layout and remove unnecessary components.
- Introduced a new role signup page view to manage role selection and signup process.
- Updated the welcome screen button text to reflect new functionality.
- Adjusted the primary color in the dark theme for better visibility.
- Enhanced the auth button height for improved usability.
2025-05-26 03:39:54 +07:00
vergiLgood1 6a4813c15e Refactor onboarding and authentication UI components
- Updated password field to use a consistent dark color.
- Enhanced onboarding controller with a new text page controller for synchronized page views.
- Improved location warning screen to utilize a centralized error snackbar.
- Refined onboarding screen layout for better responsiveness and added text synchronization.
- Revamped role selection screen with improved UI and dynamic role card rendering.
- Updated welcome screen text for clarity on location services.
- Adjusted custom text field to align with new color scheme.
- Simplified color constants for a more cohesive theme.
- Introduced a new circular full-screen loader for better loading experience.
2025-05-26 00:38:56 +07:00
vergiLgood1 1a6eefe6e3 update user dan user profile 2025-05-25 21:11:30 +07:00
vergiLgood1 e6e0a0ab07 feat: streamline liveness detection flow with improved state management and navigation handling 2025-05-25 12:14:41 +07:00
vergiLgood1 19687320ee feat: enhance selfie verification process with auto-start feature and improved error handling 2025-05-25 12:09:29 +07:00
vergiLgood1 5b2806f0bb feat: add registration data model with personal, ID card, selfie, identity, officer, and unit information 2025-05-25 11:04:15 +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 0ee2d72134 feat: Implement facial verification service and selfie verification controller
- Added FacialVerificationService for handling face detection and comparison.
- Created SelfieVerificationController to manage selfie capture and validation against ID card.
- Integrated liveness detection functionality within the selfie verification process.
- Developed SignupWithRoleController for user registration with role selection.
- Introduced PersonalInfoController for managing user personal information during signup.
- Added CountdownOverlayWidget for displaying countdown during liveness check.
- Enhanced error handling and validation across controllers.
2025-05-24 21:51:30 +07:00
vergiLgood1 bd99a3dd40 feat: Enhance face detection and image processing in liveness detection 2025-05-24 17:51:32 +07:00
vergiLgood1 0eec492698 refactor: Update dependencies and clean up unused imports in face liveness detection 2025-05-24 16:54:00 +07:00
vergiLgood1 5dc7aa3cc7 feat: Update camera dependencies and implement selfie verification UI
- Updated camera package version to 0.11.0+2 and camera_android_camerax to 0.6.7+2 in pubspec.lock and pubspec.yaml.
- Removed unused google_ml_kit dependencies from pubspec.lock and pubspec.yaml.
- Added CameraPreviewWidget for displaying camera feed in registration form.
- Created CapturedSelfieView to show the captured selfie and verification status.
- Implemented Debug Panel for liveness detection with real-time status updates.
- Added ErrorStateWidget to handle and display error messages during verification.
- Introduced InstructionBanner to guide users through the verification process.
- Developed VerificationProgressWidget to visually represent the verification progress.
2025-05-24 16:27:58 +07:00
vergiLgood1 790eb4325d refactor: Clean up code formatting and improve logging in liveness detection and registration form 2025-05-24 15:09:35 +07:00
vergiLgood1 64c9f233a1 Refactor code structure for improved readability and maintainability 2025-05-24 14:50:31 +07:00
vergiLgood1 7ca33cdaa3 Refactor identity verification process and enhance registration summary
- Updated IdentityVerificationController to streamline data loading and validation.
- Introduced a new VerificationSummary widget for displaying registration details.
- Improved form validation logic to ensure all required fields are checked before submission.
- Enhanced user profile update functionality in UserRepository to include additional registration data.
- Added verification progress card to provide visual feedback on the status of verification steps.
- Cleaned up code for better readability and maintainability.
2025-05-23 23:07:25 +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 d216088b32 Refactor code structure for improved readability and maintainability 2025-05-23 12:21:33 +07:00
vergiLgood1 a35ba880c5 Refactor code structure for improved readability and maintainability 2025-05-23 12:18:34 +07:00
vergiLgood1 c26d749026 feat: Add KTP model for Indonesian ID card representation
feat: Implement PermissionModel for role-based access control

feat: Create ResourceModel to manage resources with associated permissions

feat: Develop UserMetadataModel for user-related data management

feat: Implement AWS Signature helper for secure API requests

feat: Create detect-face function for AWS Rekognition integration

feat: Implement send-email function using Resend API

feat: Develop verify-face function for comparing KTP and selfie images
2025-05-23 08:33:52 +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 6a85f75e3c feat: Add image upload and selection functionality with ImageSourceDialog and ImageUploader widgets
- Implemented ImageSourceDialog for selecting image source (camera or gallery).
- Created ImageUploader widget for displaying and managing image uploads, including error handling and validation.
- Added TipsContainer widget for displaying helpful tips with customizable styles.
- Developed OcrResultCard to present extracted information from KTP and KTA models.
- Introduced ValidationMessageCard for showing validation messages with confirmation options.
- Implemented FormKeyDebugger for tracking and debugging form keys in the application.
- Added AnimatedSplashScreen for customizable splash screen transitions and navigation.
2025-05-22 16:20:34 +07:00
vergiLgood1 7f6f0c40b7 Add animation for empty address and implement custom SliverPersistentHeaderDelegate
- Added a new JSON animation file for empty address in the assets/images/animations directory.
- Created a custom SliverPersistentHeaderDelegate class for tab bar functionality in custom_silverbar.dart.
- Introduced a global form key management class to streamline form key usage across the application in form_key.dart.
2025-05-22 09:42:28 +07:00
vergiLgood1 ac39366371 feat: Update user metadata model and authentication flow; enhance ID card verification process and error handling 2025-05-20 03:30:19 +07:00
vergiLgood1 498b71c184 feat: Refactor signup process with role selection and update app routes
- Updated app routes for backward compatibility and renamed registration form route.
- Added new image constants for various animations and background images.
- Removed webview_flutter dependency from macOS and updated pubspec.lock.
- Introduced SignupWithRoleController to manage signup logic based on user roles.
- Created SignupWithRoleScreen for user interface, allowing role selection and form submission.
- Implemented RoleSelector widget for displaying available roles.
- Enhanced social login options and integrated privacy policy acceptance in the signup form.
2025-05-20 00:02:35 +07:00
vergiLgood1 ce7d5f5cf4 feat: Enhance officer and profile models with place of birth and date of birth fields; update step indicators for improved layout and styling 2025-05-19 21:20:14 +07:00
vergiLgood1 ce7d448b2f feat: Add registration form steps for officer and personal information, selfie verification, and unit details
- Implemented OfficerInfoStep widget for officer details input.
- Implemented PersonalInfoStep widget for personal details input.
- Implemented SelfieVerificationStep widget for selfie upload and verification.
- Implemented UnitInfoStep widget for unit details input.
- Created step form screen to manage the registration process with navigation between steps.
2025-05-19 20:53:09 +07:00
vergiLgood1 b003d8a158 feat: Implement ID card and selfie verification process using Azure OCR and Face API
- Added AzureOCRService to handle ID card processing and face verification.
- Integrated image picker for uploading ID cards and selfies.
- Updated registration form to include ID card upload and selfie verification sections.
- Enhanced validation for extracted OCR data based on user role (officer or civilian).
- Added liveness check functionality for selfie verification.
- Improved user interface for image upload and verification status messages.
2025-05-19 16:08:20 +07:00
vergiLgood1 ba4cbd180a Refactor step indicator implementation and enhance registration form
- Removed the old StepIndicator widget and replaced it with a new implementation that supports multiple styles (standard, rounded, numbered).
- Added new styles for the StepIndicator: NumberedStepIndicator, RoundedStepIndicator, and StandardStepIndicator.
- Updated the registration form screen to utilize the new StepIndicator with improved styling and functionality.
- Enhanced the StateScreen widget to adapt to dark mode and utilize constants for spacing and sizes.
- Refactored CustomTextField to support dark mode and improved styling.
- Introduced a new FormRegistrationScreen for handling user registration with multiple steps and validation.
2025-05-19 15:09:05 +07:00
vergiLgood1 60fb38da76 fix: Correct class name and improve service initialization in bindings 2025-05-19 14:26:33 +07:00