Skip to content

Adds a welcome screen after the user sign ups or logs in with no sites added#13523

Merged
emilylaguna merged 44 commits intorelease/14.3from
feature/post-signup-interstitial
Feb 26, 2020
Merged

Adds a welcome screen after the user sign ups or logs in with no sites added#13523
emilylaguna merged 44 commits intorelease/14.3from
feature/post-signup-interstitial

Conversation

@emilylaguna
Copy link
Copy Markdown
Contributor

@emilylaguna emilylaguna commented Feb 20, 2020

Description

Adds a new displayed to users after login/signup if they have no sites added. The PSI screen will present them with the option of Creating a new site, adding a self-hosted site, or dismissing the screen.

The user will only see this screen once.

This branch includes fixes for following tickets:

Notes

Video Demos

Login Flow

Device Link
iPhone
iPad

Sign Up Flow

Device Link
iPhone
iPad

Testing: Flows

Login with WP.com account with no sites

Part 1:

  1. Launch the app
  2. If you're logged in, log out
  3. Tap Continue with WordPress.com
  4. Login to an account that has no sites
    Note: You should not be shown the login epilogue view:

Expectation: You should be displayed the interstitial view

Part 2:

  1. Relaunch the app, you should not be displayed the interstitial

Part 3:

  1. Log out and log back in

Expectation: You should not be displayed the interstitial view

Login with WP.com account with sites

  1. Launch the app
  2. If you're logged in, log out
  3. Tap login
  4. Tap Continue with WordPress.com

Expectation: You should be shown the login epilogue view

Login with self hosted site

  1. Launch the app
  2. If you're logged in, log out
  3. Tap login
  4. Tap 'entering your site address'
  5. Enter a site address
  6. Enter your username/password
  7. Tap Next

Expectation: You should not be shown the interstitial, but you should see the login epilogue view

Sign Up Flow

Part 1:

  1. Launch the app
  2. If you're logged in, log out
  3. Sign up for a new account
  4. You should be shown the sign up epilogue view:

5. Tap continue

Expectation: You should be displayed the interstitial view

Part 2:

  1. Log out and log back in

Expectation: You should not be displayed the interstitial view

Testing: Screen Actions

Note: In order to test each button option you will need to either:

  • Delete and relaunch the app after each button press since the PSI will not be displayed again for your account.
  • Login using a different account for each action

Create a site action

  1. On the PSI screen
  2. Tap Create a Site

Expectation: The PSI screen will be dismissed, and you will be brought to the Create a WP.com site:

Add self-hosted site action

  1. On the PSI screen
  2. Tap Add self-hosted site

Expectation: The PSI screen will be dismissed, and you will be brought to the add self hosted site flow:

Not right now action

  1. On the PSI screen
  2. Tap Not right now

Expectation: The PSI screen will be dismissed, and you will be brought reader tab


PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

Emily Laguna added 30 commits February 12, 2020 11:42
…i-screen

Creates a new screen for the Post Sign Up Interstitial
…isplay-logic

Adds logic to determine when to show the post signup interstitial
@pinarol pinarol modified the milestones: 14.3 ❄️, 14.4 Feb 24, 2020
@pinarol
Copy link
Copy Markdown
Contributor

pinarol commented Feb 24, 2020

Hey there! I've moved this to 14.4 since 14.3 has been cut. If you want this to make it to 14.4, please feel free to ping me.

@emilylaguna emilylaguna changed the base branch from develop to release/14.3 February 24, 2020 21:53
@emilylaguna emilylaguna modified the milestones: 14.4, 14.3 ❄️ Feb 24, 2020
@emilylaguna emilylaguna requested review from yaelirub and removed request for diegoreymendez February 24, 2020 22:15
@yaelirub
Copy link
Copy Markdown
Contributor

yaelirub commented Feb 25, 2020

I tested the flows and the work as expected though I found the description for the signup flow to be unclear.
I also found that during the transition to site creation from the interstitial, you can see "my site" in the background for a split second. Can we fix that?

Would still like a full review from @diegoreymendez . Please note, we are targeting 14.3.


class PostSignUpInterstitialCoordinator {
private let database: KeyValueDatabase
private let userId: NSNumber?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this an optional? Seems like the init method that takes the userid is only used for testing.
Will we have a situation where we wont have a userid?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if you sign in using a self hosted site there will not be a WP.com account for the user which results in the userID being nil.

Copy link
Copy Markdown
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR works fine for me. Nice job.

I think the only thing that feels a bit off is the transition briefly letting you see what's behind. I realize this isn't the easiest to fix but I believe it would be worth it to give it a shot.

Copy link
Copy Markdown
Contributor

@diegoreymendez diegoreymendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emilylaguna - I've manually re-run the CircleCI tests since they failed.

On my end I still think it would be great to resolve the transition issue, but this PR is 👍

@emilylaguna
Copy link
Copy Markdown
Contributor Author

Alright, after much trial and error I unfortunately don't have a great solution for the transition issue. What I've done is set the dismiss animation flag to false which gives a quicker transition time. I have created an issue so I can tackle this again in the future: #13554

@emilylaguna emilylaguna merged commit 50bb4d9 into release/14.3 Feb 26, 2020
@emilylaguna emilylaguna deleted the feature/post-signup-interstitial branch February 26, 2020 17:11
@jkmassel jkmassel restored the feature/post-signup-interstitial branch February 27, 2020 17:32
@emilylaguna emilylaguna deleted the feature/post-signup-interstitial branch April 7, 2020 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants