Stats Subscribers Deep link support
Fixes #23047
Add support to deep link from /stats/subscribers/domain into the app.
To test:
Feature flag enabled
- Enable
Stats Subscribers and Trafficfeature flag - Open wp.com/stats
- Try opening the app from stats/insights, stats/subscribers
- Confirm respective tabs on the app are opened
- Try opening the app from wp.com traffic tab with different days/weeks/months/years granularity selected
- Confirm Traffic tab is opened on the app with correct date picker granularity selected
https://github.com/wordpress-mobile/WordPress-iOS/assets/4062343/9475e808-475b-43dc-bcaa-53ff8d20e3d3
Feature flag disabled
- Disable
Stats Subscribers and Trafficfeature flag - stats/subscribers should open a default insights tab
- Other routes should work as before
https://github.com/wordpress-mobile/WordPress-iOS/assets/4062343/aa2e4d55-2b25-43cb-be8b-7a557b5c8a34
Regression Notes
- Potential unintended areas of impact
Breaking functionality when feature flag is disabled
- What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing
- What automated tests I added (or what prevented me from doing so)
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.
Testing checklist:
- [ ] WordPress.com sites and self-hosted Jetpack sites.
- [ ] Portrait and landscape orientations.
- [ ] Light and dark modes.
- [ ] Fonts: Larger, smaller and bold text.
- [ ] High contrast.
- [ ] VoiceOver.
- [ ] Languages with large words or with letters/accents not frequently used in English.
- [ ] Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
- [ ] iPhone and iPad.
- [ ] Multi-tasking: Split view and Slide over. (iPad)
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr23100-28a64e5 | |
| Version | 24.7 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 28a64e5bf569ea42db2145befde51a3373da6ecb | |
| App Center Build | WPiOS - One-Offs #9724 |
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr23100-28a64e5 | |
| Version | 24.7 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 28a64e5bf569ea42db2145befde51a3373da6ecb | |
| App Center Build | jetpack-installable-builds #8768 |
I also noticed that if the user explicitly taps the Day segment on the web's Subscribers tab, the URL becomes https://wordpress.com/stats/subscribers/day/mysite.wordpress.com
Great observation, @guarani, thanks!