-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add Jetpack powered banner to Reader Search #19059
Conversation
…hts to use modern supported devices
…of the keyboard (will be hidden on iPhone landscape
…-iOS into task/reader-search-jetpack-banner
…dPress app to add the Jetpack Powered banner
You can test the changes in Jetpack from this Pull Request by:
|
You can test the changes in WordPress from this Pull Request by:
|
WordPress/Classes/ViewRelated/Reader/ReaderSearchViewController.swift
Outdated
Show resolved
Hide resolved
…-iOS into task/reader-search-jetpack-banner
…so that it can be set to hidden in ReaderSearchViewController
Thanks for bringing this up @twstokes ! I am now hiding the bar from reader stream (if present). That issue though is still there on newer iPhones. It's the accessory view still showing up when an hardware keyboard is connected. Does not happen on iPad. Not sure if we want to add logic to handle that, or treat it as an edge case, considering that it does not seem to happen on iPad? Wdyt? |
@Gio2018 FYI I've noticed unit tests were failing; I re-triggered in case it was a build kite issue |
👋 @Gio2018 - how are we treating Reader search for self-hosted sites not logged into WordPress.com? Since being logged into .com + Jetpack would enable the ability to star / favorite / re-blog, should we not show the banner in this scenario? |
Thanks for the info! It sounds like we're probably OK to keep it like it is, then. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @Gio2018 🚀 - I just had one comment on if this should be shown for self-hosted users who aren't logged into .com / connected to Jetpack.
I tested:
- Jetpack app
- iPad
- Dark mode
- a11y
- Different orientations
Great point @twstokes ! As discussed on Slack, this will be covered once we move to the |
…-iOS into task/reader-search-jetpack-banner
Fixes #NA
This PR adds a "Jetpack powered" banner in the reader search of the WordPress app (see screenshots).
The banner won't be visible on iPhone landscape.
This PR also removes (temporarily) the "Search WordPress for a site or a post" label that appeared below the "Clear search history" button.
To test:
WordPress
target from this branchJetpack
target from this branchRegression Notes
Potential unintended areas of impact
Low, it adds an
inputAccessoryView
to theserchBar
inReaderSearchViewController
This PR also adjusts heights calculation in
ReaderSearchSuggestionsViewController
and removes a label inReaderSearchViewController
What I did to test those areas of impact (or what existing automated tests I relied on)
test on several devices and font sizes
What automated tests I added (or what prevented me from doing so)
none
PR submission checklist:
I have considered if this change warrants user-facing release notes and have added them toNot released.RELEASE-NOTES.txt
if necessary.