Commit Graph

25 Commits

Author SHA1 Message Date
68b2a33321 feat: Introduce Docker containerization and revamp the resident movement report to include both incoming and outgoing population data. 2026-02-06 18:11:16 +08:00
ce88ac52f6 Add phone number field to citizen data
Adds phone column to tb_pdd table and updates all related forms (add, edit, view) to handle phone numbers for citizens.
2026-01-25 00:20:46 +08:00
5d69f28fad Secure Gemini API key with environment variables and cleanup unused dependencies 2026-01-22 22:22:58 +08:00
7bf7787c6f Enhance mobile cropping experience with dual-mode scanner
- Add toggle between Smart Scan (jscanify) and Manual Crop (cropper.js) modes
- Default to Manual Crop mode on touch devices for easier mobile use
- Integrate cropper.js with pinch-to-zoom, pan, and touch-friendly handles
- Increase corner point size and button sizes for better touch targets
- Add mobile help text and visual guidance
- Maintain backward compatibility with existing scanner functionality
- Improve touch event handling to prevent unwanted scrolling
2026-01-22 19:31:39 +08:00
564869b110 Clean up repository and optimize for deployment
- Move unused files (Docker, build source, old SQL files) to 'unused/' directory
- Add database structure-only SQL file for clean installations
- Remove old backup files and create fresh backup
- Maintain only essential files in root directory for cleaner deployment
2026-01-22 19:15:27 +08:00
1579da0dbb Add comprehensive database initialization file
- Create sidak_database_init.sql with complete table structures
- Includes primary keys, auto-increments, and foreign key constraints
- Uses utf8mb4 charset for full Unicode support
- Adds default admin user (admin/admin) and kaur user (kaur/kaur)
- Adds default village profile data
- Ready for deployment on new servers
2026-01-22 17:13:08 +08:00
858435acfe Enhance dashboard UX, fix logout, and localize all external libraries
- Make all dashboard cards clickable (13 cards total) for better UX
- Fix logout confirmation for kaur level with robust jQuery handler
- Download all external libraries locally for offline capability:
  * Ionicons CSS + fonts
  * Cropper.js v1.5.13 (CSS + JS)
  * Chart.js v3.9.1 (fixed chart display)
  * jscanify library
  * Google Fonts - Source Sans Pro (CSS + TTF)
  * OpenCV.js v4.7.0 (8.75MB)
- Update all CDN references to local paths in index.php and login.php
- Add vendor directory exception to .gitignore
- Improve session destruction in logout.php
- Add console debugging for chart initialization
2026-01-22 17:04:07 +08:00
3b10745f49 Add SweetAlert2 availability check and fallback to standard confirm dialog for logout 2026-01-22 16:17:14 +08:00
8269494306 Fix logout issue for kaur level: improve session destruction in logout.php and capture href before async in confirmLogout 2026-01-22 16:16:17 +08:00
cfa09f6837 Make all dashboard cards clickable (entire card area) with cursor pointer and onclick redirect, preserve footer links with stopPropagation 2026-01-22 16:09:58 +08:00
19cc3244de Enhance pendatang module with existing resident selection, standardize UI gender display to LAKI-LAKI/PEREMPUAN, add Jenis Kelamin columns to pindah/mendu tables, fix NIK display in reports, and implement security improvements 2026-01-22 15:52:22 +08:00
51451824ba Replace all confirmation dialogs with SweetAlert2
- Replace native confirm() with SweetAlert2 for better UX
- Add custom confirmation functions for logout and delete actions
- Fix HTML syntax errors (</> to </a>) in all data tables
- Use consistent styling with cancel/confirm buttons
- All confirmations now have 'Konfirmasi Hapus'/'Konfirmasi Logout' titles
2026-01-22 08:53:47 +08:00
2d2d3604e0 Fix level mapping display in sidebar and user table
- Map 'admin' → 'Administrator', 'kaur' → 'Kaur Pemerintah' in sidebar and user list
- Fix sidebar menu comparison to use 'kaur' instead of 'Kaur Pemerintah'
2026-01-22 08:08:55 +08:00
f44ca2bd62 Fix password hashing in user creation and re-enable captcha
- Hash passwords with MD5 in add_pengguna.php
- Re-enable captcha validation in login.php
- Disable error reporting in production
2026-01-22 08:04:32 +08:00
b337288d01 Fix login issues: disable captcha temporarily, remove BINARY username, add error debugging. Fix level mapping for user management. 2026-01-22 07:55:28 +08:00
05dd3f2a67 Enhance SIDAK with two-way KK-KTP linkage, scanner mobile optimization, NIK validation, and UI improvements
- Implement bidirectional KK-KTP linkage system (address-based & NIK-based)
- Optimize scanner for mobile devices (touch slop, larger hit areas, modal locking)
- Add NIK validation (16-digit numeric) with client-side feedback
- Set default RT/RW values to '000' for both KK and KTP forms
- Change 'Kpl Keluarga' label to 'Kepala Keluarga'
- Improve scanner error messages and user feedback
- Remove redundant 'Deteksi Dokumen' button
- Add database schema updates and Docker support files
2026-01-22 07:34:17 +08:00
334d24b6b8 feat(dashboard): optimize layout and add village profile header
- Add compact Village Profile (Desa, Kecamatan, Kabupaten) header to Dashboard.
- Move Chart Legend to the right for better space utilization.
- Remove redundant spacing and headers around the Population Chart.
2026-01-18 22:17:18 +08:00
67048eb22e add: grafik 2026-01-18 22:07:22 +08:00
80951b57a0 feat: Modern Theme and Dashboard Enhancements
- Implemented Modern Theme (Inter font, Rounded UI, Indigo/White palette)
- Updated Login Page with gradient background and modern card
- Added Age Demographics to Dashboard (Stats count)
- Integrated Chart.js for Population Donut Chart
- Made Dashboard Info Boxes clickable with Age Category filtering
- Updated Resident Data table to support age filtering
2026-01-18 22:02:48 +08:00
7c71bdc1f9 feat: Implement Age Report, Dynamic Headers, KK Auto-Link, and Rebranding
- Added Age Classification Report (admin/laporan/laporan_klasifikasi.php)
- Updated Reports to use Dynamic Village Profile (tb_profil)
- Use 'nama_desa' column for village name
- Enhanced KK Scan to auto-link existing members by NIK
- Updated Index menu for Age Report (Admin & Kaur scope)
- Rebranded Footer to Wartana 2026
- Removed legacy 'Versi 2020' text
2026-01-18 21:51:20 +08:00
3935519d02 fix: perspektif crop 2026-01-18 21:30:10 +08:00
1cd7db0fcc fix crop 2026-01-18 21:16:53 +08:00
c5abd68e9e Feat: Photo Upload, Zoom/Pan UI, and Default Placeholders 2026-01-18 17:12:52 +08:00
74b8f572a2 Enhancement: Complete overhaul of SIDAK application
- Report: Added printable reports for all categories.
- Dashboard: Fixed broken links and implemented gender balance filtering.
- Logic: Auto-integration of Arrivals and Births into Resident/KK data.
- Fix: Solved deletion popup bug in Birth Data.
- Feature: Added Full KK History view.
- Feature: Implemented Dynamic Village Profile for letter templates.
2026-01-18 16:25:38 +08:00
a10d6f70fb Initial commit 2026-01-18 14:22:18 +08:00