-
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
Stats: Open People -> Subscribers
from Subscribers List
card
#23077
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.
|
cc88ba4
to
579498e
Compare
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.
Works great! Thanks @staskus!
@@ -497,8 +503,9 @@ private extension PeopleViewController { | |||
filterBar.items = filtersAvailableForBlog(blog) | |||
filterBar.addTarget(self, action: #selector(selectedFilterDidChange(_:)), for: .valueChanged) | |||
|
|||
// By default, let's display the Blog's Users | |||
filter = .users | |||
let indexToSet = Filter.allCases.firstIndex(where: { $0 == defaultFilter }) ?? 0 |
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.
nitpick:
let indexToSet = Filter.allCases.firstIndex(where: { $0 == defaultFilter }) ?? 0 | |
let indexToSet = Filter.allCases.firstIndex(of: defaultFilter) ?? 0 |
Also, I think a force unwrap is OK since we know that defaultFilter
is present in allCases
.
@@ -28,13 +28,13 @@ final class PersonViewController: UITableViewController { | |||
var title: String { | |||
switch self { | |||
case .User: | |||
return NSLocalizedString("Blog's User", comment: "Blog's User Profile. Displayed when the name is empty!") | |||
return NSLocalizedString("user.details.title.user", value: "Site's User", comment: "Sites's User Profile. Displayed when the name is empty!") |
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.
Good idea to use "Site" instead 👍
Just noting here that the People screen doesn't load for non-Admins (more info in https://a8c.slack.com/archives/C06BR07TJHK/p1714164554910319) |
Partially addresses #23046
Continuation of Subscribers List Card PR (#23067)
Open
People -> Subscribers
fromSubscribers List
card withSubscribers
tab selected.Other remaining tasks in other PRs:
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: