-
Notifications
You must be signed in to change notification settings - Fork 1.3k
refactor: Organize GutenbergKit configuration #22165
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
refactor: Organize GutenbergKit configuration #22165
Conversation
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 refactors the GutenbergKit configuration logic by extracting the inline settings creation into a dedicated GutenbergKitSettingsBuilder
object. The refactoring improves code organization by grouping related configuration data into logical classes and adding comprehensive test coverage for the complex plugin enablement logic and authentication flows.
- Extracted configuration logic into a dedicated builder with structured data classes
- Added comprehensive unit tests covering plugin logic, authentication flows, and complete scenarios
- Maintained existing functionality while improving code maintainability
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
GutenbergKitSettingsBuilderTest.kt |
New comprehensive test suite covering all configuration scenarios and edge cases |
GutenbergKitActivity.kt |
Refactored inline configuration logic into structured builder pattern with data classes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
WordPress/src/main/java/org/wordpress/android/ui/posts/GutenbergKitActivity.kt
Outdated
Show resolved
Hide resolved
WordPress/src/main/java/org/wordpress/android/ui/posts/GutenbergKitActivity.kt
Outdated
Show resolved
Hide resolved
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22165-83d87a2 | |
Commit | 83d87a2 | |
Direct Download | wordpress-prototype-build-pr22165-83d87a2.apk |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22165-83d87a2 | |
Commit | 83d87a2 | |
Direct Download | jetpack-prototype-build-pr22165-83d87a2.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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
395d2d8
to
1e67702
Compare
1e67702
to
6031322
Compare
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.
Looks good!
Handle edge cases with missing data.
6031322
to
83d87a2
Compare
|
Description
Organize GutenbergKit settings into logical group. Add automated tests.
Testing instructions
Smoke test various editor functionality-media uploads, language settings, non-core blocks, various site types, etc.