Improve misleading text in follow up bracket

Closes #3098
This commit is contained in:
Kalle
2026-05-24 15:19:57 +03:00
parent 47d567ae58
commit bb25ba3d8f
17 changed files with 30 additions and 4 deletions

View File

@@ -114,8 +114,18 @@ export default function TournamentBracketsPage() {
bracket.preview &&
isHydrated;
const waitingForTeamsText = () => {
if (bracketIdx > 0 || tournament.regularCheckInStartInThePast) {
const waitingForTeamsText = (bracket: BracketType, bracketIdx: number) => {
if (bracketIdx > 0) {
return bracket.requiresCheckIn
? t("tournament:bracket.waiting.checkin", {
count: TOURNAMENT.ENOUGH_TEAMS_TO_START,
})
: t("tournament:bracket.waiting.advanced", {
count: TOURNAMENT.ENOUGH_TEAMS_TO_START,
});
}
if (tournament.regularCheckInStartInThePast) {
return t("tournament:bracket.waiting.checkin", {
count: TOURNAMENT.ENOUGH_TEAMS_TO_START,
});
@@ -550,7 +560,7 @@ function BracketTabContent({
}: {
bracket: BracketType;
bracketIdx: number;
waitingForTeamsText: () => string;
waitingForTeamsText: (bracket: BracketType, bracketIdx: number) => string;
teamsSourceText: () => string | null;
}) {
return (
@@ -560,7 +570,7 @@ function BracketTabContent({
) : (
<div>
<div className="text-center text-lg font-semi-bold text-lighter mt-6">
{waitingForTeamsText()}
{waitingForTeamsText(bracket, bracketIdx)}
</div>
{bracket.sources ? (
<div className="text-center text-sm font-semi-bold text-lighter mt-2">

View File

@@ -101,6 +101,7 @@
"team.placement.footer": "",
"bracket.waiting": "Her vil turneringsplanen blive vist, så snart{{count}} hold har registreret sig",
"bracket.waiting.checkin": "Her vil turneringsplanen blive vist, så snart{{count}} hold er tjekket ind",
"bracket.waiting.advanced": "",
"bracket.wip": "Denne turneringsplan er en forhåndsvisning og kan blive ændret",
"bracket.progress.thanksForPlaying": "Tak fordi du deltog i {{eventName}}!",
"bracket.progress.match": "Nuværende modstander: {{opponent}}",

View File

@@ -101,6 +101,7 @@
"team.placement.footer": "",
"bracket.waiting": "Bracket wird hier angezeigt, sobald mindestens {{count}} Teams registriert sind",
"bracket.waiting.checkin": "Bracket wird hier angezeigt, sobald mindestens {{count}} Teams eingecheckt sind",
"bracket.waiting.advanced": "",
"bracket.wip": "Dieses Bracket ist eine Vorschau und kann sich ändern",
"bracket.progress.thanksForPlaying": "Danke fürs Spielen von {{eventName}}!",
"bracket.progress.match": "Aktueller Gegner: {{opponent}}",

View File

@@ -101,6 +101,7 @@
"team.placement.footer": "Overall/Bracket",
"bracket.waiting": "Bracket will be shown here when at least {{count}} teams have registered",
"bracket.waiting.checkin": "Bracket will be shown here when at least {{count}} teams have checked in",
"bracket.waiting.advanced": "Bracket will be shown here when at least {{count}} teams have advanced",
"bracket.wip": "This bracket is a preview and subject to change",
"bracket.progress.thanksForPlaying": "Thanks for playing in {{eventName}}!",
"bracket.progress.match": "Current opponent: {{opponent}}",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "General/Cuadro",
"bracket.waiting": "Cuadro se muestra aquí cuando al menos {{count}} equipos sean registrados",
"bracket.waiting.checkin": "Cuadro se muestra aquí cuando al menos {{count}} equipos se hagan check-in",
"bracket.waiting.advanced": "",
"bracket.wip": "Este cuadro es temporal y puede cambiar",
"bracket.progress.thanksForPlaying": "¡Gracias por participar en {{eventName}}!",
"bracket.progress.match": "Oponente actual: {{opponent}}",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "",
"bracket.waiting": "Cuadro se muestra aquí cuando al menos {{count}} equipos sean registrados",
"bracket.waiting.checkin": "Cuadro se muestra aquí cuando al menos {{count}} equipos se hagan check-in",
"bracket.waiting.advanced": "",
"bracket.wip": "Este cuadro es temporal y puede cambiar",
"bracket.progress.thanksForPlaying": "¡Gracias por participar en {{eventName}}!",
"bracket.progress.match": "Oponente actual: {{opponent}}",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "",
"bracket.waiting": "Le bracket sera affiché ici quand au moins {{count}} équipes seront inscrites",
"bracket.waiting.checkin": "",
"bracket.waiting.advanced": "",
"bracket.wip": "Ce bracket est un aperçu et sujet à changement",
"bracket.progress.thanksForPlaying": "Merci d'avoir participé à {{eventName}} !",
"bracket.progress.match": "Adversaire actuel: {{opponent}}",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "",
"bracket.waiting": "Le bracket sera affiché ici quand au moins {{count}} équipes seront inscrites",
"bracket.waiting.checkin": "Le bracket sera affiché ici lorsqu'au moins {{count}} équipes se seront enregistrées",
"bracket.waiting.advanced": "",
"bracket.wip": "Ce bracket est un aperçu et sujet à changement",
"bracket.progress.thanksForPlaying": "Merci d'avoir participé à {{eventName}} !",
"bracket.progress.match": "Adversaire actuel: {{opponent}}",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "",
"bracket.waiting": "מערכים יופיעו כאן כאשר לפחות {{count}} צוותים נרשמו",
"bracket.waiting.checkin": "",
"bracket.waiting.advanced": "",
"bracket.wip": "מערך זה הוא תצוגה מקדימה ונתון לשינויים",
"bracket.progress.thanksForPlaying": "תודה ששיחקתם ב-{{eventName}}!",
"bracket.progress.match": "יריב נוכחי: {{opponent}}",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "",
"bracket.waiting": "Il bracket verrà mostrato qui una volta che {{count}} team si saranno iscritti",
"bracket.waiting.checkin": "Il bracket verrà mostrato qui una volta che {{count}} team avranno completato il check-in",
"bracket.waiting.advanced": "",
"bracket.wip": "Questo bracket è un anteprima ed è soggetto a cambiamenti",
"bracket.progress.thanksForPlaying": "Grazie per aver giocato in {{eventName}}!",
"bracket.progress.match": "Avversario attuale: {{opponent}}",

View File

@@ -97,6 +97,7 @@
"team.placement.footer": "",
"bracket.waiting": "ブラケットは、少なくとも {{count}} チームが登録した時点で表示されます",
"bracket.waiting.checkin": "ブラケットは最低{{count}}チームがチェックインしてから表示されるよ",
"bracket.waiting.advanced": "",
"bracket.wip": "このブラケットはまだプレビューで、変更される可能性があります",
"bracket.progress.thanksForPlaying": "{{eventName}} への参加ありがとうございます!",
"bracket.progress.match": "現在の対戦者: {{opponent}}",

View File

@@ -97,6 +97,7 @@
"team.placement.footer": "",
"bracket.waiting": "",
"bracket.waiting.checkin": "",
"bracket.waiting.advanced": "",
"bracket.wip": "",
"bracket.progress.thanksForPlaying": "",
"bracket.progress.match": "",

View File

@@ -101,6 +101,7 @@
"team.placement.footer": "",
"bracket.waiting": "",
"bracket.waiting.checkin": "",
"bracket.waiting.advanced": "",
"bracket.wip": "",
"bracket.progress.thanksForPlaying": "",
"bracket.progress.match": "",

View File

@@ -105,6 +105,7 @@
"team.placement.footer": "",
"bracket.waiting": "",
"bracket.waiting.checkin": "",
"bracket.waiting.advanced": "",
"bracket.wip": "",
"bracket.progress.thanksForPlaying": "",
"bracket.progress.match": "",

View File

@@ -103,6 +103,7 @@
"team.placement.footer": "",
"bracket.waiting": "O bracket será mostrado aqui quando ao menos {{count}} times estiverem registrados",
"bracket.waiting.checkin": "O bracket será mostrado aqui quando pelo menos {{count}} times tiverem feito o check-in",
"bracket.waiting.advanced": "",
"bracket.wip": "Esse bracket é uma prévia e poderá mudar",
"bracket.progress.thanksForPlaying": "Obrigado por participar do(a) {{eventName}}!",
"bracket.progress.match": "Oponente atual: {{opponent}}",

View File

@@ -105,6 +105,7 @@
"team.placement.footer": "",
"bracket.waiting": "Сетка будет показана как только {{count}} команд зарегистрируется",
"bracket.waiting.checkin": "Сетка будет показана как только {{count}} команд пройдут чек-ин",
"bracket.waiting.advanced": "",
"bracket.wip": "Данная сетка является предварительной и может быть изменена.",
"bracket.progress.thanksForPlaying": "Спасибо за участие в {{eventName}}!",
"bracket.progress.match": "Текущий противник: {{opponent}}",

View File

@@ -97,6 +97,7 @@
"team.placement.footer": "",
"bracket.waiting": "至少 {{count}} 支队伍报名后,对战表将显示在这里",
"bracket.waiting.checkin": "对战表会在至少 {{count}} 支队伍签到后显示",
"bracket.waiting.advanced": "",
"bracket.wip": "此对战表为可调整的预览",
"bracket.progress.thanksForPlaying": "感谢您参与 {{eventName}}",
"bracket.progress.match": "当前对手: {{opponent}}",