[X] Automatically refresh the newsfeed once a day when opening the app, between 7am and 10pm (device time)
When refreshing, store a bit of state that notes the app has already been refreshed for today
[X] Until the next fresh day, no refresh will be done. So the newsfeed of that day will have to be stored (just the list of newsfeed article ID's should be enough -- the rest can be fetched from the API)
[X] Timestamp of refresh becomes the edition number: Thursday, 12 September, 17:45 Edition
Nice to have:
[X] A manual refresh setting somewhere for the real addicts. Maybe first with a popup informing of the time until next edition, asking the user to have patience.
[ ] Allow the user to view the feed in their preferred way. I usually read Hacker news using https://hckrnews.com/ , where I use the "Top 50%" filter.
Fix #7
Preview:
https://user-images.githubusercontent.com/46898603/138592870-5f277184-cde7-4385-ba74-538654c0ec29.mp4
PS: Add
hacktoberfest-accepted
label to the PR after you accept the changes and merge the branch.