Skip to content

Commit 90d66de

Browse files
committed
Update POS empty list view icon and copy
1 parent c260c1d commit 90d66de

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

Modules/Sources/PointOfSale/Presentation/Orders/POSOrderListEmptyViewModel.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct POSOrderListEmptyViewModel: POSListEmptyViewModelProtocol {
2121
}
2222

2323
var icon: Image {
24-
PointOfSaleAssets.magnifierNotFound.decorativeImage
24+
isSearching ? PointOfSaleAssets.magnifierNotFound.decorativeImage : PointOfSaleAssets.noOrders.decorativeImage
2525
}
2626
}
2727

@@ -33,15 +33,15 @@ private enum Localization {
3333
)
3434

3535
static let emptyOrdersSubtitle = NSLocalizedString(
36-
"pos.orderListView.emptyOrdersSubtitle",
37-
value: "Orders will appear here once you start processing sales on the POS.",
36+
"pos.orderListView.emptyOrdersSubtitle2",
37+
value: "Explore how you can increase your store sales.",
3838
comment: "Subtitle appearing when there are no orders to display."
3939
)
4040

4141
static let emptyOrdersButtonTitle = NSLocalizedString(
42-
"pos.orderListView.emptyOrdersButtonTitle",
43-
value: "Refresh",
44-
comment: "Button text for refreshing orders when list is empty."
42+
"pos.orderListView.emptyOrdersButtonTitle2",
43+
value: "Learn more",
44+
comment: "Button text for opening an information view when orders when list is empty."
4545
)
4646

4747
static let emptyOrdersSearchTitle = NSLocalizedString(

Modules/Sources/PointOfSale/Presentation/PointOfSaleAssets.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ enum PointOfSaleAssets: CaseIterable {
2020
case netum1228BCHIDBarcode
2121
case netum1228BCPairBarcode
2222
case testEan13Barcode
23+
case noOrders
2324

2425
var image: Image {
2526
Image(imageName, bundle: .module)
@@ -67,6 +68,8 @@ enum PointOfSaleAssets: CaseIterable {
6768
"netum-1228bc-hid-barcode"
6869
case .netum1228BCPairBarcode:
6970
"netum-1228bc-pair-barcode"
71+
case .noOrders:
72+
"pos-no-orders"
7073
}
7174
}
7275
}

Modules/Sources/PointOfSale/Presentation/Reusable Views/POSListEmptyView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct POSListEmptyView: View {
6868
}, label: {
6969
Text(buttonTitle)
7070
})
71-
.buttonStyle(POSOutlinedButtonStyle(size: .normal))
71+
.buttonStyle(POSFilledButtonStyle(size: .normal))
7272
.frame(width: viewWidth / 2)
7373
.padding([.leading, .trailing])
7474
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "pos-no-orders.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Binary file not shown.

0 commit comments

Comments
 (0)