Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Feature: Swap Hot Repositories with Recommendation feed #476

Closed
1 of 2 tasks
bdougie opened this issue Jul 11, 2023 · 5 comments · Fixed by #521
Closed
1 of 2 tasks

Feature: Swap Hot Repositories with Recommendation feed #476

bdougie opened this issue Jul 11, 2023 · 5 comments · Fixed by #521

Comments

@bdougie
Copy link
Member

bdougie commented Jul 11, 2023

Type of feature

🍕 Feature

Current behavior

Today the hot repositories is hard coded. We should use this endpoint to source recommended projects similar to this endpoint:

https://api.opensauced.pizza/v1/user/recommendations/repos

Suggested solution

Instead of using the same endpoint, we should create a /hot one to showcase 3 projects regardless of interest.

https://api.opensauced.pizza/v1/user/hot/repos

Additional context

We need to open an issue on the API to track this work there. https://github.com/open-sauced/api

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@takanome-dev
Copy link
Contributor

@bdougie I think this is a duplicate of #405

@bdougie
Copy link
Member Author

bdougie commented Jul 11, 2023

@bdougie I think this is a duplicate of #405

Not entirely. That approach was meant for voting, and the API mentioned above is the better approach.

@bdougie
Copy link
Member Author

bdougie commented Apr 1, 2024

This is now possible to do with this endpoint. https://api.opensauced.pizza/v2/histogram/top/stars/new

Instead of showing an infinite scroll of projects, we will now need to only list 100 repos in list, most likely rendering 25 at a time.

Instead of calling Supabase directly:

https://github.com/open-sauced/hot/blob/beta/src/lib/supabase.ts#L95-L122

We will need to add a hook to fetch from the API directly, similar to the way we do it in the app.

https://github.com/open-sauced/app/blob/beta/lib/hooks/useUserRepoRecommendations.ts

Copy link

🎉 This issue has been resolved in version 2.37.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This issue has been resolved in version 2.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants