uwbaddev / baddie-match

Web app to track our badminton matches
2 stars 2 forks source link

Add seasons #72

Closed ivanccheng closed 1 year ago

ivanccheng commented 1 year ago

soft reset for elo, rankings, based on season (sept 1 20xx -> aug 31 20xx + 1)

changes:

BE: added arguments to filter by start date and end date on

  1. match endpoint
  2. ranking endpoint
  3. elo endpoint

FE:

  1. added new season selector component
    • manipulates state (start and end)
  2. updated rankings, elo, and results page to filter by season

Devops: minor script changes env var change for remote development

things to do: make better UI design for new drop down BE: - could maybe create a helper function to handle getting the start and end args FE: use global state from app context instead of local state per component