Commit 5004b8a
RS Post Settings: Read only settings screen (#22660)
* RS Posts: Resolve category and tag names on Post Settings screen
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>
* RS Posts: Simplify Post Settings code
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>
* RS Posts: Use view context for term name resolution
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>
* RS Posts: Add inline progress and error states for async fields
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>
* RS Posts: Remove duplicate featured image label and show larger image
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>
* RS Posts: Show dimmed "None" for empty featured image and excerpt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* RS Posts: Fix dimmed "None" labels to render consistently
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>
* RS Posts: Show dimmed "None" for all empty settings fields
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>
* RS Posts: Extract fetchPost and resolveAsyncFields from loadPost
Fixes detekt LongMethod violation by splitting loadPost into smaller
focused methods.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* RS Posts: Fix race condition and use localized format labels
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>
* RS Posts: Add Compose previews for Post Settings screen
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* RS Posts: Fix detekt ReturnCount in formatPostFormatLabel
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* RS Posts: Improve Post Settings UX with retry, chips, and shimmer
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>
* RS Posts: Make Post Settings edge-to-edge with hero featured image
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>
* RS Posts: Replace featured image section with top placeholder
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>
* RS Posts: Simplify Post Settings code and fix Photon image sizing
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>
* RS Posts: Fix review issues in Post Settings screen
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>
* RS Posts: Deduplicate status-to-label mapping
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>
* RS Posts: Use ampersand in Date & Time label
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent f9a59e0 commit 5004b8a
File tree
13 files changed
+1420
-51
lines changed- WordPress/src/main
- java/org/wordpress/android/ui
- main
- postsrs
- data
- screens
- res/values
13 files changed
+1420
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
Lines changed: 43 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
476 | 478 | | |
477 | 479 | | |
478 | 480 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | 481 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
518 | 523 | | |
519 | | - | |
520 | | - | |
521 | 524 | | |
522 | 525 | | |
523 | 526 | | |
| |||
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments