Overview
Feature flags, routes, and architecture for B2B organization logistics in livehealth-frontend
👤 Utsav Katiyar📅 Updated: Apr 7, 2026🏷️ feature
livehealth-frontend — Overview
This page covers B2B Collection in livehealth-frontend: routes and trips for organization-site sample collection.
Architecture overview
Trip APIs use the shared trip-management stack with path segment b2b-logistics (see API Reference).
Feature flags and gating
| Flag / helper | Behavior |
|---|---|
b2b_collection on session | Exposes B2B Collection sidebar and routes; isB2bCollectionEnabled() in src/utils/helpers.ts |
labAccessKey: "b2b_collection" | Route guard on /registration/b2b-collection/* |
Routes (sidebar: Registration)
From src/modules/CrelioDashboard/RoutesAndMenus/registrationRoutesAndMenu.ts:
| Path | Component | Notes |
|---|---|---|
/registration/b2b-collection/route-management | RouteManagement | Stops + routes |
/registration/b2b-collection/trip-management | TripManagement | Trip list, filters, create/edit |
/registration/b2b-collection/trip-management/:tripId/from/:fromDate/to/:toDate | TripDetailsView | Trip detail, maps, trail |
Menu: B2B Collection → Route Management, Trip Management (subMenuOfB2bCollection).
Redux model keys
Defined in B2bCollection/utils/constants.ts as B2B_COLLECTION_REDUX_KEYS:
| Key | Purpose |
|---|---|
b2bCollectionStopForm / b2bCollectionStopList | Stop create + list |
b2bCollectionTripForm / b2bCollectionTripList | Trip editor + list |
b2bCollectionRouteForm / b2bCollectionRouteList | Route editor + list |
b2bCollectionSelectedTrip | Selected trip for detail |
b2bCollectionPickupPartnerList | Pickup persons |
b2bCollectionTripFilterDateRange | List filters |
Trail cache: getB2bCollectionTrailDataReduxKey(tripId).