From 7da277547b0a541697f9123f69e14d8962778a98 Mon Sep 17 00:00:00 2001 From: FuelBoard Contributor Date: Wed, 14 Oct 2026 14:52:07 +0100 Subject: [PATCH] More info sheet: the copy confirmation reads "Postcode copied" The capsule label was just "Copied", which reads oddly above a row whose hint is "Copies the postcode". It is now "Postcode copied". Still centred over the address row (centre x 603 of a 1206 px screen) and still a pure overlay: the bands above and below the capsule are pixel-identical while it is up (no reflow), and the row stays tappable straight through it. The "Copied" localisation key goes with its only use; "Postcode copied" replaces it. --- FuelBoard/StationDetailView.swift | 10 +++++----- FuelBoard/en.lproj/Localizable.strings | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/FuelBoard/StationDetailView.swift b/FuelBoard/StationDetailView.swift index 8362697..41599e6 100644 --- a/FuelBoard/StationDetailView.swift +++ b/FuelBoard/StationDetailView.swift @@ -29,7 +29,7 @@ struct StationDetailView: View { var onToggleFavourite: (() -> Void)? = nil @Environment(\.dismiss) private var dismiss @State private var showingReportIssueConfirmation = false - /// Transient "Copied" confirmation on the Address row. Cleared by a task so + /// Transient "Postcode copied" confirmation on the Address row. Cleared by a task so /// the caption fades out on its own. @State private var showingCopied = false @State private var copyResetTask: Task? @@ -137,7 +137,7 @@ struct StationDetailView: View { // The whole row is a copy control: it puts JUST the postcode // on the clipboard so it can be pasted into another // navigation app. The copy glyph sits ON the address line, - // and the "Copied" confirmation is a capsule that floats OVER + // and the "Postcode copied" confirmation is a capsule that floats OVER // THIS ROW — it confirms the address, so it must not hover // over the map. It is an overlay, so nothing moves while it is // up, and `allowsHitTesting(false)` keeps the row tappable @@ -172,7 +172,7 @@ struct StationDetailView: View { if showingCopied { HStack(spacing: 4) { Image(systemName: "checkmark") - Text("Copied") + Text("Postcode copied") } .font(.footnote.weight(.semibold)) .foregroundStyle(.green) @@ -296,12 +296,12 @@ struct StationDetailView: View { ) } } - // The "Copied" fade-out task must not outlive the sheet. + // The "Postcode copied" fade-out task must not outlive the sheet. .onDisappear { copyResetTask?.cancel() } #if DEBUG // QA hook: `-qaCopyPostcode` runs the REAL copy on open, so the // clipboard value (read back with `xcrun simctl pbpaste`) and the - // "Copied" confirmation can be verified without a tap — simctl + // "Postcode copied" confirmation can be verified without a tap — simctl // cannot drive taps into the Simulator. .task { guard ProcessInfo.processInfo.arguments.contains("-qaCopyPostcode") else { return } diff --git a/FuelBoard/en.lproj/Localizable.strings b/FuelBoard/en.lproj/Localizable.strings index 6487386..8eec127 100644 --- a/FuelBoard/en.lproj/Localizable.strings +++ b/FuelBoard/en.lproj/Localizable.strings @@ -71,8 +71,8 @@ "Name" = "Name"; "Address" = "Address"; "Distance" = "Distance"; -"Copied" = "Copied"; "Copies the postcode" = "Copies the postcode"; +"Postcode copied" = "Postcode copied"; "Address: %@" = "Address: %@"; "Directions to %@" = "Directions to %@"; "Opens Apple Maps with driving directions" = "Opens Apple Maps with driving directions";