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

feat: add most interacted algorithm #3467

Merged
merged 4 commits into from
Aug 7, 2023
Merged

feat: add most interacted algorithm #3467

merged 4 commits into from
Aug 7, 2023

Conversation

bigint
Copy link
Member

@bigint bigint commented Aug 7, 2023

  • feat: add most interacted
  • feat: add most interacted

What does this PR do?

🤖 Generated by Copilot at 1b8b051

This pull request implements a new algorithm and feed type for Lenster, which shows the most interacted posts in the last 24 hours. It adds a new file lensterMostInteracted.ts to the workers package, a new object and enum value to the data package, and a new case to the AlgorithmicFeed component. It also modifies the existing lensterMostViewed.ts file to add some randomization and simplification.

Related issues

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

🤖 Generated by Copilot at 1b8b051

  • Add a new algorithm to show the most interacted posts in Lenster in the last 24 hours (link, link, link, link, link, link)
  • Define the LENSTER_MOSTINTERACTED feed type in the HomeFeedType enum in enums.ts (link)
  • Add the metadata and properties of the new algorithm to the algorithms array in algorithms.ts (link)
  • Render the new feed type in the AlgorithmicFeed component in AlgorithmicFeed.tsx (link)
  • Implement the logic and query for the new algorithm in lensterMostInteracted.ts in the workers package (link)
  • Import and call the new algorithm function in the lensterFeed provider function in lensterFeed.ts (link, link)
  • Improve the existing algorithm to show the most viewed posts in Lenster by adding randomization and simplifying the mapping (link)
  • Modify the lensterMostViewed function in lensterMostViewed.ts in the workers package (link)

Emoji

🆕🚀📊

@vercel
Copy link

vercel bot commented Aug 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
prerender ✅ Ready (Inspect) Visit Preview Aug 7, 2023 8:09am
1 Ignored Deployment
Name Status Preview Updated (UTC)
web ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2023 8:09am

@vercel vercel bot temporarily deployed to Preview – prerender August 7, 2023 08:07 Inactive
@bigint bigint merged commit 0f4be97 into main Aug 7, 2023
3 checks passed
@bigint bigint deleted the most-interacted branch August 7, 2023 08:09
@vercel vercel bot temporarily deployed to Preview – prerender August 7, 2023 08:09 Inactive
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.

1 participant