MIF_E31221222/sigap-website/app/_components
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
..
map feat: add incident severity categorization and utility functions 2025-05-04 04:24:17 +07:00
tutorial add profile and remove older project 2025-03-05 14:58:15 +07:00
typography add profile and remove older project 2025-03-05 14:58:15 +07:00
ui feat(map): add pitch and bearing constants for map initialization 2025-05-03 22:58:14 +07:00
action-row.tsx Refactor user management components to use selectedUser instead of user 2025-04-12 17:18:36 +07:00
action-search-bar.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
alert-dialog.tsx refactor createUsersTable 2025-03-29 21:34:48 +07:00
confirm-dialog.tsx Change alert dialog to dialog 2025-03-30 22:41:47 +07:00
custom-dropdown-switcher.tsx change project structure 2025-03-12 16:13:57 +07:00
danger-action.tsx Refactor user management components to use selectedUser instead of user 2025-04-12 17:18:36 +07:00
data-table.tsx Refactor lagi anjir 2025-04-02 21:00:11 +07:00
date-time-picker.tsx change project structure 2025-03-12 16:13:57 +07:00
deploy-button.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
env-var-warning.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
floating-action-search-bar.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
form-field.tsx add sign in with password and form forgot password 2025-04-04 22:00:19 +07:00
form-message.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
form-section.tsx add custom date time picker 2025-03-10 23:54:28 +07:00
form-wrapper.tsx Refactor CRUD Users 2025-03-23 09:43:15 +07:00
header-auth.tsx refactor add user and invite user 2025-03-22 23:20:31 +07:00
hero.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
inbox-drawer.tsx resolve RLS issue for upload avatars images 2025-03-07 00:22:44 +07:00
info-row.tsx Refactor user management components to use selectedUser instead of user 2025-04-12 17:18:36 +07:00
next-logo.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
provider-info.tsx Refactor user management components to use selectedUser instead of user 2025-04-12 17:18:36 +07:00
react-hook-form-field.tsx use IsActive props from sidebar component 2025-03-23 06:54:54 +07:00
section.tsx Refactor user management components to use selectedUser instead of user 2025-04-12 17:18:36 +07:00
submit-button.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
supabase-logo.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
team-switcher.tsx add profile and remove older project 2025-03-05 14:58:15 +07:00
theme-switcher.tsx add layout for my account, preference, notiication and import 2025-03-07 23:08:16 +07:00