From 196e296275b714bcc1eeae9a8c671b4201178096 Mon Sep 17 00:00:00 2001 From: Marshal Date: Tue, 23 Jun 2026 22:21:12 +0000 Subject: [PATCH] feat: update terminology for shipment date to estimated shipment date in booking forms --- .../src/pages/bookings/new-booking-form/schema.ts | 2 +- .../bookings/new-booking-form/step-scheduling.tsx | 14 ++++++++------ .../bookings/new-booking-form/step8-review.tsx | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts index c3085fb57..b7252946c 100644 --- a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts +++ b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/schema.ts @@ -8,7 +8,7 @@ export const STEPS = [ { id: 2, label: "Service Type & Mile", short: "Service" }, { id: 3, label: "Cargo Details", short: "Cargo" }, { id: 4, label: "Route", short: "Route" }, - { id: 5, label: "Shipment Date", short: "Schedule" }, + { id: 5, label: "Estimated Date", short: "Schedule" }, { id: 6, label: "Documents", short: "Documents" }, { id: 7, label: "Review & Submit", short: "Submit" }, ] as const; diff --git a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx index 5b47a4dbf..7db864739 100644 --- a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx +++ b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step-scheduling.tsx @@ -152,10 +152,11 @@ export function StepScheduling({ form, referenceData }: StepSchedulingProps) { > - Select a shipment date + Estimated shipment date - Confirmed train departures · {originName} → {destinationName} + Planning only · pick from scheduled departures · {originName} →{" "} + {destinationName} @@ -189,8 +190,8 @@ export function StepScheduling({ form, referenceData }: StepSchedulingProps) { {originYardId && destinationYardId - ? `${availableCount} day${availableCount !== 1 ? "s" : ""} with a departure in ${format(currentDate, "MMMM")} — pick one to continue` - : "Select origin and destination to see available departures"} + ? `${availableCount} scheduled departure day${availableCount !== 1 ? "s" : ""} in ${format(currentDate, "MMMM")} — pick your estimated date` + : "Select origin and destination to see scheduled departures"} {/* Weekday headers */} @@ -284,14 +285,15 @@ export function StepScheduling({ form, referenceData }: StepSchedulingProps) { c="edr-green.7" style={{ letterSpacing: "0.08em" }} > - SELECTED DAY + ESTIMATED DATE {format(new Date(selectedDate + "T00:00:00"), "EEE, MMM d yyyy")} - Your train is confirmed by our freight desk after booking. + A planning estimate. You'll confirm the actual shipment date + later when you request the operation. diff --git a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step8-review.tsx b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step8-review.tsx index d7a57d7d4..dc544dcb8 100644 --- a/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step8-review.tsx +++ b/apps/edr-freight-web/portal/src/pages/bookings/new-booking-form/step8-review.tsx @@ -342,7 +342,7 @@ export function Step8Review({ title="Schedule" onEdit={() => setStep(REVIEW_STEP_TARGETS.schedule)} > - +