WordPress-Android
WordPress-Android copied to clipboard
[Blogging prompts] Implement prompts list screen
Screen
Implement prompts list screen to list with the following states:
Loaded
For now, the loaded items should not have a click listener. The states for each item (e.g. the "Answered" label) should be respected.
Loading

Error

Empty

No connection

- Maybe we can use the existing
ActionableEmptyView
for the empty, error, loading and no connection states; - It should be possible to swipe between the three filters (
"ALL"
,"ANSWERED"
and"NOT ANSWERED"
) and also tap on each tab to switch between them;
Entry point
This screen will be accessed from an option in the overflow menu located in the "Prompts"
card , shown in "My Site"
-> HOME
tab:
We should have the option "View more prompts"
added as the first item on the menu, and it will open the prompts list screen. Right now this menu has the "View more promps"
option added but not visible (see blogging_prompt_card_menu.xml
).
Setup
In order to see the "Prompts"
card on "My Site"
-> HOME
tab:
1 - Build and install the Jetpack app;
2 - Login and select a site. The selected site must have a few blog posts;
3 - Select "My Site"
in bottom navigation and then the HOME
tab;
4 - "Prompts"
card should be visible.
We're using this issue as a trial project.
Implementation tasks completed and merged in various PRs.