Skip to content
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

Merged
merged 5 commits into from Apr 26, 2024

Conversation

staskus
Copy link
Contributor

@staskus staskus commented Apr 24, 2024

Partially addresses #23046
Continuation of Subscribers List Card PR (#23067)

Open People -> Subscribers from Subscribers List card with Subscribers tab selected.

Other remaining tasks in other PRs:

  • Waiting for new designs
  • Remove Email Followers tab

To test:

  1. Enable Stats Traffic and Subscribers tab feature flag
  2. Select site with more than 6 subscribers
  3. Open Stats
  4. Open Subscribers tab
  5. Tap "View more" on Subscribers card
  6. Confirm People view opens with "Subscribers" tab selected

Regression Notes

  1. Potential unintended areas of impact

  2. What I did to test those areas of impact (or what existing automated tests I relied on)

  3. What automated tests I added (or what prevented me from doing so)

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if 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)

@staskus staskus added this to the 24.8 milestone Apr 24, 2024
@staskus staskus requested a review from guarani April 24, 2024 13:40
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Apr 24, 2024

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr23077-83df7d6
Version24.7
Bundle IDorg.wordpress.alpha
Commit83df7d6
App Center BuildWPiOS - One-Offs #9705
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Apr 24, 2024

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr23077-83df7d6
Version24.7
Bundle IDcom.jetpack.alpha
Commit83df7d6
App Center Buildjetpack-installable-builds #8749
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@staskus staskus force-pushed the task/23046-subscribers-list-card branch from cc88ba4 to 579498e Compare April 25, 2024 05:56
@staskus staskus self-assigned this Apr 25, 2024
Base automatically changed from task/23046-subscribers-list-card to trunk April 25, 2024 06:55
@staskus staskus modified the milestones: 24.8, Pending Apr 26, 2024
Copy link
Contributor

@guarani guarani left a 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
Copy link
Contributor

@guarani guarani Apr 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:

Suggested change
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!")
Copy link
Contributor

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 👍

@guarani guarani enabled auto-merge April 26, 2024 18:51
@guarani guarani merged commit 7d360c3 into trunk Apr 26, 2024
21 of 24 checks passed
@guarani guarani deleted the task/23046-subscribers-list-details branch April 26, 2024 19:11
@guarani
Copy link
Contributor

guarani commented Apr 26, 2024

Just noting here that the People screen doesn't load for non-Admins (more info in https://a8c.slack.com/archives/C06BR07TJHK/p1714164554910319)

@staskus staskus modified the milestones: Pending, 24.8 Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants