Skip to content
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

Merged
merged 9 commits into from
Feb 3, 2020

Conversation

develric
Copy link
Contributor

@develric develric commented Jan 29, 2020

Fixes #11009 and partially #10887

NOTE: this requires PR #11183 merged first into develop

image image

Notes

The feature is active in the zalpha flavor.

This PR covers the following:

  1. Modifies the 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.
  2. Fixes a possible issue with the recycler view recycling (see this comment for more context)

To test

Test case 1: SITES tab shows site title and URL

  • Follow some sites and tags if not already
  • Open the filter bottom sheet
  • Check that the list of SITES shows both site title and url
  • Check that the list of TAGS shows only tag title
  • Smoke test the two lists checking the correct filter is selected and correct posts are loaded

Test case 2: SITES tab shows and select Untitled sites correctly

  • Follow at least a couple of sites with empty title (maybe not the only way to do this but you can set it empty from the web page settings)
  • Open the bottom sheet and select one of the untitled site
  • check that the correct posts load in the reader
  • open the bottom sheet again and check that only the desired untitled site is highlighted as selected whereas the other one is not selected
  • switch between the two untitled sites and check posts are correctly loaded
  • smoke test selecting other sites and tags

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

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jan 29, 2020

You can test the changes on this Pull Request by downloading the APK here.

@develric develric marked this pull request as ready for review January 29, 2020 10:51
@develric develric added the [Status] Needs Design Review A designer needs to sign off on the implemented design. label Jan 29, 2020
…10887-new-design-reader-bottom-sheet-step2

# Conflicts:
#	WordPress/src/main/res/values/styles.xml
Copy link

@osullivanchris osullivanchris left a 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

@develric develric added [Status] Needs Code Review and removed [Status] Needs Design Review A designer needs to sign off on the implemented design. labels Jan 31, 2020
Copy link
Member

@khaykov khaykov left a 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)
Copy link
Member

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 :)

Copy link
Contributor Author

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()) {
Copy link
Member

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?

Copy link
Contributor Author

@develric develric Feb 2, 2020

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

@develric
Copy link
Contributor Author

develric commented Feb 2, 2020

Hey @khaykov ! Thanks for looking into this one 🙇‍♂️! I made the changes based on your comments. Let me know if it's ok 😊.

@develric develric requested a review from khaykov February 2, 2020 21:13
Copy link
Member

@khaykov khaykov left a 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! 👍

@khaykov khaykov merged commit 15f014b into develop Feb 3, 2020
@khaykov khaykov deleted the issue/10887-new-design-reader-bottom-sheet-step2 branch February 3, 2020 00:08
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.

IA Reader filter bottom sheet: manage untitled sites visualization and selection
3 participants