Skip to content

Conversation

@kean
Copy link
Contributor

@kean kean commented Jan 23, 2026

Description

Closes CMM-1132: Add WordAds revenue stats to Jetpack app.

This PR adds the main bar chart view for the WordAds tab. Since the WordAds API doesn't support custom date periods, it uses a simplified version of the chart (SimpleBarChartView). Unlike the production version of BarChartView, I made it use the new MetricType protocol, so it's fully generalized.

Testing instructions

I used one of the production accounts and made sure the data matches for all the available date periods and granularity options.

Screenshots & Recording

Screenshot 2026-01-23 at 4 20 50 PM
Screen.Recording.2026-01-23.at.4.20.56.PM.mov

@dangermattic
Copy link
Collaborator

dangermattic commented Jan 23, 2026

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@kean kean added the Stats label Jan 23, 2026
@kean kean added this to the 26.7 milestone Jan 23, 2026
@kean kean requested a review from crazytonyli January 23, 2026 21:25
@kean kean force-pushed the task/add-chart-view-ads-p2 branch from d12a20d to 463641f Compare January 23, 2026 21:30
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 23, 2026

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number30606
VersionPR #25165
Bundle IDcom.jetpack.alpha
Commit553795a
Installation URL1dl7n6qqb217g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 23, 2026

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number30606
VersionPR #25165
Bundle IDorg.wordpress.alpha
Commit553795a
Installation URL3rnlo68sm7cfg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 23, 2026

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@crazytonyli
Copy link
Contributor

A couple of issues on iPad:

  • The tab view has double borders.
  • The date picker is not supposed to show up for the Ad tab, I think?

@kean
Copy link
Contributor Author

kean commented Jan 26, 2026

A couple of issues on iPad:

Thanks for testing on iPad. I haven't yet. I fixed all three issues in the three latest commits and also removed the "Stats" title on iPad – it didn't look good.
Screenshot 2026-01-26 at 1 24 29 PM

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants