-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New design reader bottom sheet - step 2 #11184
New design reader bottom sheet - step 2 #11184
Conversation
You can test the changes on this Pull Request by downloading the APK here. |
…10887-new-design-reader-bottom-sheet-step2
…10887-new-design-reader-bottom-sheet-step2 # Conflicts: # WordPress/src/main/res/values/styles.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one looks good to me. I have no changes specific to this PR
…10887-new-design-reader-bottom-sheet-step2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well! I have just a couple of minor suggestions :)
} | ||
it.setTextColor(ContextCompat.getColor( | ||
parent.context, | ||
if (filter.isSelected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super minor, but can we add curly brackets to if/else here? It could prevent some silly issues in the future :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍changed here f97bbf9
|
||
val blog = site.blog | ||
|
||
this.itemUrl.text = if (blog.hasUrl()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can switch to when
for better readability here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL! I was actually not aware of this when
without parameter form 😬, thanks 😊! Changed here f97bbf9
Hey @khaykov ! Thanks for looking into this one 🙇♂️! I made the changes based on your comments. Let me know if it's ok 😊. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks for the changes! 👍
Fixes #11009 and partially #10887
NOTE: this requires PR #11183 merged first into develop
Notes
The feature is active in the zalpha flavor.
This PR covers the following:
SITES
section to present the list items with both the site title and a URL. In this way it's easier to manage cases where the site title is empty or equal since the match and selection is done on both.To test
Test case 1: SITES tab shows site title and URL
Test case 2: SITES tab shows and select Untitled sites correctly
Test case 3
Since we made modifications to the
add_content_bottom_sheet
that is used also in the main create fab bottom sheet, makes sense to tap on the main FAB in My Site and smoke test the bottom sheet.PR submission checklist:
note: not adding accessibility here since there will be a dedicated audit of the feature to close ticket #10962
RELEASE-NOTES.txt
if necessary.