Skip to content

Conversation

@DylanDevelops
Copy link
Owner

@DylanDevelops DylanDevelops commented Mar 29, 2025

This pull request introduces significant changes to the leaderboard feature, including the addition of new styles, components, and queries to enhance the user experience. The most important changes include the implementation of a podium display for the top users, the addition of a new index for querying users by points, and the creation of a query to fetch leaderboard entries.

Enhancements to the Leaderboard Feature:

  • Styling Updates:

    • Added new CSS classes for podium and avatar frame styles in leaderboard.css.
  • Component and State Management:

    • Integrated new components and state management in page.tsx to display the leaderboard, including a loading state and user authentication checks.
  • Database Schema:

    • Added a new index byPoints to the users table schema for efficient querying of user points in schema.ts.
  • Leaderboard Query:

    • Created a new query getLeaderboardEntries in users.ts to retrieve the top 3 users based on points, including their scores, profile pictures, and usernames.

image

@DylanDevelops DylanDevelops marked this pull request as ready for review March 29, 2025 15:46
@DylanDevelops DylanDevelops merged commit e764380 into main Mar 29, 2025
4 checks passed
@DylanDevelops DylanDevelops deleted the leaderboard-page branch March 29, 2025 15:51
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.

3 participants