Skip to content

feat: Ambulance Booking (Issue #157) - #324

Open
rohitkumarnaidu wants to merge 3 commits into
vallabhatech:mainfrom
rohitkumarnaidu:feat/issue-157
Open

feat: Ambulance Booking (Issue #157)#324
rohitkumarnaidu wants to merge 3 commits into
vallabhatech:mainfrom
rohitkumarnaidu:feat/issue-157

Conversation

@rohitkumarnaidu

@rohitkumarnaidu rohitkumarnaidu commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

This PR implements a comprehensive Ambulance Booking feature. It introduces a dedicated page accessible from the main navigation where users can book an ambulance by providing a pickup address and emergency type. It also features a real-time dispatch simulation dashboard showing live tracking details (driver, vehicle, ETA).

Resolves #157

Copilot AI review requested due to automatic review settings July 24, 2026 10:35
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

@rohitkumarnaidu is attempting to deploy a commit to the vallabhatech's projects Team on Vercel.

A member of the Team first needs to authorize it.

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@rohitkumarnaidu, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 36 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8708929c-29c7-441f-a068-d39193b6ec82

📥 Commits

Reviewing files that changed from the base of the PR and between ef01b1c and 3c60fdb.

📒 Files selected for processing (1)
  • src/pages/AmbulanceBooking.jsx
📝 Walkthrough

Walkthrough

Adds an ambulance booking page with address validation, loading and confirmation states, localized navigation, and a React Router route at /ambulance-booking.

Changes

Ambulance booking

Layer / File(s) Summary
Ambulance booking form and status flow
src/pages/AmbulanceBooking.jsx
Adds pickup address and emergency detail fields, validates the address, simulates dispatch, and renders loading, confirmation, and driver detail states.
Navigation and route integration
src/i18n/locales/en.json, src/App.jsx
Adds the “Ambulance Booking” label, navigation target, page import, and route.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant ReactRouter
  participant AmbulanceBooking
  participant BookingTimer
  User->>ReactRouter: Navigate to /ambulance-booking
  ReactRouter->>AmbulanceBooking: Render booking page
  User->>AmbulanceBooking: Submit pickup address and emergency details
  AmbulanceBooking->>BookingTimer: Schedule dispatch simulation
  BookingTimer->>AmbulanceBooking: Set status to confirmed
  AmbulanceBooking-->>User: Display dispatch and driver details
Loading

Possibly related PRs

Suggested labels: enhancement, ui/ux, frontend

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes implement ambulance booking and tracking flow requested by issue #157.
Out of Scope Changes check ✅ Passed The route, nav, locale label, and new page are all directly related to the requested ambulance booking feature.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately reflects the main change: adding ambulance booking functionality.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/pages/AmbulanceBooking.jsx`:
- Around line 10-18: Replace the simulated setTimeout confirmation in
handleBooking with a dispatch-service request that submits the validated address
and emergencyType. Set booking status to confirmed only after a successful
response, retain the returned booking and driver data, and use that data as the
source for real-time ambulance tracking; handle request failures without
reporting a false dispatch.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bd911c20-c1d2-4bec-9c80-a6fe3b6131cc

📥 Commits

Reviewing files that changed from the base of the PR and between 1045be3 and 79c2305.

📒 Files selected for processing (3)
  • src/App.jsx
  • src/i18n/locales/en.json
  • src/pages/AmbulanceBooking.jsx

Comment thread src/pages/AmbulanceBooking.jsx Outdated
Copilot AI review requested due to automatic review settings July 26, 2026 11:01

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 27, 2026 13:37

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot added the enhancement New feature or request label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ambulance Booking

2 participants