Skip to content

Commit d02a3c2

Browse files
committed
Add final pos docs URL
1 parent 03d4601 commit d02a3c2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

WooCommerce/Classes/POS/Presentation/POSFloatingControlView.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct POSFloatingControlView: View {
4343
showDocumentation = true
4444
} label: {
4545
Label(
46-
title: { Text(Localization.learnMore) },
46+
title: { Text(Localization.viewDocumentation) },
4747
icon: { Image(systemName: "info.circle") }
4848
)
4949
}
@@ -123,15 +123,16 @@ private extension POSFloatingControlView {
123123
comment: "The title of the floating button to get support for Point of Sale, shown in a popover menu."
124124
)
125125

126-
static let learnMore = NSLocalizedString(
127-
"pointOfSale.floatingButtons.learnMore.button.title",
128-
value: "Learn More",
126+
static let viewDocumentation = NSLocalizedString(
127+
"pointOfSale.floatingButtons.viewDocumentation.button.title",
128+
value: "View Documentation",
129129
comment: "The title of the floating button to read Point of Sale documentation, shown in a popover menu."
130130
)
131131
}
132132
}
133133

134134
#if DEBUG
135+
@available(iOS 17.0, *)
135136
#Preview {
136137
let posModel = PointOfSaleAggregateModel(
137138
itemsController: PointOfSalePreviewItemsController(),
@@ -141,6 +142,6 @@ private extension POSFloatingControlView {
141142
POSFloatingControlView(showExitPOSModal: .constant(false),
142143
showSupport: .constant(false),
143144
showDocumentation: .constant(false))
144-
.environmentObject(posModel)
145+
.environment(posModel)
145146
}
146147
#endif

WooCommerce/Classes/POS/Presentation/PointOfSaleDashboardView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private extension PointOfSaleDashboardView {
138138
}
139139

140140
var documentationView: some View {
141-
SafariView(url: URL(string: WooConstants.URLs.helpCenter.rawValue)!)
141+
SafariView(url: WooConstants.URLs.pointOfSaleDocumentation.asURL())
142142
}
143143

144144
func paymentsOnboardingView(from onboardingViewModel: CardPresentPaymentsOnboardingViewModel) -> some View {

WooCommerce/Classes/System/WooConstants.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,10 @@ extension WooConstants {
246246
///
247247
case inPersonPaymentsLearnMoreStripe = "https://woocommerce.com/document/stripe/accept-in-person-payments-with-stripe/"
248248

249-
/// URL for the order creation feedback survey (full order creation and simple payments)
249+
/// URL for Point of Sale documentation
250250
///
251+
case pointOfSaleDocumentation = "https://woocommerce.com/document/woo-mobile-app-point-of-sale-mode/"
252+
251253
#if DEBUG
252254
case orderCreationFeedback = "https://automattic.survey.fm/woo-app-order-creation-testing"
253255
#else

0 commit comments

Comments
 (0)