Skip to content

Conversation

dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Aug 22, 2025

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.

@dcalhoun dcalhoun added [Type] Task Gutenberg Editing and display of Gutenberg blocks. labels Aug 22, 2025
@dcalhoun dcalhoun requested a review from Copilot August 22, 2025 23:59
Copy link
Contributor

@Copilot Copilot AI left a 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.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Aug 23, 2025

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr22165-83d87a2
Commit83d87a2
Direct Downloadwordpress-prototype-build-pr22165-83d87a2.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Aug 23, 2025

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr22165-83d87a2
Commit83d87a2
Direct Downloadjetpack-prototype-build-pr22165-83d87a2.apk
Note: Google Login is not supported on these builds.

Copy link
Contributor

@Copilot Copilot AI left a 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.

@dcalhoun dcalhoun force-pushed the refactor/improve-gutenberg-kit-configuration-organization branch from 395d2d8 to 1e67702 Compare August 25, 2025 13:55
@dcalhoun dcalhoun changed the base branch from trunk to refactor/remove-unused-jetpack-globals August 25, 2025 13:55
@dcalhoun dcalhoun force-pushed the refactor/improve-gutenberg-kit-configuration-organization branch from 1e67702 to 6031322 Compare August 25, 2025 14:18
@dcalhoun dcalhoun marked this pull request as ready for review August 25, 2025 15:17
@dcalhoun dcalhoun requested a review from nbradbury August 25, 2025 15:19
@nbradbury nbradbury self-assigned this Aug 25, 2025
Copy link
Contributor

@nbradbury nbradbury left a comment

Choose a reason for hiding this comment

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

Looks good! :shipit:

@dcalhoun dcalhoun added this to the 26.2 milestone Aug 25, 2025
Base automatically changed from refactor/remove-unused-jetpack-globals to trunk August 25, 2025 21:20
@buildkite-limited-access buildkite-limited-access bot requested a review from a team as a code owner August 25, 2025 21:20
@buildkite-limited-access buildkite-limited-access bot requested review from adalpari and removed request for a team August 25, 2025 21:20
@dcalhoun dcalhoun force-pushed the refactor/improve-gutenberg-kit-configuration-organization branch from 6031322 to 83d87a2 Compare August 25, 2025 21:21
@dcalhoun dcalhoun enabled auto-merge (squash) August 25, 2025 21:21
Copy link

@dcalhoun dcalhoun merged commit 64caeb1 into trunk Aug 25, 2025
24 of 26 checks passed
@dcalhoun dcalhoun deleted the refactor/improve-gutenberg-kit-configuration-organization branch August 25, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks. [Type] Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants