Skip to content

RS Post Settings: Device gallery as featured image source#22690

Draft
nbradbury wants to merge 4 commits intofeature/rsposts-settings-performancefrom
feature/rsposts-device-featured-image
Draft

RS Post Settings: Device gallery as featured image source#22690
nbradbury wants to merge 4 commits intofeature/rsposts-settings-performancefrom
feature/rsposts-device-featured-image

Conversation

@nbradbury
Copy link
Contributor

@nbradbury nbradbury commented Mar 13, 2026

Description

Adds the ability to pick a featured image from the device gallery (in addition to the existing WP Media Library option). When a device image is selected, it is uploaded to the site's media library and then set as the featured image.

Key changes:

  • Split featured image picker into two options: "Choose from WP Media" and "Choose from device" via a dropdown menu
  • Upload flow: copies the selected URI to a temp file, uploads it via MediaCreateParams, and sets the returned media ID as the featured image

Testing instructions

Featured image from WP Media:

  1. Open a post's RS settings (requires experimental feature flag)
  2. Tap the edit button on the featured image area
  3. Select "Choose from WP Media"
  • Verify the WP Media picker opens
  1. Select an image
  • Verify the featured image updates

Featured image from device:

  1. Open a post's RS settings
  2. Tap the edit button on the featured image area
  3. Select "Choose from device"
  • Verify the device media picker opens
  1. Select a photo
  • Verify a loading state appears while uploading
  • Verify the featured image updates after upload completes

Remove featured image:

  1. With a featured image set, tap the edit button
  2. Select "Remove"
  • Verify the featured image is removed
featured.mp4

nbradbury and others added 3 commits March 13, 2026 11:53
Allow choosing a featured image from the device gallery in addition
to the WP Media Library. Device picks are copied to a temp file and
uploaded via the wordpress-rs media API before being set as the
featured image.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…e options

Replace the single "Change" menu item with "Choose from WP Media" and
"Choose from device" options in the featured image dropdown. The placeholder
(no image set) now shows the same dropdown menu instead of jumping straight
to the picker. Each option launches its own dedicated picker without
confusing source-switching toolbars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dangermattic
Copy link
Collaborator

dangermattic commented Mar 13, 2026

1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@nbradbury nbradbury changed the base branch from trunk to feature/rsposts-settings-performance March 13, 2026 17:17
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 13, 2026

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
Versionpr22690-9b6db13
Build Number1487
Application IDorg.wordpress.android.prealpha
Commit9b6db13
Installation URL6gm5keta1gni0
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Mar 13, 2026

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
Versionpr22690-9b6db13
Build Number1487
Application IDcom.jetpack.android.prealpha
Commit9b6db13
Installation URL450tte804p3s8
Note: Google Login is not supported on these builds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 1.00000% with 99 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.59%. Comparing base (78ec06d) to head (9b6db13).

Files with missing lines Patch % Lines
...ress/android/ui/postsrs/PostRsSettingsViewModel.kt 1.72% 57 Missing ⚠️
...android/ui/postsrs/screens/PostRsSettingsScreen.kt 0.00% 40 Missing ⚠️
...dpress/android/ui/postsrs/PostRsSettingsUiState.kt 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                           Coverage Diff                            @@
##           feature/rsposts-settings-performance   #22690      +/-   ##
========================================================================
- Coverage                                 37.61%   37.59%   -0.03%     
========================================================================
  Files                                      2272     2272              
  Lines                                    118381   118454      +73     
  Branches                                  16367    16373       +6     
========================================================================
+ Hits                                      44531    44532       +1     
- Misses                                    70200    70272      +72     
  Partials                                   3650     3650              

☔ View full report in Codecov by Sentry.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants