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

Issue/6586 wcs onboarding cta screen #6698

Merged
merged 12 commits into from
Jun 3, 2022

Conversation

JorgeMucientes
Copy link
Contributor

@JorgeMucientes JorgeMucientes commented Jun 3, 2022

Part of: #6586

Description

Displays new onboarding screen before triggering the WC Shipping installation flow. Designs for this screen are here 9PGX5zb3VKHMYc7qTIv30B-fi-744%3A24627

Screenshot 2022-06-03 at 12 09 53

Testing instructions

To access this new screen a site eligible for shipping labels is required for the new banner to be displayed inside OrderDetail screen. Conditions for the banner to be shown:

  • The store is located in US.
  • The order currency is USD.
  • The products are eligible for SL (not virtual/downloadable).
  • The order is not eligible for IPP.
  • WC Shipping plugin must be uninstalled or unactive

Once the banner is shown, click on "Get WooCommerce Shipping" button and the new screen should be displayed:

OnboardingScreenFlow.mp4

@JorgeMucientes JorgeMucientes added type: enhancement A request for an enhancement. feature: shipping labels Related to creating, ordering, or printing shipping labels. labels Jun 3, 2022
@peril-woocommerce
Copy link

peril-woocommerce bot commented Jun 3, 2022

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jun 3, 2022

You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code:

# Conflicts:
#	WooCommerce/src/main/res/navigation/nav_graph_orders.xml
…/6586-wcs-onboarding-cta-screen

# Conflicts:
#	WooCommerce/src/test/kotlin/com/woocommerce/android/ui/orders/OrderDetailViewModelTest.kt
@peril-woocommerce
Copy link

peril-woocommerce bot commented Jun 3, 2022

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2022

Codecov Report

Merging #6698 (4e4f088) into trunk (6726ec7) will decrease coverage by 0.11%.
The diff coverage is 4.83%.

❗ Current head 4e4f088 differs from pull request most recent head 57c908f. Consider uploading reports for the commit 57c908f to get more accurate results

@@             Coverage Diff              @@
##              trunk    #6698      +/-   ##
============================================
- Coverage     45.36%   45.25%   -0.12%     
+ Complexity     2917     2916       -1     
============================================
  Files           517      518       +1     
  Lines         28228    28279      +51     
  Branches       3718     3718              
============================================
- Hits          12806    12798       -8     
- Misses        14241    14300      +59     
  Partials       1181     1181              
Impacted Files Coverage Δ
...etails/views/OrderDetailInstallWcShippingBanner.kt 0.00% <0.00%> (ø)
...roid/ui/shipping/InstallWcShippingFlowViewModel.kt 0.00% <0.00%> (ø)
.../android/ui/orders/details/OrderDetailViewModel.kt 69.45% <60.00%> (-0.94%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6726ec7...57c908f. Read the comment docs.

@JorgeMucientes
Copy link
Contributor Author

JorgeMucientes commented Jun 3, 2022

I'll be AFK for 3 weeks. So, I won't be able to respond to feedback. Please leave all the feedback and nitpicks you find, but if there isn't anything major or blocking proceed to merge, as these changes are needed to keep working on the Onboarding Shipping Labels project. I will address any np or feedback when I come back 🙂

@JorgeMucientes JorgeMucientes marked this pull request as ready for review June 3, 2022 13:47
@nbradbury nbradbury self-assigned this Jun 3, 2022
@nbradbury
Copy link
Contributor

nbradbury commented Jun 3, 2022

@JorgeMucientes When the device is set to a larger font size, the "Not now" button is off-screen. Can we wrap the screen in a scrollview?

Screenshot_20220603-110511

Note that I can scroll the screen in landscape, but it stops scrolling before the buttons are showing.

@nbradbury
Copy link
Contributor

@JorgeMucientes In landscape, the views aren't aligned correctly.

land

}

private fun openInBrowser(url: String) {
ChromeCustomTabUtils.launchUrl(requireContext(), url)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is just a tip and it doesn't have to be implemented in this PR, or at all. I think there's a decent chance the user will tap the "What is WooCommerce Shipping" link, so it might make sense to preload WC_SHIPPING_INFO_URL as described in this comment in ChromeCustomTabUtils.

@nbradbury nbradbury self-requested a review June 3, 2022 16:45
Copy link
Contributor

@nbradbury nbradbury left a comment

Choose a reason for hiding this comment

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

@JorgeMucientes I'm going to approve this since it's behind a feature flag. I went ahead and fixed the bug with the buttons being cut off because I thought that was a serious problem.

@nbradbury nbradbury enabled auto-merge June 3, 2022 16:47
@nbradbury nbradbury merged commit c79b56b into trunk Jun 3, 2022
@nbradbury nbradbury deleted the issue/6586-wcs-onboarding-cta-screen branch June 3, 2022 16:47
@JorgeMucientes
Copy link
Contributor Author

@nbradbury thank you for reviewing this and fixing the issue with the button not being visible!
I'll open an issue to review this screen again when I'm back because we want to have the buttons anchored to the bottom and always visible and only the text content scrollable. But obviously, my implementation had several flaws 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: shipping labels Related to creating, ordering, or printing shipping labels. type: enhancement A request for an enhancement.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants