Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit b4c5457

Browse files
authored
Merge pull request #781 from wordpress-mobile/wcios/prologue-store-creation-first
Update prologue buttons style when site creation is enabled
2 parents 49dfb3d + 598ddad commit b4c5457

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ _None._
3030
3131
-->
3232

33-
## Unreleased
33+
## 6.4.0
3434

3535
### Breaking Changes
3636

3737
_None._
3838

3939
### New Features
4040

41-
_None._
41+
- Update button style and position on the prologue screen when `enableSiteCreation` and `enableSiteAddressLoginOnlyInPrologue` configs are enabled.
4242

4343
### Bug Fixes
4444

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PODS:
2222
- SVProgressHUD (2.2.5)
2323
- SwiftLint (0.49.1)
2424
- UIDeviceIdentifier (2.2.0)
25-
- WordPressAuthenticator (6.3.0):
25+
- WordPressAuthenticator (6.4.0):
2626
- GoogleSignIn (~> 6.0.1)
2727
- Gridicons (~> 1.0)
2828
- "NSURL+IDN (= 0.4)"
@@ -94,7 +94,7 @@ SPEC CHECKSUMS:
9494
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
9595
SwiftLint: 32ee33ded0636d0905ef6911b2b67bbaeeedafa5
9696
UIDeviceIdentifier: f33af270ba9045ea18b31d9aab88e42a0082ea67
97-
WordPressAuthenticator: d77d347e638e0c80d5539b3d7bd12140ada16845
97+
WordPressAuthenticator: 0406143755a661b818b80d1e926a206b234f99f6
9898
WordPressKit: 8e1c5a64645a59493a7316f38468ac036de9c79b
9999
WordPressShared: 0aa459e5257a77184db87805a998f447443c9706
100100
WordPressUI: 1cf47a3b78154faf69caa18569ee7ece1e510fa0

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressAuthenticator'
5-
s.version = '6.3.0'
5+
s.version = '6.4.0'
66

77
s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.'
88
s.description = <<-DESC

WordPressAuthenticator.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
F1DE08CB24F4266A007AE6B3 /* StoredCredentialsAuthenticator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoredCredentialsAuthenticator.swift; sourceTree = "<group>"; };
501501
F5C817E62582B2F300BD5A3B /* UIPasteboard+Detect.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIPasteboard+Detect.swift"; sourceTree = "<group>"; };
502502
FF475C5056EB60A277696BA9 /* Pods-WordPressAuthenticatorTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WordPressAuthenticatorTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-WordPressAuthenticatorTests/Pods-WordPressAuthenticatorTests.release.xcconfig"; sourceTree = "<group>"; };
503-
FF629D9522393500004C4106 /* WordPressAuthenticator.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressAuthenticator.podspec; sourceTree = "<group>"; };
503+
FF629D9522393500004C4106 /* WordPressAuthenticator.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressAuthenticator.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
504504
/* End PBXFileReference section */
505505

506506
/* Begin PBXFrameworksBuildPhase section */

WordPressAuthenticator/Signin/LoginPrologueViewController.swift

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -273,26 +273,32 @@ class LoginPrologueViewController: LoginViewController {
273273
accessibilityIdentifier: "Prologue Continue Button",
274274
style: primaryButtonStyle,
275275
onTap: loginTapCallback())
276-
let enterYourSiteAddressButton = StackedButton(title: displayStrings.enterYourSiteAddressButtonTitle,
277-
isPrimary: configuration.enableSiteAddressLoginOnlyInPrologue,
278-
configureBodyFontForTitle: true,
279-
accessibilityIdentifier: "Prologue Self Hosted Button",
280-
style: secondaryButtonStyle,
281-
onTap: siteAddressTapCallback())
282-
let createSiteButton = StackedButton(title: displayStrings.siteCreationButtonTitle,
283-
isPrimary: false,
284-
configureBodyFontForTitle: true,
285-
accessibilityIdentifier: "Prologue Create Site Button",
286-
style: secondaryButtonStyle,
287-
onTap: simplifiedLoginSiteCreationCallback())
276+
let enterYourSiteAddressButton: StackedButton = {
277+
let isPrimary = configuration.enableSiteAddressLoginOnlyInPrologue && !configuration.enableSiteCreation
278+
return StackedButton(title: displayStrings.enterYourSiteAddressButtonTitle,
279+
isPrimary: isPrimary,
280+
configureBodyFontForTitle: true,
281+
accessibilityIdentifier: "Prologue Self Hosted Button",
282+
style: secondaryButtonStyle,
283+
onTap: siteAddressTapCallback())
284+
}()
285+
let createSiteButton: StackedButton = {
286+
let isPrimary = configuration.enableSiteAddressLoginOnlyInPrologue
287+
return StackedButton(title: displayStrings.siteCreationButtonTitle,
288+
isPrimary: isPrimary,
289+
configureBodyFontForTitle: true,
290+
accessibilityIdentifier: "Prologue Create Site Button",
291+
style: secondaryButtonStyle,
292+
onTap: simplifiedLoginSiteCreationCallback())
293+
}()
288294

289295
if configuration.enableWPComLoginOnlyInPrologue && configuration.enableSiteCreation {
290296
buttons = [continueWithWPButton,
291297
createSiteButton]
292298
} else if configuration.enableWPComLoginOnlyInPrologue {
293299
buttons = [continueWithWPButton]
294300
} else if configuration.enableSiteAddressLoginOnlyInPrologue && configuration.enableSiteCreation {
295-
buttons = [enterYourSiteAddressButton, createSiteButton]
301+
buttons = [createSiteButton, enterYourSiteAddressButton]
296302
} else if configuration.enableSiteAddressLoginOnlyInPrologue {
297303
buttons = [enterYourSiteAddressButton]
298304
} else if configuration.enableSiteCreation {

0 commit comments

Comments
 (0)