Add podcast feed URL status indicator #80
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is based on issue #73.
This implementation creates new prop
feedUrlStatus
inpoddycast-favorite_podcasts.json
. This prop has value of200
for working URL and500
for broken URL.When user adds new podcast to his favorites, the default value of
feedUrlStatus
is200
. Every time the app, or user, fetches new episodes this prop is updated. If podcast data are fetched successfully,feedUrlStatus
is set to200
. If there is any error with the requestfeedUrlStatus
is set to500
.When user opens the "Favorites" view, an indicator is displayed based on the value of
feedUrlStatus
. This indicator is red border around the podcast thumbnail image (this might need change; there might be red-ish thumbnails). This indicator is created through CSS and new class on the thumbnail image.Broken URL example:
![p 1](https://user-images.githubusercontent.com/4237724/103404764-16b20180-4b55-11eb-8517-b31d9f90ec9c.png)
Working URL example:
![p2](https://user-images.githubusercontent.com/4237724/103404770-19145b80-4b55-11eb-8217-ab39babaa5c8.png)