sendou.ink/app/features/team/team-constants.ts
Kalle 4c50ef0e7e
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
Team SendouForm finalized, custom roles (#3156)
2026-06-14 09:53:18 +03:00

32 lines
732 B
TypeScript

export const TEAM = {
NAME_MAX_LENGTH: 64,
NAME_MIN_LENGTH: 2,
BIO_MAX_LENGTH: 2000,
BSKY_MAX_LENGTH: 50,
TAG_MAX_LENGTH: 6,
MAX_MEMBER_COUNT: 10,
MAX_TEAM_COUNT_NON_PATRON: 2,
MAX_TEAM_COUNT_PATRON: 5,
};
export const TEAM_MEMBER_ROLES = [
"CAPTAIN",
"CO_CAPTAIN",
"FRONTLINE",
"SLAYER",
"SKIRMISHER",
"SUPPORT",
"MIDLINE",
"BACKLINE",
"FLEX",
"SUB",
"COACH",
"CHEERLEADER",
] as const;
/** Roles that are not part of a team's active competitive lineup. Excluded when sourcing a roster (e.g. prefilling tournament registration or a scrim post). */
export const NON_PLAYER_TEAM_ROLES: readonly (typeof TEAM_MEMBER_ROLES)[number][] =
["CHEERLEADER", "COACH", "SUB"];
export const CUSTOM_ROLE_MAX_LENGTH = 32;