Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add minMonthlyDownloads filter for Trending, a11y fixes #1327

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Simek
Copy link
Member

@Simek Simek commented Oct 17, 2024

📝 Why & how

I have noticed that low download penalty does not work ideally after the popularity gain scoring has been tweaks, so I have decided to add a new query filter field minMonthlyDownloads which will filter out the libraries with less than specified download count in last month.

Additionally, I have made few a11y related tweaks and fixes.

✅ Checklist

  • Added library to react-native-libraries.json
  • Updated library in react-native-libraries.json
  • Documented in this PR how to use the feature or replicate the bug.
  • Documented in this PR how you fixed or created the feature.

@Simek Simek requested a review from brentvatne October 17, 2024 19:59
@@ -93,7 +93,7 @@ const Trending = ({ data, query }) => {
Trending.getInitialProps = async (ctx: NextPageContext) => {
const trendingQuery = {
...ctx.query,
...{ minPopularity: 5, order: 'popularity' as QueryOrder },
...{ minPopularity: 5, minMonthlyDownloads: 250, order: 'popularity' as QueryOrder },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd bump this a bit higher, maybe to 1000. 250/week is very small for a library still imo

pages/trending.tsx Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants