Commit Graph

3 Commits

Author SHA1 Message Date
vergiLgood1 aa675f04f9 first commit 2025-08-05 14:30:36 +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 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