...
Once the information from the draft modal is filled out, draft games are created and they’ll be available in a cards on the schedule and office pages.
We can make use of card expanding (from the reports card) to provide more space to schedule games and use the calendar, or provide a dedicated tab instead.
Generated
Convert the current card design (of the The current schedule info step ) is split into individual multiple steps for matchups and scheduling in the modal
Need to add a previous round input so that the scheduler can continue schedules as usual
This already exists, but isn’t exposed in the UI
Critical for PCAHA. Need to check if it’s feasible for their schedulers to use this instead of selecting the last league, or if we need to infer from DraftGames
ScheduleTeams are now the source for generating the schedule, replacing the teams step
Order matters in team selection. May be best to just maintain an order on ScheduleTeam directly so it can be easily reused. Otherwise, the teams step just duplicates the schedule’s teams tab
We’re able to add more context about number of games produced in the helper text of certain inputs. Originally this wasn’t entirely certain as the teams step came after
Uploaded
This can behave exactly like existing import modals
Will still need to reuse logic of matching teams and arenas
Manual
No longer necessary. Schedulers will be able to create draft games directly in the scheduleThis just becomes creating a single draft game at at time, so there’s no special flow necessary as the only configuration was a starting game number
Need to make sure current behaviour of autoincrementing a starting number is maintained in any case
...
When a DraftGame is created, search for an existing game the schedule by number and link the gameId automatically. Not applicable on updates.
This will become relevant later when reusing this functionality for game change requests
When editing and display the draft game, clearly show that a game will be updated as a result of publishing
Analysis
We must maintain the existing analysis functionality and move this into an API
The great thing is it’ll be very easy now to mix the published games and draft games and show the analysis at all times in the schedule view (and potentially even the office)
Would want to allow being able to toggle showing draft games so you can see what your schedule is like currently and how the draft games will affect it
...
Deprecated. Unpublished games will be created as DraftGame in the migration
DraftGame
Would be nearly identical Identical to Game, with additional properties:
Property | Type | Description |
---|---|---|
gameIdupdatedGameId | number | ID of game being updated or the resulting game that was published This would be automatically filled in based on the game number when generating/uploading games and would be used when using the (future) rescheduling function |
round | number | Optional. Not 100% sure if this is still desired |
isShared | boolean | Grants access to |
sharedAt | datetime | When the game was shared |
sharedUntil | datetime | When sharing access expires |
isPublished | boolean | Acts as |
publishedAt | datetime | When the game was published |
ScheduleTeam
Same as before, with additional properties:
Property | Type | Description |
---|---|---|
order | number | This is used to maintain schedule balance when generating additional games. Adding a scheduleteam would automatically use the next order. Schedulers would be able to adjust the order in the UI ⚠️ Competitions integration will create ScheduleTeams, so order needs to be automatic through the API |
ScheduleSequence
Add starting game number(s)? If this is per group, should this function as a pg sequence instead?This replaces the start number option in drafts since drafts will no longer exist
...
Property | Type | Description |
---|---|---|
scheduleId | number | |
groupId | number | |
start | string | Starting number (U15T2500) |
current | number | Zero indexed. Increments start (U15T2500) + current (5) = U15T1005 |
max | number | Max number to generate from this sequence (100 caps at U152599) |
...
Existing unpublished drafts to be converted to draft games
Remove Cleanup flags, UI and deprecate API