Product EngineeringFeaturesB2B CollectionFrontendlivehealth-frontend

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 / helperBehavior
b2b_collection on sessionExposes 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:

PathComponentNotes
/registration/b2b-collection/route-managementRouteManagementStops + routes
/registration/b2b-collection/trip-managementTripManagementTrip list, filters, create/edit
/registration/b2b-collection/trip-management/:tripId/from/:fromDate/to/:toDateTripDetailsViewTrip 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:

KeyPurpose
b2bCollectionStopForm / b2bCollectionStopListStop create + list
b2bCollectionTripForm / b2bCollectionTripListTrip editor + list
b2bCollectionRouteForm / b2bCollectionRouteListRoute editor + list
b2bCollectionSelectedTripSelected trip for detail
b2bCollectionPickupPartnerListPickup persons
b2bCollectionTripFilterDateRangeList filters

Trail cache: getB2bCollectionTrailDataReduxKey(tripId).


On this page