From fcdb843c51064a862eb330e2cd8341d25942d6c0 Mon Sep 17 00:00:00 2001 From: DIVESH PATIL Date: Fri, 23 Jan 2026 04:03:06 +0530 Subject: [PATCH 1/2] Add Leave at departure time to Trip Planner list --- .../Components/ItineraryPreviewView.swift | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift b/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift index 911b1f0..12f8556 100644 --- a/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift +++ b/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift @@ -21,11 +21,19 @@ struct ItineraryPreviewView: View { Text(Formatters.formatTimeDuration(itinerary.duration)) .font(.title) .fontWeight(.semibold) - - HStack(spacing: 2) { - Text("ETA:") + HStack(spacing: 4) { + Text("Leave at:") + .foregroundStyle(.secondary) + Text(Formatters.formatDateToTime(itinerary.startTime)) + .fontWeight(.medium) + Text("•") + .foregroundStyle(.secondary) + Text("Arrive:") + .foregroundStyle(.secondary) Text(Formatters.formatDateToTime(itinerary.endTime)) + .foregroundStyle(.secondary) } + .font(.subheadline) legsFlow(itinerary: itinerary) .frame( From e99585c685e0e77303098c6cda7841d850d830a8 Mon Sep 17 00:00:00 2001 From: DIVESH PATIL Date: Fri, 23 Jan 2026 10:29:53 +0530 Subject: [PATCH 2/2] refactor: update labels to Depart/Arrive and set both time font weight to medium --- .../Sheets/TripPlanner/Components/ItineraryPreviewView.swift | 5 +++-- OTPKit/Sources/OTPKit/Resources/en.lproj/Localizable.strings | 2 ++ OTPKit/Sources/OTPKit/Resources/es.lproj/Localizable.strings | 2 ++ .../OTPKit/Resources/zh-Hans.lproj/Localizable.strings | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift b/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift index 12f8556..65d176e 100644 --- a/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift +++ b/OTPKit/Sources/OTPKit/Presentation/Sheets/TripPlanner/Components/ItineraryPreviewView.swift @@ -22,15 +22,16 @@ struct ItineraryPreviewView: View { .font(.title) .fontWeight(.semibold) HStack(spacing: 4) { - Text("Leave at:") + Text(OTPLoc("trip_preview.depart_label")) .foregroundStyle(.secondary) Text(Formatters.formatDateToTime(itinerary.startTime)) .fontWeight(.medium) Text("•") .foregroundStyle(.secondary) - Text("Arrive:") + Text(OTPLoc("trip_preview.arrive_label")) .foregroundStyle(.secondary) Text(Formatters.formatDateToTime(itinerary.endTime)) + .fontWeight(.medium) .foregroundStyle(.secondary) } .font(.subheadline) diff --git a/OTPKit/Sources/OTPKit/Resources/en.lproj/Localizable.strings b/OTPKit/Sources/OTPKit/Resources/en.lproj/Localizable.strings index d33748c..d27e444 100644 --- a/OTPKit/Sources/OTPKit/Resources/en.lproj/Localizable.strings +++ b/OTPKit/Sources/OTPKit/Resources/en.lproj/Localizable.strings @@ -58,6 +58,8 @@ /* Trip Preview */ "trip_preview.cancel_button" = "Cancel"; "trip_preview.start_button" = "Start"; +"trip_preview.depart_label" = "Depart:"; +"trip_preview.arrive_label" = "Arrive:"; /* Option Row */ "option_row.selected_hint" = "Selected"; diff --git a/OTPKit/Sources/OTPKit/Resources/es.lproj/Localizable.strings b/OTPKit/Sources/OTPKit/Resources/es.lproj/Localizable.strings index a71720f..19464a5 100644 --- a/OTPKit/Sources/OTPKit/Resources/es.lproj/Localizable.strings +++ b/OTPKit/Sources/OTPKit/Resources/es.lproj/Localizable.strings @@ -58,6 +58,8 @@ /* Trip Preview */ "trip_preview.cancel_button" = "Cancelar"; "trip_preview.start_button" = "Comenzar"; +"trip_preview.depart_label" = "Salida:"; +"trip_preview.arrive_label" = "Llegada:"; /* Option Row */ "option_row.selected_hint" = "Seleccionado"; diff --git a/OTPKit/Sources/OTPKit/Resources/zh-Hans.lproj/Localizable.strings b/OTPKit/Sources/OTPKit/Resources/zh-Hans.lproj/Localizable.strings index cf08b30..7edf2f6 100644 --- a/OTPKit/Sources/OTPKit/Resources/zh-Hans.lproj/Localizable.strings +++ b/OTPKit/Sources/OTPKit/Resources/zh-Hans.lproj/Localizable.strings @@ -57,6 +57,8 @@ /* Trip Preview */ "trip_preview.cancel_button" = "取消"; "trip_preview.start_button" = "开始"; +"trip_preview.depart_label" = "出发:"; +"trip_preview.arrive_label" = "到达:"; /* Option Row */ "option_row.selected_hint" = "已选择";