StaplePuck / StaplePuck.Frontend.Main.React

Main components of the frontend; home page, login page, admin page, etc.
0 stars 0 forks source link

Defining Fantasy League Settings #5

Open nickhetland opened 5 years ago

nickhetland commented 5 years ago

Permissions: Commissioner of league (and admin) Once a fantasy league has been created the commissioner needs to define the league settings prior to allowing users to create teams for the league. The commissioner either comes to the league settings pages through just completing creating a fantasy league or sees an option to define the league rules when viewing the fantasy league (this is the option to come back later and finish things up).

Normal Settings The user has the ability to define the following league settings:

Team Settings The user also has the ability to define the number of players that make up the teams: Number of Player to pick per professional team - (integer) Default to 1. (idea is that in later rounds with less teams in the playoffs that each person can create a team with 2 players per team) List of fields for number of players per position. This list of fields is derived based off the Position Types data for the sport that is associated with the league. This information can be queried by through the API

Scoring Rules The user also has the ability to define the scoring rules. Which is a multiplier based off of individual player stats. The list of fields is based off of: Query the scoring type table based off the sport. This is the Name of the scoring type. Then include all the Position Names based on the ScoringPositions field

So for example: Forward Goal Defenseman Goal Goalie Goal

Each field is expecting an integer (possible double for a stat like goalie saves, but that is something that might come later) The user then commits the settings to the API which will update the database.

Note that these settings could be all done on different pages.

Issue 16 in api has mutation