-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Jetpack REST connection: Finalize #22133
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
Conversation
…ir is an HTTP status code
…ir is an HTTP status code
…-Android into feature/jetpack-connect-install
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #22133 +/- ##
=======================================
Coverage 39.43% 39.43%
=======================================
Files 2149 2149
Lines 101872 101872
Branches 15604 15604
=======================================
Hits 40177 40177
Misses 58126 58126
Partials 3569 3569 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…-Android into feature/jetpack-connect-finalize Conflicts: WordPress/src/main/java/org/wordpress/android/ui/jetpackrestconnection/JetpackConnector.kt WordPress/src/main/java/org/wordpress/android/ui/jetpackrestconnection/JetpackRestConnectionScreen.kt WordPress/src/main/java/org/wordpress/android/ui/jetpackrestconnection/JetpackRestConnectionViewModel.kt WordPress/src/main/res/values/strings.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements the final step of the Jetpack REST connection flow, enabling stats module activation upon successful connection. It also restricts the experimental feature to Jetpack-only builds and adds support for initiating the connection flow from the notifications tab.
- Implements the finalize step that activates the stats module after Jetpack connection
- Updates experimental feature visibility to only show in Jetpack app debug builds
- Adds support for starting the connection flow from the notifications screen
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
JetpackStoreTest.kt | Updates test mocks to use isActiveModuleEnabled method instead of string parsing |
JetpackStore.kt | Replaces string-based module checking with dedicated method call |
strings.xml | Removes "(Simulated)" from setup title and adds error message for stats activation |
StatsConnectJetpackActivity.kt | Adds logic to start REST connection flow when available, with Jetpack app restriction |
ExperimentalFeaturesViewModel.kt | Restricts Jetpack REST connection feature to Jetpack app debug builds only |
NotificationsListFragment.kt | Adds support for starting Jetpack REST connection from notifications tab |
JetpackStatsModuleHelper.kt | New helper class for activating and verifying stats module activation |
JetpackRestConnectionViewModel.kt | Implements finalize step, connection source tracking, and stats module activation |
JetpackRestConnectionScreen.kt | Adds support for Done button and stats activation error display |
JetpackRestConnectionActivity.kt | Adds connection source parameter handling and Done button functionality |
JetpackConnector.kt | Minor formatting change (trailing comma) |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...ess/src/main/java/org/wordpress/android/ui/jetpackrestconnection/JetpackStatsModuleHelper.kt
Show resolved
Hide resolved
...ess/src/main/java/org/wordpress/android/ui/jetpackrestconnection/JetpackStatsModuleHelper.kt
Show resolved
Hide resolved
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR LGTM! The new interface and UX look neat, nice job!
I left a comment about the AP reset state, but not really connected to this PR, as it can be achieved as a separate one in the ongoing project.
Hmm, I'm simply calling |
Hmm yes. I can have a look. |
This PR does the following:
Note that after completing successfully and returning to My Site, you're asked for your application password again. I'm not sure why this is happening but I'll defer resolving this for a future PR (and I'm open to suggestions!).
Test A
Test B