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

Post list filter by status #9233

Merged

Conversation

malinajirka
Copy link
Contributor

Fixes #4693

NOTE: update the target branch to "feature/master-post-filters" when #9226 is merged.

Adds support for filtering posts by their status.

Adds logic to display FAB (new post button) only on Scheduled and Drafts tabs.

To test:

  1. My Site
  2. Blog posts
  3. Notice each tab/section contains only relevant posts
  4. Swipe/change tabs and notice the fab button is visible only on first two tabs + there is a fadeIn/out animation

Update release notes:

  • [ x ] If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@wpmobilebot
Copy link
Contributor

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@oguzkocer oguzkocer self-assigned this Feb 13, 2019
Copy link
Contributor

@oguzkocer oguzkocer left a comment

Choose a reason for hiding this comment

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

@malinajirka I did an initial pass of this PR just to see how things are shaping up and it looked good to me. I'll do the actual review once #9226 is merged.

Just a quick reminder that we'll need to update the empty views for different tabs as it doesn't make sense to say No posts yet. Why not create one? in Trashed posts. I think it's worth opening a separate issue for this, but maybe you want to handle it in this PR, so I haven't done that yet.

…st-filter-by-status

# Conflicts:
#	WordPress/src/main/java/org/wordpress/android/ui/posts/PostsListActivity.java
#	WordPress/src/main/java/org/wordpress/android/ui/posts/PostsPagerAdapter.kt
@malinajirka
Copy link
Contributor Author

Thanks @oguzkocer !

Just a quick reminder that we'll need to update the empty views for different tabs as it doesn't make sense to say No posts yet. Why not create one? in Trashed posts. I think it's worth opening a separate issue for this, but maybe you want to handle it in this PR, so I haven't done that yet.

Good point! I've created a ticket #9240

@oguzkocer oguzkocer changed the base branch from issue/9180-post-list-viewpager to feature/master-post-filters February 14, 2019 19:23
Copy link
Contributor

@oguzkocer oguzkocer left a comment

Choose a reason for hiding this comment

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

I think we'll need to change some stuff in the PostListViewModel, but with the understanding that this is a WIP, I think everything looks great :shipit:

My comment from earlier is not a blocker and can be done as part of any other PR, so I am just going to merge this in to keep things moving.

@oguzkocer oguzkocer merged commit 459c1f3 into feature/master-post-filters Feb 14, 2019
@oguzkocer oguzkocer deleted the issue/4693-post-list-filter-by-status branch February 14, 2019 19:50
@malinajirka malinajirka added this to the 12.4 milestone May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants