feat(leaderboard): Add sorting functionality to the leaderboard#231
feat(leaderboard): Add sorting functionality to the leaderboard#231emilioh93 wants to merge 8 commits intoslowlydev:developfrom
Conversation
Added a sorting dropdown to the leaderboard component, allowing users to sort drivers by various criteria such as position, best lap, last lap, and more. Updated the sorting logic in the sorting utility to accommodate new criteria and integrated a Zustand store for managing the selected sorting criteria.
|
@emilioh93 is attempting to deploy a commit to the f1-dash Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@emilioh93 thanks! 2 things:
|
Thanks for the feedback, very clear!
I'm happy to make the changes needed, I just want to make sure the timing and direction is right 😊. |
|
What about clicking on the column headers sorts according to that column in ascending, click again and its descending. |
yeah that could go in the right direction. maybe we could also hide the dropdown behind a filter or sort icon. which o'clock shows the input or the options right away |
- Added `react-icons` dependency for improved UI elements. - Updated the LeaderBoard component to include sorting icons for better user experience. - Enhanced sorting logic to support direction toggling and integrated it with the Zustand store. - Refactored Select component for better styling and functionality.
|
based on the last comments, I applied a few changes |
|
@slowlydev it's been a long time since this PR, maybe it's time to close it? |
Description
This pull request adds sorting functionality to the leaderboard component. Users can now sort the drivers by various criteria, including:
Changes Made
Please review the changes and let me know if any adjustments are needed.