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
players: remove team_name and add teams from UC #74
Conversation
|
Thanks for working on this, @Joe2k ! Can you post screenshots for the UI changes, before I get to reviewing this? |
|
This looks great! Excited to review and merge this. I'll get to it, soon! :) |
|
So I decoupled team names from the search now. So the team selected will take first precedence in the search before the search text. But yeah people can always keep the teams seleted to "All Teams" and search names globally |
|
The New Select All button will select all that are currently in screen(basically all the players that pass team and search text filter) Also took care of cases where duplicate selections dont happen |
Previously, we allowed players to enter team names as a text field, and normalizing the team names was a pain. This commit changes teams to be a many to many relation on players, and the data is populated using Ultimate Central as the source of truth. Teams are populated during the import, when linking UC profiles to Hub, and when new registrations are imported from UC. Closes #70 Co-authored-by: Puneeth Chaganti <punchagan@muse-amuse.in>
7f976cf
to
c92e2d0
Compare
Previously, you needed to select players individually. It was cumbersome even though the UI let you search for players by team name. The current commit lets you quickly select players from a team, and then fine tune the selection. Closes #72 Co-authored-by: Puneeth Chaganti <punchagan@muse-amuse.in>
|
I fixed a few issues and bugs in the commits, and merged them manually. Notably: On the backend:
On the frontend:
In a separate commit, I pushed some fixes for Razorpay API calls for large groups. |
|
@Joe2k Why did you undo the change where the search was performed as the user typed, and instead now only search when the button is clicked? I think that was a good improvement? 🤔 |
|
@punchagan Yeah what i was thinking was before for every key press we are running a very heavy load of js to filter by team and then by search text. So if we have 500 numbers of all india ultimate players the function will take a heavy toll on the browser and thus will lag a lot. So for this I thought of 2 approaches:
|




For #70 and #72