Commit Graph

35 Commits

Author SHA1 Message Date
vergiLgood1 512b29c54d add edge function for detect and verify faces with aws rekognition 2025-05-23 20:35:37 +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 867efe0bc9 Add role selection 2025-05-19 13:35:57 +07:00
vergiLgood1 db8e2a6321 add seeds supaabse 2025-05-14 06:54:34 +07:00
vergiLgood1 f4b1d9d633 feat: Implement custom animated popup for EWS alerts with wave circles and enhanced styling 2025-05-07 11:38:16 +07:00
vergiLgood1 0747897fc7 Refactor database privileges and schema management
- Created migration scripts to manage the 'prisma' role and its privileges across various schemas including 'public', 'gis', 'auth', and 'storage'.
- Added explicit grants for all necessary tables, sequences, and functions to ensure the 'prisma' role has appropriate access.
- Implemented triggers for user management in the 'auth' schema to handle new user creation, updates, and deletions.
- Established default privileges for future objects in the specified schemas to streamline permission management.
- Updated remote schema management scripts to include grants for 'postgres' on specific tables and functions.
- Dropped and recreated types in the 'gis' schema to ensure proper structure and functionality.
2025-05-05 23:39:01 +07:00
vergiLgood1 e488bad7c1 feat(map): add pitch and bearing constants for map initialization
feat(district-popup): enhance badge hover styles for crime levels

feat(map): implement year timeline control with smooth animation

feat(ui): create a reusable slider component using Radix UI

chore(package): update package.json and package-lock.json to include @radix-ui/react-slider
2025-05-03 22:58:14 +07:00
vergiLgood1 428986c927 feat: add crime and district popups with detailed information and filtering capabilities
- Added `CrimePopup` component to display detailed information about individual crime incidents.
- Introduced `DistrictPopup` component to show district-level crime statistics and demographics.
- Implemented `useFilteredCrimeData` hook for filtering crime data based on selected categories.
- Created `calculateCrimeStats` utility function to compute various crime statistics from raw data.
- Updated package.json to include necessary dependencies for map and geocoder functionalities.
2025-05-02 22:20:22 +07:00
vergiLgood1 897a130ff7 feat: Enhance Overlay component with customizable styles and addControl method
- Updated OverlayProps to include className and style for customization.
- Modified OverlayControl to apply custom styles and handle control addition.
- Improved rendering logic in _Overlay to pass addControl method to children.
- Refactored SelectContent to accept a container prop for better positioning.
- Cleaned up useFullscreen hook by removing unnecessary comments and improving readability.
- Updated global CSS for better styling of map popups and controls.
- Removed unused dependencies related to mapbox-gl-draw from package.json and package-lock.json.
- Added CustomControl and MonthSelector components for enhanced map functionality.
2025-05-01 21:15:31 +07:00
vergiLgood1 31f12ab88b feat: add overlay component and integrate into map controls for improved UI layout 2025-04-30 18:39:21 +07:00
vergiLgood1 63b0721859 feat: add initial data seeding for resources, roles, demographics, crime incidents, and geographic data
- Created resources data structure in `resources.ts`
- Added roles data structure in `roles.ts`
- Implemented seeding for crime categories and incidents with detailed logic in `crime-category.ts` and `crime-incident.ts`
- Developed demographic data seeding logic in `demographic.ts`
- Implemented geographic data seeding from GeoJSON files in `geographic.ts`
- Added permission seeding logic in `permission.ts`
- Created resource and role seeding scripts in `resource.ts` and `role.ts`
2025-04-25 02:04:04 +07:00
vergiLgood1 0cbcd3e636 feat: add initial data seeding for resources, roles, demographics, crime incidents, and geographic data 2025-04-15 22:47:07 +07:00
vergiLgood1 c6f803b08c feat: add crime map components and functionality
- Implemented MapLegend component to display crime rate legend.
- Created YearSelector component for selecting the year of crime data.
- Developed CrimeMap component to manage crime incidents and district data.
- Added DistrictLayer for rendering districts on the map with hover and click interactions.
- Introduced CrimeMarker for displaying crime incidents on the map.
- Built MapView component for rendering the map with various controls.
- Established utility constants for crime colors and rates.
- Defined types for crime management and map features.
2025-04-14 23:47:44 +07:00
vergiLgood1 258205ef49 Init roles, permissions and resources repository 2025-04-10 22:38:57 +07:00
vergiLgood1 22265fc2d2 use zustand to store management 2025-04-05 21:15:37 +07:00
vergiLgood1 741c44ebe5 Refactor lagi anjir 2025-04-02 21:00:11 +07:00
vergiLgood1 9380c371f8 refactor createUsersTable 2025-03-29 21:34:48 +07:00
vergiLgood1 1a39925c97 implmentation clean architecture for auth services 2025-03-16 22:25:33 +07:00
vergiLgood1 aed9eba5d3 set up sentry 2025-03-16 00:46:37 +07:00
vergiLgood1 693f5d265e refactor project structure (backups) 2025-03-15 22:49:23 +07:00
vergiLgood1 280033b0e1 add custom date time picker 2025-03-10 23:54:28 +07:00
vergiLgood1 5ee59cbf20 Menggunakan rreact query untuk menangani CRUD 2025-03-09 23:48:59 +07:00
vergiLgood1 dc3c0bebbb menampilkan user saat ini ke profile 2025-03-02 23:47:02 +07:00
vergiLgood1 0c16fc2be5 add filter per kolom user 2025-02-28 22:36:31 +07:00
vergiLgood1 681517e28e menambahkan user management 2025-02-28 20:23:31 +07:00
vergiLgood1 ca90871b22 remove older project 2025-02-28 19:26:26 +07:00
vergiLgood1 10ce404a1d add trigger for auth.users to custom public.user 2025-02-27 19:58:21 +07:00
vergiLgood1 39a0af5e0f add users table 2025-02-27 00:58:32 +07:00
vergiLgood1 7de1201675 add action search bar 2025-02-21 18:50:04 +07:00
vergiLgood1 67ecc950c2 add theme switcher and inbox drawer to header layout admin panel 2025-02-21 18:00:23 +07:00
vergiLgood1 a0b0289a86 init mapbox 2025-02-21 02:36:44 +07:00
vergiLgood1 bc0c6438a2 fecth dynamic navitem 2025-02-20 23:50:45 +07:00
vergiLgood1 c7e0e2905c init prisma and edge functions 2025-02-17 23:41:35 +07:00
vergiLgood1 140b4544ab feat:auth with otp 2025-02-14 01:26:47 +07:00
vergiLgood1 5bfad80bf0 init next 14 with supabase 2025-02-12 19:10:21 +07:00