RS Post Settings: Read only settings screen#22660
Conversation
Generated by 🚫 Danger |
Project manifest changes for WordPressThe following changes in the --- ./build/reports/diff_manifest/WordPress/wordpressVanillaRelease/base_manifest.txt 2026-03-06 17:27:07.029250180 +0000
+++ ./build/reports/diff_manifest/WordPress/wordpressVanillaRelease/head_manifest.txt 2026-03-06 17:27:12.389252378 +0000
@@ -413,6 +413,10 @@
android:label=""
android:theme="@style/WordPress.NoActionBar" />
<activity
+ android:name="org.wordpress.android.ui.postsrs.PostRsSettingsActivity"
+ android:label=""
+ android:theme="@style/WordPress.NoActionBar" />
+ <activity
android:name="org.wordpress.android.ui.pages.PagesActivity"
android:label="@string/my_site_btn_site_pages"
android:launchMode="singleTop"Go to https://buildkite.com/automattic/wordpress-android/builds/25350/canvas?sid=019cc426-11a1-4530-9bdc-57aa09b21a95, click on the |
Project manifest changes for WordPressThe following changes in the --- ./build/reports/diff_manifest/WordPress/jetpackVanillaRelease/base_manifest.txt 2026-03-06 17:26:57.204578270 +0000
+++ ./build/reports/diff_manifest/WordPress/jetpackVanillaRelease/head_manifest.txt 2026-03-06 17:26:59.634586648 +0000
@@ -607,6 +607,10 @@
android:label=""
android:theme="@style/WordPress.NoActionBar" />
<activity
+ android:name="org.wordpress.android.ui.postsrs.PostRsSettingsActivity"
+ android:label=""
+ android:theme="@style/WordPress.NoActionBar" />
+ <activity
android:name="org.wordpress.android.ui.pages.PagesActivity"
android:label="@string/my_site_btn_site_pages"
android:launchMode="singleTop"Go to https://buildkite.com/automattic/wordpress-android/builds/25350/canvas?sid=019cc426-11a2-479b-92ce-ea7ca7c1e5d6, click on the |
|
|
|
|
Replace raw numeric IDs with actual category/tag names by fetching term data via the wordpress-rs terms API. Adds cached resolution methods to PostRsRestClient following the same pattern used for author names and featured images. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove unused UiState fields (status, format, authorId), consolidate duplicate resolve methods into a single resolveTermNames helper, collapse fetchCategoryNames/fetchTagNames wrappers into a single public fetchTermNames method, and remove unused fillMaxWidth import. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Authors lack edit permissions on terms, causing a 403 error and leaving categories/tags stuck on "Loading". Switch from listWithEditContext to listWithViewContext since we only need the term id and name. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace raw string/list fields with FieldState sealed interface for author, categories, tags, and featured image. Shows a small spinner while resolving and an error message on failure instead of silently getting stuck. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The section header already provides the "Featured image" title, so drop the redundant headline from the loaded image row and render the image full-width with rounded corners. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move dimmed color to supporting text instead of headline so both featured image and excerpt "None" labels have the same size and color. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add consistent "None" placeholder to categories, tags, author, slug, and password empty states matching featured image and excerpt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes detekt LongMethod violation by splitting loadPost into smaller focused methods. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
c80ffae to
45fc880
Compare
Use MutableStateFlow.update {} for atomic read-modify-write on
concurrent async field resolution, and replace hardcoded English
post format strings with existing string resources.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add error recovery with full-screen retry button and tap-to-retry on individual field errors. Render categories and tags as Material3 chips using FlowRow. Add shimmer placeholder and 16:9 aspect ratio for featured image. Make excerpt expandable when text overflows. Add accessibility announcements on loading states and bottom padding. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Enable edge-to-edge display and move the featured image to the top of the screen as a full-bleed hero image with a floating back button. When no featured image is loaded, the screen falls back to the standard TopAppBar layout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Always use the hero layout for Post Settings content. When there is no featured image, show a full-width "Featured image not set." placeholder at the top instead of the inline section. Remove the now-unused FeaturedImageField and FeaturedImageRow composables. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove dead code (unused onClick param, FEATURED_IMAGE retry branch), extract shared AsyncFieldRow composable to deduplicate Empty/Loading/Error handling, and fix Photon URLs to use screen width for hero images. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add missing divider after author field, add accessibility click labels to ErrorFieldRow and ExpandableSettingsRow, and show distinct error message when featured image fails to load. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reuse the shared toLabel() extension in formatStatusLabel() instead of duplicating the PostStatus-to-string-resource mapping. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #22660 +/- ##
==========================================
- Coverage 38.25% 38.01% -0.24%
==========================================
Files 2265 2268 +3
Lines 115992 116726 +734
Branches 16101 16184 +83
==========================================
+ Hits 44368 44371 +3
- Misses 67987 68718 +731
Partials 3637 3637 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
adalpari
left a comment
There was a problem hiding this comment.
Looking good!
Left a note about a different UI not contemplated in the tests, so I'm not sure we are aware of it. Not a blocker.
Strange, that's a wp.com site in that video. Your screenshot looks like an earlier version of this PR. Can you pull changes? |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You are right. Odd that the "Setting options" was visible but showing the old flow, right? Maybe I was in an outdated commit of the branch? I can confirm it works as expected |







Summary
Note: The UI when there is no featured image is temporary. It will eventually be replaced by a button for setting the featured image.
Test plan
Screen_recording_20260306_073647.mp4