Skip to content

Stats: Enable by default, add announcement#25411

Merged
crazytonyli merged 2 commits intorelease/26.8from
task/add-stats-anouncement
Mar 22, 2026
Merged

Stats: Enable by default, add announcement#25411
crazytonyli merged 2 commits intorelease/26.8from
task/add-stats-anouncement

Conversation

@kean
Copy link
Contributor

@kean kean commented Mar 19, 2026

Add a simple announcement screen. Shows once. Enables the flag – use can still opt-out.

Alternatives Considered: using "Mobile Announce" tool (would've required showing to everyone including people who already have the new stats on).

Screen.Recording.2026-03-20.at.11.41.51.AM.mov

@kean kean added this to the 26.8 milestone Mar 19, 2026
@kean kean added the Stats label Mar 19, 2026
@kean kean force-pushed the task/add-stats-anouncement branch from 1348cc2 to 4094682 Compare March 19, 2026 17:51
@kean kean requested a review from crazytonyli March 19, 2026 17:52
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 19, 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 Number31667
VersionPR #25411
Bundle IDorg.wordpress.alpha
Commitb5a0c4c
Installation URL784eolqu96u1g
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 Mar 19, 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 Number31667
VersionPR #25411
Bundle IDcom.jetpack.alpha
Commitb5a0c4c
Installation URL6htutg3ifbo18
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

}
let hostingController = UIHostingController(rootView: view)
viewController.present(hostingController, animated: true) {
UserDefaults.standard.set(true, forKey: hasShownKey) // TEMP:
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the // TEMP?

Task { @MainActor in
await overlaysCoordinator.presentOverlayIfNeeded(in: self)
if !isReaderAppModeEnabled {
NewStatsAnnouncementPresenter.presentIfNeeded(in: self, blog: blog)
Copy link
Contributor

Choose a reason for hiding this comment

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

Will these two modal conflict with each other, which would crash the app?

Copy link
Contributor Author

@kean kean Mar 20, 2026

Choose a reason for hiding this comment

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

I revisited this and simplified the implementation:

  • Remove previous "New Stats" TipKit tip (no longer needed)
  • Moved the new "What's New" sheet to the "Stats" screen. It will be shown for users who are not opt-in yet.

I uploaded a video showing how it works to the PR description.

@wpmobilebot wpmobilebot modified the milestones: 26.8, 26.9 Mar 20, 2026
@wpmobilebot
Copy link
Contributor

Version 26.8 has now entered code-freeze, so the milestone of this PR has been updated to 26.9.

@kean kean force-pushed the task/add-stats-anouncement branch from 4094682 to 0888cb5 Compare March 20, 2026 15:39
@kean kean requested a review from crazytonyli March 20, 2026 15:43
@kean kean modified the milestones: 26.9, 26.8 ❄️ Mar 20, 2026
@dangermattic
Copy link
Collaborator

dangermattic commented Mar 20, 2026

1 Warning
⚠️ This PR is assigned to the milestone 26.8 ❄️. The due date for this milestone has already passed.
Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished.
1 Message
📖 This PR contains changes to RELEASE-NOTES.txt.
Note that these changes won't affect the final version of the release notes as this version is in code freeze.
Please, get in touch with a release manager if you want to update the final release notes.

Generated by 🚫 Danger

@kean kean changed the base branch from trunk to release/26.8 March 20, 2026 15:44
@sonarqubecloud
Copy link

@crazytonyli crazytonyli merged commit c393708 into release/26.8 Mar 22, 2026
27 checks passed
@crazytonyli crazytonyli deleted the task/add-stats-anouncement branch March 22, 2026 21:01
crazytonyli added a commit that referenced this pull request Mar 23, 2026
Co-authored-by: Tony Li <tony.li@automattic.com>
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