Skip to content

Commit 74cd8fc

Browse files
authored
Merge branch 'trunk' into woomob-1393-booking-list-search
2 parents ace2b98 + 98d4ad1 commit 74cd8fc

File tree

93 files changed

+2018
-748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2018
-748
lines changed

.buildkite/release-pipelines/start-code-freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ steps:
2121
bundle exec fastlane run configure_apply
2222
2323
echo '--- :snowflake: Start Code Freeze'
24-
bundle exec fastlane start_code_freeze skip_confirm:true
24+
bundle exec fastlane start_code_freeze version:"${RELEASE_VERSION}" skip_confirm:true
2525
retry:
2626
manual:
2727
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite

.bundle/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ BUNDLE_RETRY: "3"
33
BUNDLE_PATH: "vendor/bundle"
44
BUNDLE_JOBS: "16"
55
BUNDLE_SPECIFIC_PLATFORM: "false"
6+
BUNDLE_FORCE_RUBY_PLATFORM: "true"
67
BUNDLE_WITHOUT: "screenshots"

Gemfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,11 @@ end
88

99
gem 'danger-dangermattic', '~> 1.2'
1010
gem 'dotenv'
11-
# 2.217.0 includes a fix for Xcode 15 test results parsing in CI
1211
gem 'fastlane', '~> 2.228'
1312
gem 'fastlane-plugin-firebase_app_distribution', '~> 0.10'
1413
gem 'fastlane-plugin-sentry', '~> 1.0'
15-
# This comment avoids typing to switch to a development version for testing.
16-
#
1714
# gem 'fastlane-plugin-wpmreleasetoolkit', git: '[email protected]:wordpress-mobile/release-toolkit', branch: ''
18-
#
19-
# The '>= 13.3.1' aftre '~> 13.3' ensures that we resolve to any version compatible with 13.3 starting from 13.3.1
20-
# Using '~> 13.3.1' would constrain us to 13.3.2, 13.3.3, etc. without ever going up to 13.4
21-
# We need 13.3.1 because of a fix in screenshots generation we depend upon.
22-
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.3', '>= 13.3.1'
15+
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.5'
2316
gem 'rake', '~> 12.3'
2417
gem 'rubocop', '~> 1.65'
2518
gem 'rubocop-rake', '~> 0.6'

Gemfile.lock

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (8.0.2)
8+
activesupport (8.0.3)
99
base64
1010
benchmark (>= 0.3)
1111
bigdecimal
@@ -24,19 +24,19 @@ GEM
2424
ast (2.4.2)
2525
atomos (0.1.3)
2626
aws-eventstream (1.4.0)
27-
aws-partitions (1.1154.0)
28-
aws-sdk-core (3.232.0)
27+
aws-partitions (1.1169.0)
28+
aws-sdk-core (3.233.0)
2929
aws-eventstream (~> 1, >= 1.3.0)
3030
aws-partitions (~> 1, >= 1.992.0)
3131
aws-sigv4 (~> 1.9)
3232
base64
3333
bigdecimal
3434
jmespath (~> 1, >= 1.6.1)
3535
logger
36-
aws-sdk-kms (1.112.0)
36+
aws-sdk-kms (1.113.0)
3737
aws-sdk-core (~> 3, >= 3.231.0)
3838
aws-sigv4 (~> 1.5)
39-
aws-sdk-s3 (1.198.0)
39+
aws-sdk-s3 (1.199.1)
4040
aws-sdk-core (~> 3, >= 3.231.0)
4141
aws-sdk-kms (~> 1)
4242
aws-sigv4 (~> 1.5)
@@ -45,7 +45,7 @@ GEM
4545
babosa (1.0.4)
4646
base64 (0.3.0)
4747
benchmark (0.4.1)
48-
bigdecimal (3.2.2)
48+
bigdecimal (3.3.0)
4949
buildkit (1.6.1)
5050
sawyer (>= 0.6)
5151
chroma (0.2.0)
@@ -59,7 +59,7 @@ GEM
5959
commander (4.6.0)
6060
highline (~> 2.0.0)
6161
concurrent-ruby (1.3.5)
62-
connection_pool (2.5.3)
62+
connection_pool (2.5.4)
6363
cork (0.3.0)
6464
colored2 (~> 3.1)
6565
danger (9.5.1)
@@ -173,7 +173,7 @@ GEM
173173
google-apis-firebaseappdistribution_v1alpha (~> 0.2.0)
174174
fastlane-plugin-sentry (1.25.1)
175175
os (~> 1.1, >= 1.1.4)
176-
fastlane-plugin-wpmreleasetoolkit (13.3.1)
176+
fastlane-plugin-wpmreleasetoolkit (13.5.1)
177177
activesupport (>= 6.1.7.1)
178178
buildkit (~> 1.5)
179179
chroma (= 0.2.0)
@@ -245,7 +245,7 @@ GEM
245245
concurrent-ruby (~> 1.0)
246246
java-properties (0.3.0)
247247
jmespath (1.6.2)
248-
json (2.13.2)
248+
json (2.15.1)
249249
jwt (2.10.2)
250250
base64
251251
kramdown (2.5.1)
@@ -257,27 +257,25 @@ GEM
257257
mini_magick (4.13.2)
258258
mini_mime (1.1.5)
259259
mini_portile2 (2.8.9)
260-
minitest (5.25.5)
260+
minitest (5.26.0)
261261
multi_json (1.17.0)
262262
multipart-post (2.4.1)
263263
mutex_m (0.3.0)
264264
nanaimo (0.4.0)
265265
nap (1.1.0)
266266
naturally (2.3.0)
267267
nkf (0.2.0)
268-
nokogiri (1.18.8)
268+
nokogiri (1.18.10)
269269
mini_portile2 (~> 2.8.2)
270270
racc (~> 1.4)
271-
nokogiri (1.18.8-x86_64-darwin)
272-
racc (~> 1.4)
273271
octokit (6.1.1)
274272
faraday (>= 1, < 3)
275273
sawyer (~> 0.9)
276274
open4 (1.3.4)
277275
options (2.3.2)
278276
optparse (0.6.0)
279277
os (1.1.4)
280-
parallel (1.26.3)
278+
parallel (1.27.0)
281279
parser (3.3.6.0)
282280
ast (~> 2.4.1)
283281
racc
@@ -292,14 +290,14 @@ GEM
292290
rake (12.3.3)
293291
rake-compiler (1.3.0)
294292
rake
295-
rchardet (1.8.0)
293+
rchardet (1.10.0)
296294
regexp_parser (2.9.2)
297295
representable (3.2.0)
298296
declarative (< 0.1.0)
299297
trailblazer-option (>= 0.1.1, < 0.2.0)
300298
uber (< 0.2.0)
301299
retriable (3.1.2)
302-
rexml (3.4.2)
300+
rexml (3.4.4)
303301
rmagick (4.3.0)
304302
rouge (3.28.0)
305303
rubocop (1.68.0)
@@ -345,7 +343,7 @@ GEM
345343
concurrent-ruby (~> 1.0)
346344
uber (0.1.0)
347345
unicode-display_width (2.6.0)
348-
uri (1.0.3)
346+
uri (1.0.4)
349347
word_wrap (1.0.0)
350348
xcode-install (2.8.1)
351349
claide (>= 0.9.1)
@@ -364,17 +362,14 @@ GEM
364362

365363
PLATFORMS
366364
ruby
367-
x86_64-darwin-19
368-
x86_64-darwin-20
369-
x86_64-darwin-21
370365

371366
DEPENDENCIES
372367
danger-dangermattic (~> 1.2)
373368
dotenv
374369
fastlane (~> 2.228)
375370
fastlane-plugin-firebase_app_distribution (~> 0.10)
376371
fastlane-plugin-sentry (~> 1.0)
377-
fastlane-plugin-wpmreleasetoolkit (~> 13.3, >= 13.3.1)
372+
fastlane-plugin-wpmreleasetoolkit (~> 13.5)
378373
rake (~> 12.3)
379374
rmagick (~> 4.1)
380375
rubocop (~> 1.65)

Modules/Sources/Experiments/DefaultFeatureFlagService.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
9090
return true
9191
case .pointOfSaleOrdersi2:
9292
return true
93-
case .pointOfSaleSettingsi1:
94-
return true
9593
case .orderAddressMapSearch:
9694
return true
9795
case .pointOfSaleHistoricalOrdersi1:
98-
return buildConfig == .localDeveloper || buildConfig == .alpha
96+
return true
9997
case .pointOfSaleLocalCatalogi1:
10098
return buildConfig == .localDeveloper || buildConfig == .alpha
10199
case .ciabBookings:
102100
return buildConfig == .localDeveloper || buildConfig == .alpha
101+
case .pointOfSaleSurveys:
102+
return buildConfig == .localDeveloper || buildConfig == .alpha
103103
default:
104104
return true
105105
}

Modules/Sources/Experiments/FeatureFlag.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ public enum FeatureFlag: Int {
187187
///
188188
case pointOfSaleOrdersi2
189189

190-
/// Enables the entry point for Point of Sale Settings
191-
///
192-
case pointOfSaleSettingsi1
193-
194190
/// Enables the CTA to search for an address in the map in order details > shipping address.
195191
///
196192
case orderAddressMapSearch
@@ -207,4 +203,8 @@ public enum FeatureFlag: Int {
207203
/// Enables a new Bookings tab for CIAB sites
208204
///
209205
case ciabBookings
206+
207+
/// Enables surveys for potential and current POS merchants
208+
///
209+
case pointOfSaleSurveys
210210
}

Modules/Sources/NetworkingCore/Model/SalesChannel.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ import Foundation
22

33
public enum SalesChannel {
44
case pointOfSale
5+
case webCheckout
6+
case wpAdmin
57
}
68

79
extension SalesChannel: RawRepresentable {
810
public init?(rawValue: String) {
911
switch rawValue {
1012
case "pos-rest-api":
1113
self = .pointOfSale
14+
case "checkout", "store-api":
15+
self = .webCheckout
16+
case "admin":
17+
self = .wpAdmin
1218
default:
1319
return nil
1420
}
@@ -18,6 +24,10 @@ extension SalesChannel: RawRepresentable {
1824
switch self {
1925
case .pointOfSale:
2026
return description
27+
case .webCheckout:
28+
return description
29+
case .wpAdmin:
30+
return description
2131
}
2232
}
2333

@@ -27,6 +37,14 @@ extension SalesChannel: RawRepresentable {
2737
return NSLocalizedString("salesChannel.pos.description",
2838
value: "POS",
2939
comment: "The acronym for 'Point of Sale'.")
40+
case .webCheckout:
41+
return NSLocalizedString("salesChannel.webCheckout.description",
42+
value: "Web Checkout",
43+
comment: "Orders created through web checkout.")
44+
case .wpAdmin:
45+
return NSLocalizedString("salesChannel.wpAdmin.description",
46+
value: "WP-Admin",
47+
comment: "Orders created through WordPress admin interface.")
3048
}
3149
}
3250
}

Modules/Sources/PointOfSale/Colors/Color+POSColorPalette.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ extension Color {
4646
static var posOnSuccess: Color { Color("posOnSuccess", bundle: .module) }
4747
static var posAlert: Color { Color("posAlert", bundle: .module) }
4848
static var posOnAlert: Color { Color("posOnAlert", bundle: .module) }
49+
static var posErrorLowest: Color { Color("posErrorLowest", bundle: .module) }
50+
static var posOnErrorLowest: Color { Color("posOnErrorLowest", bundle: .module) }
51+
static var posInfoLowest: Color { Color("posInfoLowest", bundle: .module) }
52+
static var posOnInfoLowest: Color { Color("posOnInfoLowest", bundle: .module) }
53+
static var posDefault: Color { Color("posDefault", bundle: .module) }
54+
static var posOnDefault: Color { Color("posOnDefault", bundle: .module) }
4955

5056
// MARK: - Other
5157
static var posShadow: Color { Color("posShadow", bundle: .module) }
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xDE",
9+
"green" : "0xDC",
10+
"red" : "0xDC"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xEC",
9+
"green" : "0xEB",
10+
"red" : "0xF7"
11+
}
12+
},
13+
"idiom" : "universal"
14+
},
15+
{
16+
"appearances" : [
17+
{
18+
"appearance" : "luminosity",
19+
"value" : "dark"
20+
}
21+
],
22+
"color" : {
23+
"color-space" : "srgb",
24+
"components" : {
25+
"alpha" : "1.000",
26+
"blue" : "0xAF",
27+
"green" : "0xAB",
28+
"red" : "0xFF"
29+
}
30+
},
31+
"idiom" : "universal"
32+
}
33+
],
34+
"info" : {
35+
"author" : "xcode",
36+
"version" : 1
37+
}
38+
}

0 commit comments

Comments
 (0)