MIF_E31221222/sigap-website/app/(pages)/(admin)/dashboard/crime-management/crime-overview
vergiLgood1 0de70f9057 feat: add incident severity categorization and utility functions
- Implemented `getIncidentSeverity` function to categorize incidents based on predefined categories.
- Added `formatMonthKey` function to format month keys for display.
- Introduced `getTimeAgo` function to calculate and format time elapsed since a given timestamp.

feat: create custom hooks and components for crime analytics

- Developed `useCrimeAnalytics` hook to process and analyze crime data, providing insights such as total incidents, recent incidents, and category counts.
- Created `CrimeTypeCard`, `IncidentCard`, `StatCard`, and `SystemStatusCard` components for displaying crime statistics and incident details in the sidebar.
- Implemented `SidebarIncidentsTab` and `SidebarStatisticsTab` components to manage and display incident data and statistics.

feat: enhance sidebar functionality with info and statistics tabs

- Added `SidebarInfoTab` and `SidebarStatisticsTab` components to provide users with information about crime severity, map markers, and overall crime statistics.
- Integrated pagination functionality with `usePagination` hook to manage incident history navigation.

style: improve UI components with consistent styling and layout adjustments

- Updated card components and layout for better visual hierarchy and user experience.
- Ensured responsive design and accessibility across all new components.
2025-05-04 04:24:17 +07:00
..
_components refactor: ♻️ refactor crime management into small components 2025-04-15 00:31:39 +07:00
_handlers add some stuff 2025-04-27 22:41:27 +07:00
_hooks feat: add incident severity categorization and utility functions 2025-05-04 04:24:17 +07:00
_queries feat(map): enhance map functionality with new controls and overlays 2025-05-02 02:47:16 +07:00
action.ts feat: refactor crime data fetching and filtering logic in crime management components 2025-05-03 19:12:13 +07:00
page.tsx feat: implement map layer control and time slider components for enhanced crime data visualization 2025-04-28 23:45:06 +07:00