task: address PR #339 review feedback#400
Merged
dcalhoun merged 11 commits intojkmassel/wordpress-com-supportfrom Mar 24, 2026
Merged
task: address PR #339 review feedback#400dcalhoun merged 11 commits intojkmassel/wordpress-com-supportfrom
dcalhoun merged 11 commits intojkmassel/wordpress-com-supportfrom
Conversation
…n Android Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Restore the guard from ba7c9c2 that was lost during merge conflict resolution. The guard should check only `themeStyles`, not both `plugins` and `themeStyles`, to avoid 404s on sites that support plugins but not the editor settings endpoint. Ref: ba7c9c2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restore the Network Fallback picker UI, networkFallbackMode property, offline error handling, and buildOfflineConfiguration helper that were lost during merge conflict resolution. Adapted from ConfiguredEditor to Account type to match the current branch's data model. Ref: f5c91cc Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Align editorAssets with editorSettings by using a plain property instead of a conditional spread. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The toBeHidden() assertion passes vacuously because the plugin load
failure notice never renders when plugins are enabled without
editorAssets — loadEditorAssets() returns {} without error, so
pluginLoadFailed is false. The toBeVisible() check for the editor
already confirms successful load.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The basicFetch export in src/utils/fetch.js has no remaining importers after the bridge was updated to use native communication instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add documentation for creating a WordPress.com application for OAuth and configuring the demo apps with the required credentials, including the required Redirect URL value. Ref: https://developer.wordpress.com/docs/api/oauth2/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update from branch revision (1190-c2b404d) to trunk revision (dc86c7a) as required before merging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The outdated structure led to build errors after updating the wordpress-rs revision.
dcalhoun
commented
Mar 24, 2026
Comment on lines
+35
to
+39
| applicationVariants.configureEach { | ||
| mergeAssetsProvider.configure { | ||
| dependsOn(copyOAuthCredentials) | ||
| } | ||
| } |
Member
Author
There was a problem hiding this comment.
In my local testing, while the file was present in the project root, Android Studio builds failed as the OAuth credentials file was perpetually missing without this addition.
| */ | ||
| suspend fun fetchEditorSettings(): EditorSettings { | ||
| if (!configuration.plugins && !configuration.themeStyles) { | ||
| if (!configuration.themeStyles) { |
Comment on lines
-102
to
-106
| await expect( | ||
| page.getByText( | ||
| 'Loading plugins failed, using default editor configuration.' | ||
| ) | ||
| ).toBeHidden(); |
Member
Author
There was a problem hiding this comment.
Remove a false-positive. A notice is no longer displayed at all as a request failure does not occur, as we no longer use a network request to retrieve the editor assets.
| Toggle("Enable Native Inserter", isOn: $viewModel.enableNativeInserter) | ||
| Toggle("Enable Network Logging", isOn: $viewModel.enableNetworkLogging) | ||
|
|
||
| Picker("Network Fallback", selection: $viewModel.networkFallbackMode) { |
Member
Author
There was a problem hiding this comment.
Reinstate offline editor experience improvements from f5c91cc.
Comment on lines
+198
to
+199
| src/translations/* | ||
| !src/translations/.gitkeep |
| .wp-env.credentials.json | ||
| wp-env/mu-plugins/* | ||
| !wp-env/mu-plugins/gutenbergkit-cors.php | ||
| !wp-env/mu-plugins/gutenbergkit-jetpack-blocks.php |
Member
Author
There was a problem hiding this comment.
Reinstate tracking local wp-env configuration from aa8eaf1.
dcalhoun
added a commit
that referenced
this pull request
Mar 24, 2026
…339) * feat: add WordPress.com OAuth support to Android demo app Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: add WordPress.com OAuth support to iOS demo app Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: inject editor assets via native config and fix API path handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: resolve ambiguous Paragraph button match in E2E tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * task: address PR #339 review feedback (#400) * chore: ensure OAuth credentials are copied before assets are merged on Android Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: restore translation files .gitignore pattern Restore the gitignore pattern from 3079431 that was lost during merge conflict resolution. This ensures the translations directory always exists (via .gitkeep) to avoid Node.js module load errors. Ref: 3079431 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: restore wp-env mu-plugin .gitignore exception Restore the gitignore exception from aa8eaf1 that was lost during merge conflict resolution. This ensures the custom Jetpack blocks MU plugin is tracked while other MU plugins are excluded. Ref: aa8eaf1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: restore editor settings guard condition Restore the guard from ba7c9c2 that was lost during merge conflict resolution. The guard should check only `themeStyles`, not both `plugins` and `themeStyles`, to avoid 404s on sites that support plugins but not the editor settings endpoint. Ref: ba7c9c2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: restore network fallback picker and offline handling Restore the Network Fallback picker UI, networkFallbackMode property, offline error handling, and buildOfflineConfiguration helper that were lost during merge conflict resolution. Adapted from ConfiguredEditor to Account type to match the current branch's data model. Ref: f5c91cc Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: simplify editorAssets config in E2E helper Align editorAssets with editorSettings by using a plain property instead of a conditional spread. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test: remove false-positive toBeHidden assertion in E2E test The toBeHidden() assertion passes vacuously because the plugin load failure notice never renders when plugins are enabled without editorAssets — loadEditorAssets() returns {} without error, so pluginLoadFailed is false. The toBeVisible() check for the editor already confirms successful load. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: remove unused basicFetch module The basicFetch export in src/utils/fetch.js has no remaining importers after the bridge was updated to use native communication instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add WordPress.com OAuth setup documentation Add documentation for creating a WordPress.com application for OAuth and configuring the demo apps with the required credentials, including the required Redirect URL value. Ref: https://developer.wordpress.com/docs/api/oauth2/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * build: update wordpress-rs to trunk revision Update from branch revision (1190-c2b404d) to trunk revision (dc86c7a) as required before merging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * task: Use latest WpApiError type The outdated structure led to build errors after updating the wordpress-rs revision. --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: update Android demo app for wordpress-rs API changes Adapt to breaking changes in wordpress-rs (dc86c7a6): - WpLoginClient and WpComApiClient now require NetworkAvailabilityProvider - KeystorePasswordTransformer now requires applicationName parameter Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: add OkHttp as direct dependency for Android demo app Resolves Kotlin compiler warnings about accessing the transitive Interceptor class from wordpress-rs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: regenerate Detekt baseline after trunk merge The OAuth changes in AuthenticationManager.kt and MainActivity.kt altered function signatures that no longer matched the baseline entries introduced by the Detekt PR in trunk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: consolidate NetworkAvailabilityProvider Move the single NetworkAvailabilityProvider instance to GutenbergKitApplication, matching the existing pattern used for AccountRepository. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: skip OAuth asset registration when credentials file is missing Only register the copyOAuthCredentials task and asset source directory when wp_com_oauth_credentials.json exists. This avoids a Gradle task dependency validation error in CI where the file is absent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: David Calhoun <github@davidcalhoun.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Addresses the review feedback on #339, fixing merge conflict regressions, cleaning up unused code, and adding documentation.
Why?
Several trunk changes were lost during merge conflict resolution in #339, and reviewers identified cleanup opportunities.
How?
.gitignorepatterns for translation files (from 3079431) and wp-env mu-plugin (from aa8eaf1)RESTAPIRepository.kteditor settings guard and its test assertions (from ba7c9c2)AccounttypeeditorAssetsconfig spread in E2E helpertoBeHiddenE2E assertionbasicFetchmodule (src/utils/fetch.js)docs/code/wpcom-oauth.md)wordpress-rsto trunk revisionTesting Instructions
make test-androidmake test-swift-package.gitignorematches trunk for translation files and wp-env mu-plugin entries