Repository navigation
Conversation
- 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
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.
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.