Skip to content

Add booking history screen and fix auth/routing scaffolding#106

Open
Copilot wants to merge 1 commit into
feature/booking-historyfrom
copilot/sub-pr-105
Open

Add booking history screen and fix auth/routing scaffolding#106
Copilot wants to merge 1 commit into
feature/booking-historyfrom
copilot/sub-pr-105

Conversation

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown

Adds a Booking History screen for authenticated users and wires it into the app's navigation, alongside a set of auth/routing fixes uncovered during integration.

Changes

  • booking_history_screen.dart — New StatelessWidget that streams the current user's bookings from Firestore (bookings collection, filtered by userId, ordered by createdAt descending). Renders cards with booking type, status badge (Confirmed/Pending), formatted date/time slot, address, and amount. Empty-state and loading-state handled.

  • app_drawer.dart — Added "Booking History" nav entry routing to /booking-history; redesigned drawer header to a centered logo/title layout with an updated green gradient; replaced profile import with firebase_auth + auth_service for sign-out support.

  • main.dart — Registered /booking-history route; moved settings_screen.dart to screens/ (out of screens/services/); switched initial route from SplashScreen to AuthWrapper; added onUnknownRoute fallback for debugging.

  • auth_wrapper.dart — Fixed duplicate import; added if (mounted) guards after every await in _checkAuthStatus; reduced splash delay from 3 s → 2 s; added errorBuilder fallback for missing logo asset.

  • sign_in_screen.dart / sign_up_screen.dart — Minor cleanup (unused imports, const corrections).

  • settings_screen.dart — Relocated from screens/services/screens/.


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI mentioned this pull request Mar 12, 2026
Copilot AI changed the title [WIP] Add booking history feature Add booking history screen and fix auth/routing scaffolding Mar 12, 2026
Copilot AI requested a review from thisal2006 March 12, 2026 18:03
@thisal2006 thisal2006 marked this pull request as ready for review March 12, 2026 18:05
Copilot AI review requested due to automatic review settings March 12, 2026 18:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants