feat: Add Nearby Labs feature and commission fee displays#111
feat: Add Nearby Labs feature and commission fee displays#111aditya241104 merged 1 commit intomainfrom
Conversation
- Add Nearby Labs page with geolocation detection - Add 'Nearby Labs' button to QuickLab navigation (desktop & mobile) - Display QuickClinic 1% commission fee in booking summaries - Add new route for nearby labs feature - Fix QuickMed navbar Explore dropdown rendering
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request introduces a "Nearby Labs" feature for QuickLab with a new component for city-based lab discovery, adds a 1% QuickClinic Commission fee display to booking summaries, and makes the Explore dropdown always visible in QuickMed's navbar. Changes
Sequence DiagramsequenceDiagram
participant User
participant NearbyLabs as NearbyLabs<br/>Component
participant CityService as City Detection<br/>Service
participant LabAPI as Lab Search<br/>API
participant UI as Lab Grid<br/>Display
User->>NearbyLabs: Page Mount
NearbyLabs->>CityService: detectUserCity()
CityService-->>NearbyLabs: city detected
NearbyLabs->>LabAPI: searchLabs(city, limit: 50)
LabAPI-->>NearbyLabs: labs array
NearbyLabs->>UI: Render lab cards<br/>(logo, rating, address,<br/>contact, tests, home collection)
User->>NearbyLabs: Click "Change location"
NearbyLabs->>NearbyLabs: Show city input modal
User->>NearbyLabs: Enter city + Apply
NearbyLabs->>LabAPI: searchLabs(newCity, limit: 50)
LabAPI-->>NearbyLabs: updated labs array
NearbyLabs->>UI: Re-render grid
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
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. Comment |
📋 PR Auto-Check📝 Files Changed✨ Code QualityPrettier Check: ❌ Failed Auto-generated on 2026-01-24T05:58:45.870Z |
📋 PR Auto-Check📝 Files Changed✨ Code QualityPrettier Check: ❌ Failed Auto-generated on 2026-01-24T06:00:40.292Z |
Project
Change Type
Stack
Page Type
Route/API Endpoint Status
What Changed
Route/API Affected
Description
Screenshots (If Applicable)
Mobile View
Desktop View
Code Quality
npx prettier --check .)Related Issues
Closes #
Summary by CodeRabbit
Release Notes
New Features
UI Improvements
✏️ Tip: You can customize this high-level summary in your review settings.