gordon-cs / gordon-360-api

The 360° Gordon Experience
11 stars 6 forks source link

S24 recim bracket v2 #1057

Open amos-cha opened 2 months ago

amos-cha commented 2 months ago

Mirror UI component: https://github.com/gordon-cs/gordon-360-ui/pull/2347

Rec-IM's old bracket component is no longer being updated and has quickly become an update bottleneck when we attempted to upgrade to react 18. This API PR is a has a UI mirror to handle the change to a new bracket component and its specifications.

The main key pieces required to update packages was 1) Generating bye matches where no teams exist. My previous implementation would simply not create the matches at all and as I wanted to keep it that way, logic is now used when getting match bracket data to fill out the empty spots on the bracket. 2) Next Match needs to be known, once again without modifying my old code, I was able to simply organize my list of matches and find the appropriate next match algorithmically.

amos-cha commented 2 months ago

TODO: Next Match ID