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

Add hypothetical rating change feature #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sanskaarz
Copy link

I've made significant changes to the codebase to enable users to simulate hypothetical rating changes in the leaderboard application.
Here’s a detailed description of the updates:

  • Add a new endpoint in api/routers/contest_records.py to handle hypothetical entries and calculate rating change based on user input.
  • Update the predicted_rating function in api/routers/contest_records.py to support hypothetical scenarios by accepting additional parameters for hypothetical entries.
  • Add HypotheticalEntryForm and HypotheticalResult components in client/src/pages/Predicted/PredictedRecords.jsx and client/src/pages/Predicted/PredictedContests.jsx to allow users to input hypothetical entries and view the calculated rating change.

I've made significant changes to the codebase to enable users to simulate hypothetical rating changes in the leaderboard application.  
Here’s a detailed description of the updates:  
* Add a new endpoint in `api/routers/contest_records.py` to handle hypothetical entries and calculate rating change based on user input.
* Update the `predicted_rating` function in `api/routers/contest_records.py` to support hypothetical scenarios by accepting additional parameters for hypothetical entries.
* Add `HypotheticalEntryForm` and `HypotheticalResult` components in `client/src/pages/Predicted/PredictedRecords.jsx` and `client/src/pages/Predicted/PredictedContests.jsx` to allow users to input hypothetical entries and view the calculated rating change.
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.

1 participant