[Jetpack plugin install prompt] Complete UI and tracking for installation prompt
Description
This pull request completes Phase 1 of Jetpack plugin install prompt project https://github.com/wordpress-mobile/WordPress-iOS/issues/19213
- Updating UI according to the new requirements
- Adding tracking
Testing instructions
Case 1:
- Fresh install app and log in to self-hosted site without Jetpack
- Install prompt appears
- There's a title and description informing about Jetpack features
- "Learn more" button opens the web site
- "Install Jetpack" button opens installation flow
- "Continue without Jetpack" dismisses
Case 2 - Tracking
- Fresh install app and log in to self-hosted site without Jetpack
- Install prompt appears
Tracked: jetpack_install_prompt_shown <site_type: blog>appears in console- Tap "Learn more"
Tracked: jetpack_install_prompt_learn_more_tapped <site_type: blog>appears in console- Tap "Install"
Tracked: jetpack_install_prompt_install_tapped <site_type: blog>appears in console- Come back and tap "Continue without Jetpack"
Tracked: jetpack_install_prompt_dismiss_tapped <site_type: blog>appears in console
Regression Notes
- Potential unintended areas of impact
Broken actions or accessibility
- What I did to test those areas of impact (or what existing automated tests I relied on)
- Tested actions manually
- Tested accessibility using accessibility inspector, different screen sizes and different dynamic text size
- What automated tests I added (or what prevented me from doing so)
None
PR submission checklist:
- [x] I have completed the Regression Notes.
- [x] I have considered adding unit tests for my changes.
- [x] I have considered adding accessibility improvements for my changes.
- [x] I have considered if this change warrants user-facing release notes and have added them to
RELEASE-NOTES.txtif necessary.
Images & Videos
iPhone 13
iPhone 13 + Zoomed
iPad Pro 12.9 inch
Tracking
You can test the changes in WordPress from this Pull Request by:
- Clicking here or scanning the QR code below to access App Center
- Then installing the build number
pr19330-3e18515on your iPhone
You can test the changes in Jetpack from this Pull Request by:
- Clicking here or scanning the QR code below to access App Center
- Then installing the build number
pr19330-3e18515on your iPhone
@sla8c
Thank you for the review 🤝, good catch!
I made a change to support dark mode.
https://user-images.githubusercontent.com/4062343/191737893-3f1cccd7-d337-474f-9a09-4f96faea136b.mp4
Nice work adapting this to the new design and adding tracks ✨
The code looks good and I run through the testing instructions and everything worked well. I also tested dark mode which @sla8c flagged earlier and it's fixed.
The only comment was on this Figma board: 7Xi0UHNwokIWen0cczwHti-fi-0%3A1 (I can't link to the specific comment since the link shorter doesn't seem to support Figma comments yet, see 152-gh-Automattic/tampermonkey-highlighter). This is not a blocker since this PR is not being merged to
trunk, but I was reminded of it on this PR and have pinged folks in that Figma comment thread for feedback.
Thanks 👍 Yes, I saw the comment. I agree that for now it's not worth waiting and texts could be changed later in case the feature is released.