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

Udpating the leaderboard components to use real data #692

Merged
merged 1 commit into from
Jan 14, 2023

Conversation

fozziethebeat
Copy link
Collaborator

@fozziethebeat fozziethebeat commented Jan 14, 2023

Closes #672

This does a few things:

  • Refactors the RankItem component to encapsulate all of the leaderboard grid functionality (with a rename to LeaderboardGridCell)
  • Moves the leaderboard page to the top level of pages and out of a directory
  • Updates the LeaderboardTable and LeaderboardGridCell to fetch data from an API route
  • Create a new API route that fetches data from the backend. The URL it's using will change later.
  • We also comment out a few leaderboard features that aren't supported yet.

@fozziethebeat fozziethebeat marked this pull request as ready for review January 14, 2023 01:39
))}
</GridItem>
</Grid>
<Grid templateColumns={columns} bg={backgroundColor} borderRadius="xl" shadow="base" p="4" gap="6">
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a reason why these need to be 2 separate grids?

the columns won't be aligned between the headers & the rows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right now they line up well enough with the column fields.

But I think the answer is no, they can be the same grid or a simple table. Ultimately I think this component and LeaderboardTable should be the same. But I want to assign that as a UI cleanup to Riley as he's better at that than I am. I mostly wanted to do a little re-organizational cleanup and fold in the real data.

@AbdBarho AbdBarho merged commit 3b4955f into main Jan 14, 2023
@AbdBarho AbdBarho deleted the 672-live-leaderboards branch January 14, 2023 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fetch leaderboard data from the real backend endpoint or hide the features
2 participants