-
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
Refactor NotificationsViewController
& Add NotificationsViewModel
#22351
Conversation
WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift
Outdated
Show resolved
Hide resolved
WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift
Show resolved
Hide resolved
…o refactor-notifications-vc
📲 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.
|
@alpavanoglu Code changes look good to me, but I wasn't able to test the changes. The App Badges is always N.B. I made sure App Badges is enabled. |
I'm going to bump this to the next release because we'll be code freezing 24.1 today and this hasn't been reviewed yet. If these changes cannot wait two weeks and it's important that it makes it into this release, let me know and we'll organize a new beta once ready. |
@salimbraksa @alpavanoglu The testing instructions are a bit confusing to me. Are we testing the in-app badge over the notifications tab bar icon? Or are we testing the App Icon Badges? The in-app badge works as expected. |
The testing steps are for App Badges, and not in-app badge. Do you test it on a device or a simulator? I don't know why App badges are not working for you. They do work on my device just fine. When we view the Notifications tab, the last seen value is checked to reset the badges afaik. I can send a screen recording over slack (I won't post here as I use my own account to see badges) if that would help. The changes are simply copying over the logic to VM and I added tests. I mostly added the manual testing steps as "just in case". |
…o refactor-notifications-vc # Conflicts: # WordPress/Classes/Services/NotificationSyncMediator.swift
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! 🚀
Refs: pcdRpT-5aB-p2
This PR is a first of a following chain to reduce the complexity of
NotificationsViewController
by attempting to decouple logic from the view. So we can add and modify features quickly in our next project.I will isolate the changes semantically to make testing and reviewing easier. So all the changes here are about
lastSeen
logic.Testing Steps
Regression Notes
Potential unintended areas of impact
The refactored areas themselves
What I did to test those areas of impact (or what existing automated tests I relied on)
Unit tests added.
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.