open-sauced / hot

πŸ•The site that recommends the hottest projects on GitHub.
https://hot.opensauced.pizza
MIT License
418 stars 145 forks source link

Feature: Submission data caching #404

Open bdougie opened 1 year ago

bdougie commented 1 year ago

Type of feature

πŸ• Feature

Current behavior

When submitting a repo it does not show in the recent list right away. We need to add a short term local storage submission caching while a long term cache is saved to the API.

As a user, when I submit a repo using the form, I should see my submission get added to the recent list for today. If the repo already exist, I should give it an upvote.

Suggested solution

Suggesting that we store data in localStorage similar to how app.opensauced.pizza works. This should fetch directly from GitHub for limited data while the caching happens through open-sauced/actions.

Additional context

No response

Code of Conduct

Contributing Docs