Admin Dashboard and Other Fixes and Refactors.#65
Merged
Conversation
… services accordingly.
…representing each domain with package renaming across the project.
…icle list pages in the admin dashboard.
…d user rejecting offer event.
Admin Dashboard Features and Solved Some Minor Bugs And Some Refactoring.
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 improvements to the admin functionality and code organization, as well as some enhancements for development and API features. The most notable changes are the addition of a comprehensive
AdminControllerfor admin operations, the introduction of DTOs for admin-related data, improved DTO organization by feature, a new vehicle verification endpoint, and the addition of a data initializer for development purposes.Admin features and API endpoints:
AdminController(src/main/java/com/yaquodorg/yaquod/controller/AdminController.java) that provides endpoints for admin dashboard statistics, user management (listing, role update, verification), vehicle management, request and payment listing, and more. This centralizes admin operations and enforces admin-only access.DashboardDto,VehicleDto, andRequestDtoinsrc/main/java/com/yaquodorg/yaquod/dtos/admin/, supporting structured responses for admin dashboard and management endpoints. [1] [2] [3]Code organization and DTO refactoring:
auth,rating,trip,vehicle,admin) for better code organization and maintainability. This includes updating all relevant imports in controllers. [1] [2] [3] [4] [5] [6] [7] [8] [9]Vehicle features:
VehicleControllerfor verifying if a vehicle exists by VIN number, returning a success or not found response.Development and configuration:
DataInitializercomponent to seed a default admin user at application startup for development/testing purposes. Includes a warning to remove before production.spring-boot-devtoolsas a runtime dependency inpom.xmlto improve the development experience with features like automatic restarts.@EnableSpringDataWebSupportin the main application class to support Spring Data web features, such as advanced paging serialization.