[JP Social] Update UI for Post Settings screen#18708
Conversation
|
| App Name | WordPress |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr18708-4eab6db | |
| Commit | 4eab6db | |
| Direct Download | wordpress-prototype-build-pr18708-4eab6db.apk |
|
| App Name | Jetpack |
|
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr18708-4eab6db | |
| Commit | 4eab6db | |
| Direct Download | jetpack-prototype-build-pr18708-4eab6db.apk |
d67b425 to
827b7a4
Compare
| onConnectProfilesCLick: () -> Unit, | ||
| ) { | ||
| Column { | ||
| if (postSocialConnectionList.isNotEmpty()) { |
There was a problem hiding this comment.
This decision will be moved to the ViewModel in another PR.
Generated by 🚫 dangerJS |
thomashorta
left a comment
There was a problem hiding this comment.
Thanks for the PR, Renan!
I added some minor comments and a concern that might require changes.
| connection = connection, | ||
| onSharingChange = {},//TODO | ||
| ) | ||
| Divider() |
There was a problem hiding this comment.
💡 Do we want this trailing Divider for all items, including the last one? In case we don't, we can use the index to avoid showing for the last one, wdyt?
In case we want for all items then we might want to use forEach instead of forEachIndexed.
There was a problem hiding this comment.
...ain/java/org/wordpress/android/ui/posts/EditPostSettingsJetpackSocialContainerComposeView.kt
Outdated
Show resolved
Hide resolved
...s/src/main/java/org/wordpress/android/ui/posts/EditPostSettingsJetpackSocialContainerView.kt
Outdated
Show resolved
Hide resolved
...s/src/main/java/org/wordpress/android/ui/posts/EditPostSettingsJetpackSocialContainerView.kt
Outdated
Show resolved
Hide resolved
|
Thanks for the review, @thomashorta . I've updated the code and replied to the comments. Please let me know if it makes sense 👍 |
thomashorta
left a comment
There was a problem hiding this comment.
Hey, thanks for renaming the Compose and View files! 🙇
I just added a comment about the modifier parameter which should be quick to fix.



Part of #18571
To test:
Nothing to test yet, except the UI. Please run
EditPostSettingsJetpackSocialContainerConnectionsListViewPreviewandEditPostSettingsJetpackSocialNoConnectionsPreview.Regression Notes
Potential unintended areas of impact
None.
What I did to test those areas of impact (or what existing automated tests I relied on)
--
What automated tests I added (or what prevented me from doing so)
--
PR submission checklist:
RELEASE-NOTES.txtif necessary.UI Changes testing checklist: