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

Add Total Subscribers card to Subscribers tab #20732

Merged
merged 17 commits into from
May 2, 2024

Conversation

aditi-bhatia
Copy link
Contributor

@aditi-bhatia aditi-bhatia commented Apr 30, 2024

Fixes #20692

This PR adds the Total Subscribers card to the Subscribers tab:

Screenshot 2024-04-30 at 2 00 29 PM

Note: see outstanding questions thread here: p1714493430782359-slack-C06BR07TJHK.


To Test:

  1. Enable the stats_traffic_subscribers_tab from My Site → Debug settings.
  2. Navigate back and open My Site → Stats.
  3. Click on the Subscribers tab and you should see the the Total Subscribers card.

Regression Notes

  1. Potential unintended areas of impact

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

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

    • TotalSubscribersUseCaseTest.kt

PR Submission Checklist:

  • I have completed the Regression Notes.
  • 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 (strike-out the not-applying and unnecessary ones):

- [ ] WordPress.com sites and self-hosted Jetpack sites.

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • Talkback.
    - [ ] 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)
  • Large and small screen sizes. (Tablet and smaller phones)
  • Multi-tasking: Split screen and Pop-up view. (Android 10 or higher)

@dangermattic
Copy link
Collaborator

dangermattic commented Apr 30, 2024

2 Warnings
⚠️ strings.xml files should only be updated on release branches, when the translations are downloaded by our automation.
⚠️ Class TotalSubscribersUseCaseFactory is missing tests, but unit-tests-exemption label was set to ignore this.

Generated by 🚫 Danger

@aditi-bhatia aditi-bhatia changed the title Add total Subscribers card to Subscribers tab Add Total Subscribers card to Subscribers tab Apr 30, 2024
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Apr 30, 2024

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr20732-954d593
Commit954d593
Direct Downloadjetpack-prototype-build-pr20732-954d593.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Apr 30, 2024

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr20732-954d593
Commit954d593
Direct Downloadwordpress-prototype-build-pr20732-954d593.apk
Note: Google Login is not supported on these builds.

Copy link

codecov bot commented Apr 30, 2024

Codecov Report

Attention: Patch coverage is 51.42857% with 17 lines in your changes are missing coverage. Please review.

Project coverage is 40.67%. Comparing base (f51cb45) to head (954d593).
Report is 4 commits behind head on trunk.

Files Patch % Lines
...ns/subscribers/usecases/TotalSubscribersUseCase.kt 51.42% 14 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #20732   +/-   ##
=======================================
  Coverage   40.67%   40.67%           
=======================================
  Files        1490     1491    +1     
  Lines       68616    68651   +35     
  Branches    11337    11342    +5     
=======================================
+ Hits        27909    27927   +18     
- Misses      38173    38187   +14     
- Partials     2534     2537    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@irfano irfano left a comment

Choose a reason for hiding this comment

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

Good job, the card works well! I have just added minor comments related to the code.

@irfano
Copy link
Member

irfano commented May 1, 2024

I want to remind you

@aditi-bhatia aditi-bhatia requested a review from irfano May 2, 2024 00:20
@irfano irfano force-pushed the origin/issue/add-total-subscribers branch from a2965bc to 954d593 Compare May 2, 2024 13:02
Copy link

sonarcloud bot commented May 2, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
9.1% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@irfano irfano left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my comments. I have fixed a failing unit test (954d593).
LGTM! 👍🏻

@irfano irfano merged commit 0b525f6 into trunk May 2, 2024
20 checks passed
@irfano irfano deleted the origin/issue/add-total-subscribers branch May 2, 2024 13:52
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.

Total Subscribers Card
4 participants