Skip to content

Conversation

@kean
Copy link
Contributor

@kean kean commented Jan 28, 2026

Closes CMM-599: Add Devices breakdown (Premium+).

The feature and the implementation are pretty straightforward. It simply uses the existing infrastructure to add new TopListItemType, parse data using StatsTimeIntervalData, use SwiftUI Charts to render a pie chart – nothing fancy.

One issue I encounter was a limitation of how data measurements are models in JetpackStats. I documented it in code and in CMM-1168: Switch to Double to represent data points. I plan to address it separately.

##Screenshots

I used the existing TopListCard design and structure to represent "Screen Time". It's different form the web, but I think it works. I didn't want to add an ad-hoc card just for this one use-case just yet.

Screenshot 2026-01-28 at 11 43 31 AM Screenshot 2026-01-28 at 11 43 23 AM Screenshot 2026-01-28 at 11 43 13 AM

@kean kean added this to the 26.7 milestone Jan 28, 2026
@kean kean added the Stats label Jan 28, 2026
@dangermattic
Copy link
Collaborator

dangermattic commented Jan 28, 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 force-pushed the task/devices-card branch from e1220f4 to e760e17 Compare January 28, 2026 00:34
@kean kean requested a review from crazytonyli January 28, 2026 00:34
@kean kean force-pushed the task/devices-card branch from e760e17 to 340cb53 Compare January 28, 2026 01:13
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 28, 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 Number30646
VersionPR #25176
Bundle IDcom.jetpack.alpha
Commit4bdaa48
Installation URL4svimrl93lih8
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 28, 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 Number30646
VersionPR #25176
Bundle IDorg.wordpress.alpha
Commit4bdaa48
Installation URL6vjb6lql68u50
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@kean kean marked this pull request as draft January 28, 2026 01:39
@kean
Copy link
Contributor Author

kean commented Jan 28, 2026

There is a bit of an issue with parsing production data - fixing.

@kean kean removed the request for review from crazytonyli January 28, 2026 02:17
@kean kean force-pushed the task/devices-card branch 2 times, most recently from 5dc411c to 5e4d54f Compare January 28, 2026 16:53
@kean kean marked this pull request as ready for review January 28, 2026 16:57
@kean kean force-pushed the task/devices-card branch from 5e4d54f to 4bdaa48 Compare January 28, 2026 17:07
@kean kean requested a review from crazytonyli January 28, 2026 17:08
@sonarqubecloud
Copy link

@kean kean mentioned this pull request Jan 28, 2026
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.

4 participants