You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a pop up / modal that shows the user's favorite feeds. In order to do that, we'll need :
a toggle button to select and unselect a favorite feed
a modal / pop up to show the favorite feeds
a button to open the modal located on the menu, next to the 'Previous Feeds' button
to save the favorite feeds. As the current app doesn't have an authentication service, we could just save the feeds reference in the browser (LocalStorage) so when users comes back to the website, they still have their favorites listed.
call the method getFeed when users select one of their favorite feeds from the modal/ pop up to display their favorite feeds data.
a method to format URLs saved in the LocalStorage to normalize users input as they could enter a link prefixed with "http://", "https://", "www.", ...etc. This way, we would avoid duplicate saved feeds.
We can save the favorite feeds reference in the LocalStorage in this format :
We use the URL of the feed to identify each feed. We prefix the key with "favorite-" so we can iterate through the favorite feeds only and differenciate the favorites from other items, in case we would need to save other items in the LocalStorage.
We don't need to save the episodes in LocalStorage as we will make a RSS request call to get the feed when users select one of their favorite feeds.
Here are some images of how it is supposed to look like :
The text was updated successfully, but these errors were encountered:
Suggestion :
Creating a pop up / modal that shows the user's favorite feeds. In order to do that, we'll need :
We can save the favorite feeds reference in the LocalStorage in this format :
We use the URL of the feed to identify each feed. We prefix the key with "favorite-" so we can iterate through the favorite feeds only and differenciate the favorites from other items, in case we would need to save other items in the LocalStorage.
We don't need to save the episodes in LocalStorage as we will make a RSS request call to get the feed when users select one of their favorite feeds.
Here are some images of how it is supposed to look like :
The text was updated successfully, but these errors were encountered: