-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Jetpack connection UI #22079
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
base: trunk
Are you sure you want to change the base?
Jetpack connection UI #22079
Conversation
…nto feature/jetpack-connection-ui
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22079-b78c454 | |
Commit | b78c454 | |
Direct Download | jetpack-prototype-build-pr22079-b78c454.apk |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22079-b78c454 | |
Commit | b78c454 | |
Direct Download | wordpress-prototype-build-pr22079-b78c454.apk |
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 introduces a new Jetpack connection UI that guides users through the process of connecting their self-hosted WordPress site to Jetpack. The implementation includes a step-by-step connection flow with visual status indicators and error handling.
- Adds a complete Jetpack connection UI with ViewModel, Activity, and Compose screen
- Implements a multi-step connection process with status tracking and error handling
- Provides user feedback through animated UI states and confirmation dialogs
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
File | Description |
---|---|
strings.xml | Adds localized strings for the Jetpack connection UI |
WPMainActivity.java | Temporarily launches the new Jetpack connection activity for testing |
JetpackConnectionViewModel.kt | Implements the connection logic and state management |
JetpackConnectionScreen.kt | Provides the Compose UI for the connection flow |
JetpackConnectionActivity.kt | Activity that hosts the connection screen |
ScreenWithTopAppBarM3.kt | Reusable Compose component for screens with top app bars |
AndroidManifest.xml | Registers the new JetpackConnectionActivity |
...Press/src/main/java/org/wordpress/android/ui/jetpackconnection/JetpackConnectionViewModel.kt
Outdated
Show resolved
Hide resolved
...Press/src/main/java/org/wordpress/android/ui/jetpackconnection/JetpackConnectionViewModel.kt
Outdated
Show resolved
Hide resolved
...Press/src/main/java/org/wordpress/android/ui/jetpackconnection/JetpackConnectionViewModel.kt
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/jetpackconnection/JetpackConnectionScreen.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/jetpackconnection/JetpackConnectionScreen.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/main/WPMainActivity.java
Show resolved
Hide resolved
…nto feature/jetpack-connection-ui
|
Closes #CMM-641
This PR implements the UI for the Rest-based Jetpack connection flow. Note there is no networking logic here - that will come later - and there are a number of
TODOs
. This is being merged into a feature branch so end users won't see it until the feature branch is eventually merged.For now, when the main activity starts I automatically show the connection flow. This will be removed before merging.
To test
JetpackConnectionViewModel.startStep
so that one of the steps fails (code snippet below), verify that it fails and a Retry button appears, and when tapped the button restarts the failed step.ui.mp4