Skip to content

Merge release/26.8 into trunk#22943

Merged
jkmassel merged 26 commits into
trunkfrom
merge/release-26.8-into-trunk
Jun 4, 2026
Merged

Merge release/26.8 into trunk#22943
jkmassel merged 26 commits into
trunkfrom
merge/release-26.8-into-trunk

Conversation

@jkmassel

@jkmassel jkmassel commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Routine backmerge of release/26.8 into trunk.

Summary

Conflict resolution

24 localized strings.xml files conflicted on experimental_rs_post_list / experimental_rs_post_list_description. These were resolved to the trunk side (strings dropped), which is intentional:

  • Trunk removed the experimental "RS post list" feature flag in Remove new post list experimental feature flag #22925 (trunk-only — never applied to release/26.8).
  • The base WordPress/src/main/res/values/strings.xml and ExperimentalFeatures.kt auto-merged to trunk's state (feature absent), so the localized files must match.
  • Confirmed the only divergence across all 24 files was these two strings — taking trunk drops nothing else.

Keeping the release side would have re-introduced orphaned translations for a feature that no longer exists on trunk (and tripped ExtraTranslation lint).

Test plan

  • CI green

wpmobilebot and others added 26 commits May 28, 2026 21:35
…#22916)

AGP 9's R8 strips the @com.sun.jna.Structure.FieldOrder annotation that
wordpress-rs JNA bindings read reflectively at runtime, causing a launch
crash in minified release builds. Keep the JNA classes, UniFFI bindings,
and the annotation so native struct layouts still resolve.
* Update WordPress `PlayStoreStrings.po` for version 26.8

* Update Jetpack `PlayStoreStrings.po` for version 26.8
* Update editorialized release notes

* Update WordPress `PlayStoreStrings.po` for version 26.8

* Update Jetpack `PlayStoreStrings.po` for version 26.8

---------

Co-authored-by: Tony Li <tony.li@automattic.com>
The 26.8 translation sync introduced a doubled backslash (\\") in the
Czech confirm_remove_site string. Android reads \\ as an escaped literal
backslash, which hides the %s placeholder from lint, so StringFormatMatches
fails: ChooseSiteActivity supplies 1 argument but the string is seen as
requiring 0.

Use a single-backslash escape (\") to match the English source and every
other locale.
term_delete_confirmation_message carried the same doubled backslash (\\")
as confirm_remove_site, hiding its %1$s placeholder so lint sees 0 args
while TermsDataViewActivity supplies 1 (StringFormatMatches). It was the
second such error; lint prints only the first failure, so it surfaced
once confirm_remove_site was fixed.

Also fix the two identical siblings delete_menu_item_confirmation_message
and delete_menu_confirmation_message, which share the defect.

Verified locally: :WordPress:lintWordpressRelease BUILD SUCCESSFUL, 0 errors.
* Update release notes

* Update WordPress `PlayStoreStrings.po` for version 26.8

* Update Jetpack `PlayStoreStrings.po` for version 26.8

---------

Co-authored-by: Tony Li <tony.li@automattic.com>
* Fix false connectivity banner on private Atomic sites

Editor capability detection on Atomic sites probes the direct host via
unauthenticated REST API discovery (added in #22883). Private Atomic
hosts gate anonymous requests, so discovery fails and the My Site
"Unable to connect to your site" banner appears even though the site is
reachable. Fall back to an authenticated app-password probe against the
same host when discovery fails and credentials exist.

* Log authenticated direct-host probe failures for diagnosability

The authenticated app-password fallback previously returned a silent
`false` on a non-success response, and the no-credentials path was also
silent. Log both (mirroring the discovery-failure log) so a recurrence
of the connectivity banner can be diagnosed from AppLog rather than
being indistinguishable from "discovery failed, no creds".

* Suppress the connectivity banner while the app password is being minted

On first login an Atomic site's application password is minted
asynchronously on the My Site screen, so the connectivity capability
fetch can race ahead of it and fail purely for lack of credentials —
flashing a false "unable to connect" banner that clears on the next
refresh. Treat a credential-less fetch as pending rather than a
connection failure, mirroring the existing offline suppression; the
application-password card already owns the no-credentials state.

* Re-detect editor capabilities when an app password is established

The connectivity banner's capability fetch and the application-password
mint both run on the My Site screen with no ordering, so on first login
the fetch loses the race and capability flags aren't detected until the
next resume/refresh. Add an app-scoped CredentialsChangedNotifier that
both credential-establishment paths (headless mint and interactive
login) emit to, and have the connectivity slice re-run detection on it —
re-reading a fresh site so it observes the just-persisted credentials.
This also closes the asymmetry where only the interactive path announced
credential changes globally.

* Hoist connectivity banner suppression into a named flag

The four-way suppression condition tripped detekt's ComplexCondition
threshold once the pending-credentials term was added. Lift it into a
named `suppressBanner` flag — clearer intent, and out of the
if-condition detekt inspects. No behavior change.

* Surface the connectivity banner when the app-password mint fails

The pending-credentials suppression also hid the banner when the headless
mint *terminally* failed — and the application-password card can't render
for private Atomic sites either (its authorize-URL discovery hits the same
gated host), so the user was left with a broken site and no signal at all.

Track terminal mint failure in the renamed ApplicationPasswordMonitor (was
CredentialsChangedNotifier) and suppress only while provisioning is
genuinely in flight; once the mint fails, surface the banner. The monitor
also wakes capability detection on failure so the banner appears without
waiting for the next resume/refresh.

* Revert "Surface the connectivity banner when the app-password mint fails"

This reverts commit 357fd82.

The terminal-failure surfacing called onMintFailed on every non-success,
including transient failures, so a transient first-login mint failure
latched hasMintFailed and showed the false connectivity banner this PR
set out to suppress. Revert to the pending-suppression behavior; the
durable single-source-of-truth redesign is tracked in #22942.
Resolve the 24 strings.xml conflicts to the trunk side: trunk removed the experimental 'RS post list' feature flag in #22925, so the experimental_rs_post_list strings are intentionally dropped (matching the auto-merged base strings.xml and ExperimentalFeatures.kt). Net backmerge payload to trunk is the connectivity-banner fix #22926.
@dangermattic

dangermattic commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator
1 Message
📖 This PR has the Releases label: some checks will be skipped.

Generated by 🚫 Danger

@jkmassel jkmassel added the Releases Label related to managing releases label Jun 4, 2026
@wpmobilebot

Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress Android by scanning the QR code below to install the corresponding build.

App NameWordPress Android
Build TypeDebug
Versionpr22943-d086608
Build Number1493
Application IDorg.wordpress.android.prealpha
Commitd086608
Installation URL3enghh05klmtg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@jkmassel jkmassel enabled auto-merge (squash) June 4, 2026 17:39
@wpmobilebot

Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack Android by scanning the QR code below to install the corresponding build.

App NameJetpack Android
Build TypeDebug
Versionpr22943-d086608
Build Number1493
Application IDcom.jetpack.android.prealpha
Commitd086608
Installation URL487b6v5taa6pg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.08333% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.33%. Comparing base (421d550) to head (d086608).

Files with missing lines Patch % Lines
...id/ui/accounts/login/CredentialsChangedNotifier.kt 0.00% 7 Missing ⚠️
...s/android/repositories/EditorSettingsRepository.kt 92.00% 1 Missing and 1 partial ⚠️
...nnectivity/SiteConnectivityBannerViewModelSlice.kt 90.90% 0 Missing and 1 partial ⚠️
...fluxc/network/rest/wpapi/rs/WpApiClientProvider.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            trunk   #22943      +/-   ##
==========================================
+ Coverage   37.32%   37.33%   +0.01%     
==========================================
  Files        2320     2321       +1     
  Lines      124717   124757      +40     
  Branches    16953    16961       +8     
==========================================
+ Hits        46547    46576      +29     
- Misses      74408    74417       +9     
- Partials     3762     3764       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jkmassel jkmassel merged commit d973e15 into trunk Jun 4, 2026
24 checks passed
@jkmassel jkmassel deleted the merge/release-26.8-into-trunk branch June 4, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Releases Label related to managing releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants