Skip to content

Mapcorrection/admin/dashboard - #2

Closed
Gaurav598 wants to merge 4 commits into
mainfrom
mapcorrection/admin/dashboard
Closed

Gaurav598 wants to merge 4 commits into
mainfrom
mapcorrection/admin/dashboard

Conversation

@Gaurav598

Copy link
Copy Markdown
Owner

Google Maps Cleanup: Completely removed the stale com.google.android.geo.API_KEY references from both FluxUser and FluxRider AndroidManifest.xml files.
Rider Lint Error: Fixed a residual _darkMapStyle unused import in AvailableBookingsScreen.tsx which was blocking the Rider release build.
User Booking Cancel Option: Added a proper Cancel Ride button to the BidsScreen that calls the backend cancelRide API and cleanly navigates back to the User Home screen.
Backend Admin Authentication: Implemented a new /api/auth/admin/login endpoint which accepts a username/password, validates it against server-side @value configurations, and securely issues a JWT containing the ADMIN role.
Admin Dashboard Frontend:
Created LoginPage.tsx with a modern UI.
Implemented AuthGuard in App.tsx and wrapped all dashboard routes to block unauthenticated access.
Updated api.ts with a global 401 response interceptor to redirect expired sessions back to login.
Fixed the buggy dropoffAddress mapping (corrected to dropAddress) in BookingsPage.tsx.
Added the BIDDING status to the admin bookings list (badge and filter).
Implemented a 30s auto-refresh interval for real-time bookings view.
Release Validation: Verified that all apps (User, Rider, Admin, Backend) compile without error. Built both release APKs natively.

- Admin Dashboard: Add LoginPage.tsx with username/password login
- Admin Dashboard: Add auth guard in App.tsx (PrivateRoute)
- Admin Dashboard: Add 401 interceptor + logout to api.ts
- Admin Dashboard: Fix BookingsPage dropoffAddress → dropAddress bug
- Admin Dashboard: Add BIDDING/all statuses to status filter
- Admin Dashboard: Add 30s auto-refresh to BookingsPage
- Admin Dashboard: Add logout button to Layout sidebar
- Backend: Fix UserService.generateFixedOtp for non-numeric admin identifiers
- BidsScreen: Add cancel booking button with real API call + confirmation dialog
@Gaurav598 Gaurav598 closed this Sep 15, 2026
@Gaurav598
Gaurav598 deleted the mapcorrection/admin/dashboard branch September 15, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant