feat: update terminology for shipment date to estimated shipment date in booking forms

This commit is contained in:
Marshal
2026-06-23 22:21:12 +00:00
parent 733bfd1e5e
commit 196e296275
3 changed files with 10 additions and 8 deletions

View File

@@ -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;

View File

@@ -152,10 +152,11 @@ export function StepScheduling({ form, referenceData }: StepSchedulingProps) {
>
<Stack gap={3}>
<Text fw={800} fz={18} c="edr-text.0">
Select a shipment date
Estimated shipment date
</Text>
<Text fz={13} c="edr-muted">
Confirmed train departures · {originName} {destinationName}
Planning only · pick from scheduled departures · {originName} {" "}
{destinationName}
</Text>
</Stack>
<Group gap={10}>
@@ -189,8 +190,8 @@ export function StepScheduling({ form, referenceData }: StepSchedulingProps) {
<Stack gap={14} px={24} py={18}>
<Text fz={13} fw={600} c="edr-text.0">
{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"}
</Text>
{/* Weekday headers */}
@@ -284,14 +285,15 @@ export function StepScheduling({ form, referenceData }: StepSchedulingProps) {
c="edr-green.7"
style={{ letterSpacing: "0.08em" }}
>
SELECTED DAY
ESTIMATED DATE
</Text>
</Group>
<Text fw={800} fz={16} c="edr-text.0">
{format(new Date(selectedDate + "T00:00:00"), "EEE, MMM d yyyy")}
</Text>
<Text fz={12.5} c="edr-muted">
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.
</Text>
</Stack>
</Box>

View File

@@ -342,7 +342,7 @@ export function Step8Review({
title="Schedule"
onEdit={() => setStep(REVIEW_STEP_TARGETS.schedule)}
>
<DetailRow label="Shipment date" value={scheduleLabel} />
<DetailRow label="Estimated shipment date" value={scheduleLabel} />
</OverviewSection>
<OverviewSection