sleepyfran / readder

📖 Read articles from your favourite website based on how much time you have
https://sleepyfran.github.io/readder/
20 stars 2 forks source link

Notify errors and empty results to the user #2

Closed sleepyfran closed 2 years ago

sleepyfran commented 5 years ago

The Home view should start reacting to other states than success. Right now, whenever we get a response from the API, we always navigate to the Reader page; however, there are certain cases in which the community that the user wrote does not exist (the API should call onError and set the loadingStatus of the store to error) or none of the fetched post can be read in the specified time (the API should call onNoResults and set the loadingStatus of the store to noResults). We should handle these scenarios and notify the user about these cases.

We can start by proposing how to show these error messages in the UI.

peoray commented 5 years ago

I'd like to work on this. Although, I need additional info

sleepyfran commented 5 years ago

I'd like to work on this. Although, I need additional info

@peoray great! I’ll update the description with more information as soon as I can!

Sent with GitHawk

sleepyfran commented 5 years ago

@peoray I updated the issue with more details, tell me if you need any additional info!

peoray commented 5 years ago

I'll start working on this issue, I expect to run into bugs :), so stick around!