cursive-team / connections

Cursive Connections
https://connections.cursive.team
3 stars 0 forks source link

Leaderboard Logic #87

Closed stevenelleman closed 1 week ago

stevenelleman commented 1 week ago

This provides all the piping from DB to frontend for user leaderboard position and the top 100 leaderboard positions.

Tomorrow I'll do more thorough testing by populating my local DB with more LeaderboardEntry rows. [completed]

I'll also see if updating the pagination logic is easy enough, to assess if an infinite scroll leaderboard should be considered. That being said, does that leak too much info about users in the system. [after convo with Vivek decided to stick with 100]

It is intentional that I did not link the page from the profile yet, I have a slight preference for the feature to be silently deployed, verified in production, and then a link added to make its existence known.

Otherwise the only thing this PR is lacking are frontend components for displaying the leaderboard data which will be in its own PR.

vercel[bot] commented 1 week ago

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

Name Status Preview Comments Updated (UTC)
connections ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2024 9:21pm