Skip to content

Issue/11128 page label colors - #11280

Merged
jd-alexander merged 9 commits into
feature/master-pages-offline-supportfrom
issue/11128-page-label-colors
Feb 12, 2020
Merged

Issue/11128 page label colors#11280
jd-alexander merged 9 commits into
feature/master-pages-offline-supportfrom
issue/11128-page-label-colors

Conversation

@malinajirka

@malinajirka malinajirka commented Feb 11, 2020

Copy link
Copy Markdown
Contributor

Fixes #11128

Review instructions:

  1. Review this PR
  2. Wait until Issue/11133 update page item labels #11278 gets merged
  3. Update the target branch with feature/master-pages-offline-support
  4. Remove the "Not ready for merge" label
  5. Merge this PR

Adds colors to page list items. The business logic was copy-pasted from PostListItemUiStateHelper.

I decided not to add any unit tests at the moment. The main reason is that I'm still considering rewriting this logic in both post-page list from scratch since it feels a bit weird that we evaluate the state of the PostModel twice -> labels + label colors.

To test:

PR submission checklist:

  • 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

peril-wordpress-mobile Bot commented Feb 11, 2020

Copy link
Copy Markdown

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

…age-label-colors

# Conflicts:
#	WordPress/src/main/java/org/wordpress/android/viewmodel/pages/CreatePageListItemLabelsUseCase.kt

@jd-alexander jd-alexander left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good Jirka! LGTM once the other PR is merged!

@jd-alexander
jd-alexander changed the base branch from issue/11133-update-page-item-labels to feature/master-pages-offline-support February 12, 2020 23:03
@jd-alexander
jd-alexander merged commit 4aa58c9 into feature/master-pages-offline-support Feb 12, 2020
@malinajirka
malinajirka deleted the issue/11128-page-label-colors branch February 13, 2020 09:24
@malinajirka malinajirka modified the milestones: 14.3, 14.6 Mar 23, 2020
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.

2 participants