Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Brand Updates] Feature branch #14825

Draft
wants to merge 159 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
3016d3d
Update color palette
hichamboushaba Dec 9, 2024
079750e
Update background color of launch screen
hichamboushaba Dec 9, 2024
7bee247
Use purple40 as the accent and primary color
hichamboushaba Dec 10, 2024
bb27cfa
Update app icon
hichamboushaba Dec 11, 2024
cebfb9d
Update splash screen logo
hichamboushaba Dec 11, 2024
229be2c
[Brand Updats] Update color palette (#14645)
hichamboushaba Dec 12, 2024
7a0a697
Update watch app icon
hichamboushaba Dec 12, 2024
bf3e164
Remove store creation illustrations
hichamboushaba Dec 12, 2024
a7b1895
Remove free trial related images and icons
hichamboushaba Dec 12, 2024
98cec9f
Remove an unused icon
hichamboushaba Dec 12, 2024
edda404
Remove various unused icons and images
hichamboushaba Dec 12, 2024
26d0338
[Brand Updates] Update app icon and splash screen logo (#14659)
hichamboushaba Dec 13, 2024
acfbd9e
Remove icon-sync-dot icon (unused)
hichamboushaba Dec 13, 2024
88c9872
[Brand Updates] Remove various unused icons and images (#14669)
hichamboushaba Dec 13, 2024
b27a016
Update the layout of the empty view
hichamboushaba Dec 13, 2024
2eaa3e1
Update the layout of the Empty State ViewController
hichamboushaba Dec 13, 2024
a50682e
Default to using the image intrinsic size on the empty view
hichamboushaba Dec 16, 2024
a9df21f
Update the orders empty view illustration
hichamboushaba Dec 16, 2024
1cb999c
Update the launch illustration
hichamboushaba Dec 16, 2024
85246f6
Update the empty products image
hichamboushaba Dec 16, 2024
b65fc2d
Update empty coupons image
hichamboushaba Dec 16, 2024
03388cc
Update empty reviews image
hichamboushaba Dec 16, 2024
af65add
Update empty search results image
hichamboushaba Dec 16, 2024
900ce1f
Update illustration of empty linked products
hichamboushaba Dec 16, 2024
91225bd
Remove duplicated image
hichamboushaba Dec 16, 2024
b864444
Fix layout constraints in launch screen
itsmeichigo Dec 17, 2024
085f9c6
Simplify logic of downscaling the empty state image
hichamboushaba Dec 17, 2024
8f01923
[Brand Updates] Update empty state views. (#14691)
hichamboushaba Dec 17, 2024
b913813
Update woo-logo in the Images assets
hichamboushaba Dec 13, 2024
356bf59
Update the Jetpack installation step header
hichamboushaba Dec 13, 2024
20b0355
Update woo logo default size
hichamboushaba Dec 13, 2024
234847e
Update Jetpack connection flow illustrations
hichamboushaba Dec 17, 2024
a83ae92
Update the empty store picker image
hichamboushaba Dec 17, 2024
94aef74
[Brand Updates] Update the Jetpack connection screens (#14714)
hichamboushaba Dec 19, 2024
8c8b18d
Merge branch 'trunk' into feature/woo-2.0-brand-updates
hichamboushaba Dec 19, 2024
2d792be
Update payment success and error illustrations
hichamboushaba Dec 19, 2024
f667f1c
Update payment processing illustration
hichamboushaba Dec 19, 2024
6be4e95
Update payment preparing illustration
hichamboushaba Dec 19, 2024
1736fe4
Update select reader type illustration
hichamboushaba Dec 19, 2024
f5625e0
Update TTP setup illustration
hichamboushaba Dec 19, 2024
c6da33a
Update puzzle icon
hichamboushaba Dec 19, 2024
8e18035
[Brand Updates] TTP illustrations (#14732)
hichamboushaba Dec 20, 2024
7efe79f
Update dark accent and primary colors
hichamboushaba Dec 20, 2024
51d8bcc
Update comment
hichamboushaba Dec 20, 2024
73a6fd0
Update textBrand color to match accent one
hichamboushaba Dec 20, 2024
cb69212
Update POS theme colors
hichamboushaba Dec 20, 2024
4eb10f9
Update POS progress view color to match app accent
hichamboushaba Dec 20, 2024
65b865c
Define a common accent color to use in different places
hichamboushaba Dec 23, 2024
df4f611
Update card reader connect illustration
hichamboushaba Dec 23, 2024
4114ebe
Update card reader scanning illustration
hichamboushaba Dec 23, 2024
1bf6c39
Update card reader found illustration
hichamboushaba Dec 23, 2024
c91e148
Update card reader connecting illustration
hichamboushaba Dec 23, 2024
843fff4
Update payments card illustration
hichamboushaba Dec 23, 2024
3adbb6e
Update payment celebration image
hichamboushaba Dec 23, 2024
ba2621d
[Brand updates] Dark theme color changes (#14745)
hichamboushaba Dec 24, 2024
173d412
[Brand Updates] Update more payments related illustrations (#14757)
hichamboushaba Dec 24, 2024
ea08c03
Update promo screenshots colors
hichamboushaba Dec 25, 2024
b2bf9ed
[Brand Updates] Update promo screenshots colors (#14765)
hichamboushaba Dec 26, 2024
f643379
Update app logo in home widget
hichamboushaba Dec 26, 2024
2ca5447
Update watch app link widget icon
hichamboushaba Dec 26, 2024
b5192c9
Add and update assets of the new prologue screen
hichamboushaba Dec 27, 2024
5c0ca75
[Brand Updates] Update app icon used in widgets (#14768)
hichamboushaba Dec 27, 2024
e6f8d7a
Point the WordPress authenticator library to the branch version
hichamboushaba Dec 30, 2024
5299ea6
Update prologue background
hichamboushaba Dec 27, 2024
8f044c8
Update prologue buttons styles
hichamboushaba Dec 27, 2024
45c7e67
Don't force template rendering on the image
hichamboushaba Dec 30, 2024
f9701cf
Start migrating the prologue screen to SwiftUI
hichamboushaba Dec 30, 2024
06c5a15
Add prologue new UI
hichamboushaba Dec 30, 2024
5828d37
Disable scroll bounce when content screen fits
hichamboushaba Dec 30, 2024
f86aca9
Make sure content is centered
hichamboushaba Dec 30, 2024
ece1ca5
Set percent based height to the image
hichamboushaba Dec 30, 2024
d26f315
Introduce a constant for the padding
hichamboushaba Dec 30, 2024
32e186a
Update illustration with last iteration
hichamboushaba Dec 30, 2024
f81885a
Fixes to the prologue dark theme
hichamboushaba Dec 30, 2024
6d0b5a3
Remove unused code
hichamboushaba Dec 30, 2024
106b153
Set the illustration to take its intrinsic size by default
hichamboushaba Dec 30, 2024
df2b9f9
Merge branch 'feature/woo-2.0-brand-updates' into task/woo-2.0-prologue
hichamboushaba Dec 31, 2024
667706e
Update title font
hichamboushaba Dec 31, 2024
7f18b66
Rename classes for better organization
hichamboushaba Dec 31, 2024
78de947
Update layout to make content is centered when it fits
hichamboushaba Dec 31, 2024
b86a3aa
Update UI of the main carousel container
hichamboushaba Dec 31, 2024
fda02ec
Update page control tint color
hichamboushaba Dec 31, 2024
1e00035
Make sure the logo is loaded with correct size
hichamboushaba Dec 31, 2024
6442c47
Adjust spacings
hichamboushaba Dec 31, 2024
02d2ec9
Update carousel illustrations
hichamboushaba Dec 31, 2024
527b247
Various UI adjustments for better alignments in different screen sizes
hichamboushaba Dec 31, 2024
33d386c
Simplify the UIPageViewController usage
hichamboushaba Dec 31, 2024
0f234e6
Use official withTintColor for tinting the woo logo
hichamboushaba Dec 31, 2024
974ef30
Set the bubbles image scaling to center to align with design
hichamboushaba Jan 2, 2025
3f424c1
Point authenticator library to trunk
hichamboushaba Jan 2, 2025
b903b2a
[Brand Updates] Update prologue screen (#14773)
hichamboushaba Jan 2, 2025
b0d4d99
[Brand Updates] Update prologue carousel (#14778)
hichamboushaba Jan 2, 2025
9213cb1
Delete unused image
hichamboushaba Jan 2, 2025
57f485b
Remove reviews entry from the carousel
hichamboushaba Jan 2, 2025
eb84867
Remove more unused illustrations
hichamboushaba Jan 2, 2025
c195a41
Use an image with clearer text for the unit test
hichamboushaba Jan 2, 2025
e74d41e
Update hourglass icon
hichamboushaba Dec 20, 2024
3f5cf9c
Update connection icon
hichamboushaba Dec 20, 2024
b2c7c11
Update location illustration
hichamboushaba Dec 20, 2024
4536df1
Update shopping cart icon
hichamboushaba Dec 20, 2024
cfba4fc
Update bell icon
hichamboushaba Dec 20, 2024
f04bd26
Update cash-register icon
hichamboushaba Dec 20, 2024
844ac30
Update email icon
hichamboushaba Dec 20, 2024
31fff82
Remove unused icon
hichamboushaba Jan 2, 2025
3db4d71
Update multiple-stores icon
hichamboushaba Jan 2, 2025
23b4217
Rename icon
hichamboushaba Jan 2, 2025
6c4eb84
Update woo payments badge
hichamboushaba Jan 2, 2025
e79b843
Update woo payments installation image
hichamboushaba Jan 2, 2025
2348227
Update reader low battery illustration
hichamboushaba Jan 2, 2025
de2006f
[Brand updates] Remove unused code and illustrations (#14783)
hichamboushaba Jan 3, 2025
f18457b
[Brand Updates] Update more payments related icons (#14784)
hichamboushaba Jan 3, 2025
38e713d
[Brand Updates] More icon updates (#14755)
hichamboushaba Jan 3, 2025
49a306f
Add grey variant of the magnifying glass icon
hichamboushaba Jan 6, 2025
0fdd04c
Update empty illustration of few dashboard cards
hichamboushaba Jan 6, 2025
a404404
Update performance card empty state UI
hichamboushaba Jan 6, 2025
3378fe3
Update spacing on the top performers empty UI
hichamboushaba Jan 6, 2025
9eac10d
Update AutomatticAbout library to last version
hichamboushaba Jan 6, 2025
87d3ae5
Update WooFoundationWatch framework to include the shared color palette
hichamboushaba Jan 6, 2025
ef53095
Update MyStore screen
hichamboushaba Jan 6, 2025
75e5b53
Update order list screen
hichamboushaba Jan 6, 2025
bcf8050
Update order detail screen
hichamboushaba Jan 6, 2025
13a4b5c
Update error illustration
hichamboushaba Jan 6, 2025
28b5e27
Update site address info illustration
hichamboushaba Jan 6, 2025
07882e3
Update stock card empty illustration
hichamboushaba Jan 6, 2025
404827c
[Brand Updates] Watch app (#14803)
hichamboushaba Jan 7, 2025
585e75c
[Brand Updates] Update empty state for some Dashboard cards (#14798)
hichamboushaba Jan 7, 2025
32fb2a9
Task/woo 2.0 other illustrations (#14804)
hichamboushaba Jan 7, 2025
5052703
Update AutomatticAbout library to last version (#14800)
hichamboushaba Jan 7, 2025
ef135ec
Update illustration
hichamboushaba Jan 7, 2025
c7973a9
Task/woo 2.0 fix magnifying glass dark (#14814)
hichamboushaba Jan 8, 2025
3f06446
Stop taking screenshots using old devices
hichamboushaba Jan 8, 2025
35f90c9
Use iPhone 16 Plus for taking iPhone screenshots
hichamboushaba Jan 8, 2025
0b7a830
Add mocking for order status update
hichamboushaba Jan 8, 2025
c866991
Remove unused screenshot assets
hichamboushaba Jan 8, 2025
d6b20be
Bump release toolkit
hichamboushaba Jan 8, 2025
babd1a0
Update background of iPad screenshots
hichamboushaba Jan 8, 2025
8413a4f
Task/woo 2.0 screenshot mockups (#14826)
hichamboushaba Jan 9, 2025
48d170f
Update card reader illustrations to align colors and radius
hichamboushaba Jan 13, 2025
3425c04
[Brand Updates] Update card reader illustrations to align colors and …
hichamboushaba Jan 14, 2025
ff14275
[Brand Updates] POS theme updates (#14756)
hichamboushaba Jan 14, 2025
02e27aa
Merge branch 'trunk' into feature/woo-2.0-brand-updates
hichamboushaba Jan 20, 2025
b2999a4
Disable underlining of the permanent notice CTA
hichamboushaba Jan 20, 2025
95557af
Remove underlining for the Product AI sheet
hichamboushaba Jan 20, 2025
7254684
Remove underline from the terms hyperlink
hichamboushaba Jan 21, 2025
bf81a6a
Remove underline for the Product AI legal button
hichamboushaba Jan 21, 2025
bcd5281
Remove the underline from the upgrade button
hichamboushaba Jan 21, 2025
35b052b
Remove underline from the privacy button
hichamboushaba Jan 21, 2025
38c4633
Remove underline from the terms button in account creation form
hichamboushaba Jan 21, 2025
0f66b0e
Update the name of accent color of POS palette to avoid accidental mi…
hichamboushaba Jan 21, 2025
d61bbc3
Update the style of the skip button on the onboarding screen
hichamboushaba Jan 21, 2025
72593f3
Add missing periods to empty state messages
hichamboushaba Jan 22, 2025
834f540
Remove outdated strings from Localizable en
hichamboushaba Jan 22, 2025
d0390ea
[Brand Updates] Remove underline from links in the app (#14938)
hichamboushaba Jan 22, 2025
a02ee50
[Brand Updates] Fixes for Skip button of the onboarding carousel (#14…
hichamboushaba Jan 22, 2025
eb83f4f
[Brand Updates] Add missing periods to Empty State messages (#14940)
hichamboushaba Jan 23, 2025
c0509f9
Update in-person mentions to use non-breaking hyphen
hichamboushaba Jan 23, 2025
b3a9ca5
[Brand Updates] Update In-Person mentions to make sure we use non-bre…
hichamboushaba Jan 24, 2025
f19bea7
Update Jetpack setup illustrations
hichamboushaba Jan 24, 2025
854aa80
[Brand Updates] Update Jetpack setup illustrations in dark theme (#14…
hichamboushaba Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 28 additions & 28 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GEM
base64
nkf
rexml
activesupport (7.2.2)
activesupport (7.2.2.1)
base64
benchmark (>= 0.3)
bigdecimal
Expand All @@ -26,16 +26,16 @@ GEM
ast (2.4.2)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.1011.0)
aws-sdk-core (3.213.0)
aws-partitions (1.1033.0)
aws-sdk-core (3.214.1)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.172.0)
aws-sdk-s3 (1.177.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand All @@ -44,7 +44,7 @@ GEM
babosa (1.0.4)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.8)
bigdecimal (3.1.9)
buildkit (1.6.1)
sawyer (>= 0.6)
chroma (0.2.0)
Expand Down Expand Up @@ -98,7 +98,7 @@ GEM
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
connection_pool (2.5.0)
cork (0.3.0)
colored2 (~> 3.1)
danger (9.5.1)
Expand Down Expand Up @@ -158,17 +158,17 @@ GEM
faraday-http-cache (2.5.1)
faraday (>= 0.8)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-multipart (1.1.0)
multipart-post (~> 2.0)
faraday-net_http (1.0.2)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.1)
faraday (~> 1.0)
fastimage (2.3.1)
fastlane (2.225.0)
fastimage (2.4.0)
fastlane (2.226.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand Down Expand Up @@ -208,12 +208,12 @@ GEM
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty (~> 0.4.0)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-appcenter (2.1.2)
fastlane-plugin-sentry (1.25.1)
os (~> 1.1, >= 1.1.4)
fastlane-plugin-wpmreleasetoolkit (12.3.3)
fastlane-plugin-wpmreleasetoolkit (12.4.0)
activesupport (>= 6.1.7.1)
buildkit (~> 1.5)
chroma (= 0.2.0)
Expand Down Expand Up @@ -277,26 +277,26 @@ GEM
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.7)
http-cookie (1.0.8)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
java-properties (0.3.0)
jmespath (1.6.2)
json (2.8.2)
jwt (2.9.3)
json (2.9.1)
jwt (2.10.1)
base64
kramdown (2.5.1)
rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.3)
logger (1.6.1)
logger (1.6.4)
mini_magick (4.13.2)
mini_mime (1.1.5)
mini_portile2 (2.8.8)
minitest (5.25.1)
minitest (5.25.4)
molinillo (0.8.0)
multi_json (1.15.0)
multipart-post (2.4.1)
Expand All @@ -305,10 +305,10 @@ GEM
naturally (2.2.1)
netrc (0.11.0)
nkf (0.2.0)
nokogiri (1.16.7)
nokogiri (1.18.1)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
nokogiri (1.18.1-x86_64-darwin)
racc (~> 1.4)
octokit (6.1.1)
faraday (>= 1, < 3)
Expand All @@ -321,7 +321,7 @@ GEM
parser (3.3.6.0)
ast (~> 2.4.1)
racc
plist (3.7.1)
plist (3.7.2)
progress_bar (1.3.4)
highline (>= 1.6)
options (~> 2.3.0)
Expand All @@ -330,18 +330,18 @@ GEM
racc (1.8.1)
rainbow (3.1.1)
rake (12.3.3)
rake-compiler (1.2.8)
rake-compiler (1.2.9)
rake
rchardet (1.8.0)
rchardet (1.9.0)
regexp_parser (2.9.2)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.3.9)
rexml (3.4.0)
rmagick (4.3.0)
rouge (2.0.7)
rouge (3.28.0)
rubocop (1.68.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
Expand All @@ -359,11 +359,11 @@ GEM
ruby-macho (2.5.1)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
rubyzip (2.4.1)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
securerandom (0.3.2)
securerandom (0.4.1)
security (0.1.5)
signet (0.19.0)
addressable (~> 2.8)
Expand Down Expand Up @@ -399,8 +399,8 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty (0.4.0)
rouge (~> 3.28.0)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)

Expand Down
4 changes: 2 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ target 'WooCommerce' do
pod 'Gridicons', '~> 1.2.0'

# To allow pod to pick up beta versions use -beta. E.g., 1.1.7-beta.1
pod 'WordPressAuthenticator', '~> 9.10.1'
# pod 'WordPressAuthenticator', '~> 9.10.1'
# pod 'WordPressAuthenticator', git: 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', branch: ''
# pod 'WordPressAuthenticator', git: 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', commit: ''
pod 'WordPressAuthenticator', git: 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', commit: 'e5247b2d9bdb522c5d210dd6b66d58a4013eed99'
# pod 'WordPressAuthenticator', path: '../WordPressAuthenticator-iOS'

wordpress_shared
Expand Down
18 changes: 13 additions & 5 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ DEPENDENCIES:
- StripeTerminal (~> 3.9.1)
- SwiftLint (= 0.54.0)
- WordPress-Editor-iOS (~> 1.19)
- WordPressAuthenticator (~> 9.10.1)
- WordPressAuthenticator (from `https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git`, commit `e5247b2d9bdb522c5d210dd6b66d58a4013eed99`)
- WordPressShared (~> 2.1)
- WordPressUI (~> 1.15)
- Wormholy (~> 1.6.6)
- WPMediaPicker (~> 1.8)
- ZendeskSupportSDK (~> 9.0.0)

SPEC REPOS:
https://github.com/wordpress-mobile/cocoapods-specs.git:
- WordPressAuthenticator
trunk:
- Alamofire
- Automattic-Tracks-iOS
Expand Down Expand Up @@ -109,6 +107,16 @@ SPEC REPOS:
- ZendeskSupportProvidersSDK
- ZendeskSupportSDK

EXTERNAL SOURCES:
WordPressAuthenticator:
:commit: e5247b2d9bdb522c5d210dd6b66d58a4013eed99
:git: https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git

CHECKOUT OPTIONS:
WordPressAuthenticator:
:commit: e5247b2d9bdb522c5d210dd6b66d58a4013eed99
:git: https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git

SPEC CHECKSUMS:
Alamofire: 3ca42e259043ee0dc5c0cdd76c4bc568b8e42af7
Automattic-Tracks-iOS: 2d4bee68ff9db4d51f2f6c9fc85857dc69a008a4
Expand All @@ -127,7 +135,7 @@ SPEC CHECKSUMS:
UIDeviceIdentifier: 442b65b4ff1832d4ca9c2a157815cb29ad981b17
WordPress-Aztec-iOS: 8eaa928fb3a5694924ed3befac64beaae5656e12
WordPress-Editor-iOS: 98ce1fc542c3a09e48ddc9423405b1d1e48240f1
WordPressAuthenticator: 2896e9a678fbe09463866fe7ee82bb5c7c1ba530
WordPressAuthenticator: d54323ca733b41b10a7fd64f5d1ca2d9efc47720
WordPressKit: faf8c6de7c2acfe71cf95b4db896901060967089
WordPressShared: 0aa459e5257a77184db87805a998f447443c9706
WordPressUI: 700e3ec5a9f77b6920c8104c338c85788036ab3c
Expand All @@ -142,6 +150,6 @@ SPEC CHECKSUMS:
ZendeskSupportProvidersSDK: 281acf2bb731d2a67f913cfe653ed0da9f5b2f42
ZendeskSupportSDK: b512cfc74b6bf8490e589f02cf52e27ed4f2bebe

PODFILE CHECKSUM: 9b0e747f08251a1b347a70debab470e5e105f89a
PODFILE CHECKSUM: 3c4625f3cbe2d1db480727650952ee77b82c2931

COCOAPODS: 1.16.2
6 changes: 3 additions & 3 deletions WooCommerce.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/automattic/AutomatticAbout-swift",
"state": {
"branch": null,
"revision": "31045d654bcc1f2b56c85dd658f160fad5b50a29",
"version": "1.1.4"
"revision": "606384a7492faa1139d489080dd961b0b57f9fd9",
"version": "1.1.5"
}
},
{
Expand Down Expand Up @@ -111,7 +111,7 @@
},
{
"package": "swift-numerics",
"repositoryURL": "https://github.com/apple/swift-numerics.git",
"repositoryURL": "https://github.com/apple/swift-numerics",
"state": {
"branch": null,
"revision": "0a5bc04095a675662cf24757cc0640aa2204253b",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private extension ULAccountMismatchViewController {
func configureTermsLabel() {
let linkAttributes: [NSAttributedString.Key: Any] = [
NSAttributedString.Key.foregroundColor: UIColor.accent,
NSAttributedString.Key.underlineColor: UIColor.accent,
NSAttributedString.Key.underlineColor: UIColor.clear,
NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue
]
termsLabel.linkTextAttributes = linkAttributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private extension ULErrorViewController {
func configureTermsLabel() {
let linkAttributes: [NSAttributedString.Key: Any] = [
NSAttributedString.Key.foregroundColor: UIColor.accent,
NSAttributedString.Key.underlineColor: UIColor.accent,
NSAttributedString.Key.underlineColor: UIColor.clear,
NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue
]
termsLabel.linkTextAttributes = linkAttributes
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import UIKit

/// Displays the Login Prologue carousel, populated with `LoginOnboardingPageTypeViewController` pages.
///
final class LoginOnboardingPageViewController: UIPageViewController {

private let pages: [UIViewController]

init(pageTypes: [LoginOnboardingPageType] = LoginOnboardingPageType.allCases, showsSubtitle: Bool = false) {
self.pages = pageTypes.map { LoginOnboardingPageTypeViewController(pageType: $0, showsSubtitle: showsSubtitle) }
super.init(transitionStyle: .scroll, navigationOrientation: .horizontal)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func viewDidLoad() {
super.viewDidLoad()
dataSource = pages.count > 1 ? self : nil

if let firstPage = pages.first {
setViewControllers([firstPage], direction: .forward, animated: false)
}
}

override func viewDidLayoutSubviews() {
if let pageControl = view.subviews.first(where: { $0 is UIPageControl }) as? UIPageControl {
configurePageControllerAppearance(pageControl: pageControl)
}
}

/// Shows the next page of content if it is not on the last page.
/// - Returns: Whether it can go to the next page, if it has not reached the last page.
func goToNextPageIfPossible() -> Bool {
let currentPage = dataSource?.presentationIndex?(for: self) ?? 0
guard currentPage < pages.count - 1 else {
return false
}
setViewControllers([pages[currentPage + 1]], direction: .forward, animated: true)
return true
}
}

private extension LoginOnboardingPageViewController {
// MARK: Page Control Setup
//
func configurePageControllerAppearance(pageControl: UIPageControl) {
pageControl.currentPageIndicatorTintColor = .accent
pageControl.pageIndicatorTintColor = .gray(.shade10)
pageControl.transform = CGAffineTransform(scaleX: Constants.pageControlScale, y: Constants.pageControlScale)
}
}

// MARK: - UIPageViewControllerDataSource Conformance
//
extension LoginOnboardingPageViewController: UIPageViewControllerDataSource {

func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? {
guard let index = pages.firstIndex(of: viewController),
index > 0 else {
return nil
}

return pages[index - 1]
}

func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? {
guard let index = pages.firstIndex(of: viewController),
index < pages.count - 1 else {
return nil
}

return pages[index + 1]
}

func presentationCount(for pageViewController: UIPageViewController) -> Int {
pages.count
}

func presentationIndex(for pageViewController: UIPageViewController) -> Int {
guard let currentPage = viewControllers?.first,
let currentIndex = pages.firstIndex(of: currentPage) else {
return 0
}

return currentIndex
}
}


// MARK: - Constants
private extension LoginOnboardingPageViewController {
enum Constants {
static let pageControlBottomMargin: CGFloat = 0
static let pageControlScale: CGFloat = 0.8 // Scales page control according to design
}
}
Loading