Skip to content

Admin Dashboard and Other Fixes and Refactors.#65

Merged
muhammadzkralla merged 11 commits into
masterfrom
develop
Jul 10, 2026
Merged

Admin Dashboard and Other Fixes and Refactors.#65
muhammadzkralla merged 11 commits into
masterfrom
develop

Conversation

@muhammadzkralla

Copy link
Copy Markdown
Member

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 AdminController for 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:

  • Added a new 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.
  • Introduced DTOs for admin use cases: DashboardDto, VehicleDto, and RequestDto in src/main/java/com/yaquodorg/yaquod/dtos/admin/, supporting structured responses for admin dashboard and management endpoints. [1] [2] [3]

Code organization and DTO refactoring:

  • Refactored and moved DTO classes into feature-specific packages (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:

  • Added a new endpoint to VehicleController for verifying if a vehicle exists by VIN number, returning a success or not found response.

Development and configuration:

  • Added a DataInitializer component to seed a default admin user at application startup for development/testing purposes. Includes a warning to remove before production.
  • Added spring-boot-devtools as a runtime dependency in pom.xml to improve the development experience with features like automatic restarts.
  • Enabled @EnableSpringDataWebSupport in the main application class to support Spring Data web features, such as advanced paging serialization.

@muhammadzkralla muhammadzkralla added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Jul 10, 2026
@muhammadzkralla
muhammadzkralla merged commit ee25d7c into master Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants