MIF_E31221222/sigap-website/app/_utils
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
..
const feat(map): add pitch and bearing constants for map initialization 2025-05-03 22:58:14 +07:00
cookies change project structure 2025-03-12 16:13:57 +07:00
supabase add some stuff 2025-04-27 22:41:27 +07:00
types feat: refactor crime data fetching and filtering logic in crime management components 2025-05-03 19:12:13 +07:00
authz.ts init model rbac 2025-04-07 20:50:57 +07:00
clustering.ts feat: add crime map components and functionality 2025-04-14 23:47:44 +07:00
common.ts feat: add incident severity categorization and utility functions 2025-05-04 04:24:17 +07:00
crime-stats.ts feat: add crime and district popups with detailed information and filtering capabilities 2025-05-02 22:20:22 +07:00
validation.ts init model rbac 2025-04-07 20:50:57 +07:00