-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
FeatureNew feature with brand-new functionality.New feature with brand-new functionality.
Milestone
Description
User Story
As a TO I want to award competitors with different awards which are not tied to ranking factors. For example: "Most Sporting" or "Best Painted".
Functional Requirements
- Awards should have a type (this will define how they are displayed).
- Best Painted, Most Sporting,
- TO's can select 1 or more awards.
- 1st, 2nd, and 3rd are always there.
- 1st, 2nd, and 3rd are auto-assigned when a tournament is closed based on rankings.
Implementation Details
Awards should be pretty abstract. Some text and maybe an icon and color? For now let's only do type, with the rest hard-coded but maybe in the future it's possible to create custom awards:
| Type | Name | Icon | Color |
|---|---|---|---|
overall_1 |
1st Overall | Trophy | Gold |
overall_2 |
2nd Overall | Trophy | Silver |
overall_3 |
3rd Overall | Trophy | Bronze |
best_painted |
Best Painted | Brush | Green |
most_sporting |
Most Sporting | Heart-Hands | Red |
The schema should look like:
const fields = v.object({
tournamentCompetitorId: v.optional(v.id('tournamentCompetitors')),
type: v.union(v.literal('overall_1'), v.literal('overall_2'), v.literal('overall_3'), v.literal('best_painted'), v.literal('most_sporting')),
tournamentId: v.id('tournaments'),
});Metadata
Metadata
Assignees
Labels
FeatureNew feature with brand-new functionality.New feature with brand-new functionality.
Projects
Status
To-Do