-
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
Enable quick access to notifications from Reader #23882
Conversation
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
|
private func setupNotificationsBarButtonItem() { | ||
notificationsButtonCancellable = nil | ||
if traitCollection.horizontalSizeClass == .regular { | ||
notificationsButtonCancellable = notificationsButtonViewModel.$image.sink { [weak self] in |
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.
There are a few whitespaces after =
.
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.
Thanks; didn't notice it with the way my editor is set up. Fixed.
private func setupNotificationsBarButtonItem() { | ||
notificationsButtonCancellable = nil | ||
if isNotificationsBarButtonEnabled && traitCollection.horizontalSizeClass == .regular { | ||
notificationsButtonCancellable = notificationsButtonViewModel.$image.sink { [weak self] in |
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.
Whitespaces here too.
Fixes #23717 by adding the "Notifications" bell directly to the main Reader screens. If the app re-opens on one of these screens thanks to state restoration, you will see the bell regardless of whether the menu is opened or the orientation. The bell provides instant information: do I have any new notifications? It also allows you to glance over the newest notifications quickly.
To test:
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: