Repository navigation
Enhance Police Dashboard and Vehicle Management Features - #67
Merged
Merged
Conversation
…nto web_frontend
…nto web-ui-refactor
…nto web-ui-refactor
- Updated PoliceLayout to include a new sidebar button for managing offenses. - Replaced <img> with Next.js <Image /> for better performance. - Introduced ManageOffenses component for CRUD operations on traffic offenses. - Implemented state management for offense data, including search and pagination. - Enhanced PoliceOverview to fetch and display statistics and recent activities.
…nto web-ui-refactor
…nto web-ui-refactor
…nto web-ui-refactor
…nto web-ui-refactor
Enhance Police Dashboard and Update Vehicle Management Features
vthish
added a commit
that referenced
this pull request
Jun 27, 2026
Enhance Police Dashboard and Vehicle Management Features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces major changes to the backend data model, authentication DTOs, and project dependencies. The Prisma schema and migration have been significantly refactored to support a more normalized and flexible database structure, especially for user roles and license management. Additionally, DTOs for password reset flows have been updated and clarified, and new dependencies for email handling have been added.
The most important changes are:
Database Schema and Migration (Prisma):
District,License,OffenseCategory,Officer) and enums, and introducing new tables such asDriving_License,Division,DMT_Admin,Police_Admin,Divisional_Head,Traffic_Officer,Offence_Category,Fine_Offence,Payment, and others.Fine,Shift, andUsertables, adding new required fields, and updating foreign key relationships.Authentication DTOs:
HeadandOfficerroles, with explicit fields for username, badge number, email, OTP, and new password. [1] [2] [3]Dependencies:
nodemailerand@types/nodemailerto support email notifications, likely for password reset flows. [1] [2] [3] [4] [5] [6]Project Setup:
.gitignoreto include Node.js, Next.js, environment files, debug logs, and OS-specific files for better repository hygiene.These changes lay the groundwork for advanced user management, secure authentication flows, and improved maintainability of the backend.