add the oracle house bracket and picker polish
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 59s
CI/CD Pipeline / i18n Catalog Check (push) Successful in 1m2s
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 2m2s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 52s

- the oracle: optional AI bracket on a hidden tournaments.oracle_picks field (migration), validated like a real prediction, shown above the leaderboard only to viewers who can see other brackets, never counted for the badge
- prediction picker shows player first names, progress moved next to the round label, h2h record pill
This commit is contained in:
2026-11-12 20:48:21 -08:00
parent 10301f5ffb
commit 551679b60b
18 changed files with 657 additions and 198 deletions
@@ -0,0 +1,23 @@
/// <reference path="../pb_data/types.d.ts" />
migrate((app) => {
const collection = app.findCollectionByNameOrId("pbc_340646327")
collection.fields.add(new Field({
"hidden": true,
"id": "json3812094471",
"maxSize": 0,
"name": "oracle_picks",
"presentable": false,
"required": false,
"system": false,
"type": "json"
}))
return app.save(collection)
}, (app) => {
const collection = app.findCollectionByNameOrId("pbc_340646327")
collection.fields.removeById("json3812094471")
return app.save(collection)
})
+23
View File
@@ -54,6 +54,7 @@ import { Route as AuthedAdminTelemetryFunctionsRouteImport } from './routes/_aut
import { Route as AuthedAdminTelemetryErrorsRouteImport } from './routes/_authed/admin/telemetry/errors'
import { Route as AuthedAdminTournamentsIdIndexRouteImport } from './routes/_authed/admin/tournaments/$id/index'
import { Route as ApiFilesCollectionRecordIdFileRouteImport } from './routes/api/files/$collection/$recordId/$file'
import { Route as AuthedTournamentsIdPredictionsOracleRouteImport } from './routes/_authed/tournaments/$id.predictions_.oracle'
import { Route as AuthedTournamentsIdPredictionsMakeRouteImport } from './routes/_authed/tournaments/$id.predictions_.make'
import { Route as AuthedTournamentsIdPredictionsPlayerIdRouteImport } from './routes/_authed/tournaments/$id.predictions_.$playerId'
import { Route as AuthedAdminTournamentsRunIdRouteImport } from './routes/_authed/admin/tournaments/run.$id'
@@ -300,6 +301,12 @@ const ApiFilesCollectionRecordIdFileRoute =
path: '/api/files/$collection/$recordId/$file',
getParentRoute: () => rootRouteImport,
} as any)
const AuthedTournamentsIdPredictionsOracleRoute =
AuthedTournamentsIdPredictionsOracleRouteImport.update({
id: '/tournaments/$id/predictions_/oracle',
path: '/tournaments/$id/predictions/oracle',
getParentRoute: () => AuthedRoute,
} as any)
const AuthedTournamentsIdPredictionsMakeRoute =
AuthedTournamentsIdPredictionsMakeRouteImport.update({
id: '/tournaments/$id/predictions_/make',
@@ -393,6 +400,7 @@ export interface FileRoutesByFullPath {
'/admin/tournaments/run/$id': typeof AuthedAdminTournamentsRunIdRoute
'/tournaments/$id/predictions/$playerId': typeof AuthedTournamentsIdPredictionsPlayerIdRoute
'/tournaments/$id/predictions/make': typeof AuthedTournamentsIdPredictionsMakeRoute
'/tournaments/$id/predictions/oracle': typeof AuthedTournamentsIdPredictionsOracleRoute
'/api/files/$collection/$recordId/$file': typeof ApiFilesCollectionRecordIdFileRoute
'/admin/tournaments/$id/': typeof AuthedAdminTournamentsIdIndexRoute
}
@@ -444,6 +452,7 @@ export interface FileRoutesByTo {
'/admin/tournaments/run/$id': typeof AuthedAdminTournamentsRunIdRoute
'/tournaments/$id/predictions/$playerId': typeof AuthedTournamentsIdPredictionsPlayerIdRoute
'/tournaments/$id/predictions/make': typeof AuthedTournamentsIdPredictionsMakeRoute
'/tournaments/$id/predictions/oracle': typeof AuthedTournamentsIdPredictionsOracleRoute
'/api/files/$collection/$recordId/$file': typeof ApiFilesCollectionRecordIdFileRoute
'/admin/tournaments/$id': typeof AuthedAdminTournamentsIdIndexRoute
}
@@ -499,6 +508,7 @@ export interface FileRoutesById {
'/_authed/admin/tournaments/run/$id': typeof AuthedAdminTournamentsRunIdRoute
'/_authed/tournaments/$id/predictions_/$playerId': typeof AuthedTournamentsIdPredictionsPlayerIdRoute
'/_authed/tournaments/$id/predictions_/make': typeof AuthedTournamentsIdPredictionsMakeRoute
'/_authed/tournaments/$id/predictions_/oracle': typeof AuthedTournamentsIdPredictionsOracleRoute
'/api/files/$collection/$recordId/$file': typeof ApiFilesCollectionRecordIdFileRoute
'/_authed/admin/tournaments/$id/': typeof AuthedAdminTournamentsIdIndexRoute
}
@@ -554,6 +564,7 @@ export interface FileRouteTypes {
| '/admin/tournaments/run/$id'
| '/tournaments/$id/predictions/$playerId'
| '/tournaments/$id/predictions/make'
| '/tournaments/$id/predictions/oracle'
| '/api/files/$collection/$recordId/$file'
| '/admin/tournaments/$id/'
fileRoutesByTo: FileRoutesByTo
@@ -605,6 +616,7 @@ export interface FileRouteTypes {
| '/admin/tournaments/run/$id'
| '/tournaments/$id/predictions/$playerId'
| '/tournaments/$id/predictions/make'
| '/tournaments/$id/predictions/oracle'
| '/api/files/$collection/$recordId/$file'
| '/admin/tournaments/$id'
id:
@@ -659,6 +671,7 @@ export interface FileRouteTypes {
| '/_authed/admin/tournaments/run/$id'
| '/_authed/tournaments/$id/predictions_/$playerId'
| '/_authed/tournaments/$id/predictions_/make'
| '/_authed/tournaments/$id/predictions_/oracle'
| '/api/files/$collection/$recordId/$file'
| '/_authed/admin/tournaments/$id/'
fileRoutesById: FileRoutesById
@@ -1003,6 +1016,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ApiFilesCollectionRecordIdFileRouteImport
parentRoute: typeof rootRouteImport
}
'/_authed/tournaments/$id/predictions_/oracle': {
id: '/_authed/tournaments/$id/predictions_/oracle'
path: '/tournaments/$id/predictions/oracle'
fullPath: '/tournaments/$id/predictions/oracle'
preLoaderRoute: typeof AuthedTournamentsIdPredictionsOracleRouteImport
parentRoute: typeof AuthedRoute
}
'/_authed/tournaments/$id/predictions_/make': {
id: '/_authed/tournaments/$id/predictions_/make'
path: '/tournaments/$id/predictions/make'
@@ -1128,6 +1148,7 @@ interface AuthedRouteChildren {
AuthedTournamentsIdPredictionsRoute: typeof AuthedTournamentsIdPredictionsRoute
AuthedTournamentsIdPredictionsPlayerIdRoute: typeof AuthedTournamentsIdPredictionsPlayerIdRoute
AuthedTournamentsIdPredictionsMakeRoute: typeof AuthedTournamentsIdPredictionsMakeRoute
AuthedTournamentsIdPredictionsOracleRoute: typeof AuthedTournamentsIdPredictionsOracleRoute
}
const AuthedRouteChildren: AuthedRouteChildren = {
@@ -1147,6 +1168,8 @@ const AuthedRouteChildren: AuthedRouteChildren = {
AuthedTournamentsIdPredictionsPlayerIdRoute,
AuthedTournamentsIdPredictionsMakeRoute:
AuthedTournamentsIdPredictionsMakeRoute,
AuthedTournamentsIdPredictionsOracleRoute:
AuthedTournamentsIdPredictionsOracleRoute,
}
const AuthedRouteWithChildren =
@@ -0,0 +1,125 @@
import { createFileRoute, redirect } from "@tanstack/react-router";
import { Trans } from "@lingui/react/macro";
import { msg } from "@lingui/core/macro";
import { useMemo } from "react";
import { Box, Container, Group, Paper, Stack, Text } from "@mantine/core";
import {
tournamentQueries,
useTournament,
} from "@/features/tournaments/queries";
import {
predictionQueries,
useOraclePrediction,
} from "@/features/predictions/queries";
import { ensureServerQueryData } from "@/lib/tanstack-query/utils/ensure";
import { BracketPending } from "@/features/bracket/components/bracket-pending";
import { PredictionBracket } from "@/features/predictions/components/prediction-bracket";
import { computePredictionScore } from "@/features/predictions/utils";
import { EyeIcon } from "@phosphor-icons/react";
export const Route = createFileRoute(
"/_authed/tournaments/$id/predictions_/oracle",
)({
beforeLoad: async ({ context, params }) => {
const { queryClient } = context;
const tournament = await ensureServerQueryData(
queryClient,
tournamentQueries.details(params.id),
);
if (!tournament) throw redirect({ to: "/tournaments" });
const oracle = await ensureServerQueryData(
queryClient,
predictionQueries.oracle(params.id),
);
if (!oracle) {
throw redirect({
to: "/tournaments/$id/predictions",
params: { id: params.id },
});
}
return { tournament };
},
loader: () => ({
fullWidth: true,
withPadding: false,
header: {
withBackButton: true,
title: msg`The Oracle's Bracket`,
},
}),
component: RouteComponent,
pendingComponent: BracketPending,
});
function RouteComponent() {
const { id } = Route.useParams();
const { data: tournament } = useTournament(id);
const { data: oracle } = useOraclePrediction(id);
const matches = tournament.matches || [];
const picks = oracle?.picks ?? {};
const score = useMemo(
() => computePredictionScore(matches, picks),
[matches, picks],
);
return (
<Container size="md" px={0}>
<Box pos="relative">
<PredictionBracket
matches={matches}
picks={picks}
mode="view"
perMatch={score.perMatch}
/>
<Box
pos="absolute"
left={0}
right={0}
bottom={0}
p="md"
style={{ zIndex: 2, pointerEvents: "none" }}
>
<Paper
withBorder
shadow="md"
radius="lg"
p="sm"
style={{ pointerEvents: "auto" }}
>
<Group justify="space-between" align="center" wrap="nowrap">
<Group gap="sm" align="center" wrap="nowrap">
<EyeIcon size={28} weight="duotone" />
<Text size="sm" fw={700} lineClamp={1}>
<Trans>The Oracle</Trans>
</Text>
</Group>
<Group gap="md" wrap="nowrap">
<Stack gap={0} ta="center">
<Text size="xs" c="dimmed" fw={700}>
<Trans>PTS</Trans>
</Text>
<Text size="sm" fw={700}>
{score.points}
</Text>
</Stack>
<Stack gap={0} ta="center">
<Text size="xs" c="dimmed" fw={700}>
<Trans>PICKS</Trans>
</Text>
<Text size="xs" c="dimmed">
{score.correct}/{score.total}
</Text>
</Stack>
</Group>
</Group>
</Paper>
</Box>
</Box>
</Container>
);
}
+16
View File
@@ -161,6 +161,22 @@ export const isPredictionComplete = (
);
};
export const isValidPrediction = (matches: Match[], picks: unknown): picks is PicksMap => {
if (!picks || typeof picks !== "object" || Array.isArray(picks)) return false;
const map = picks as Record<string, unknown>;
if (Object.values(map).some((value) => typeof value !== "string")) return false;
const pickableLids = new Set(
getPickableMatches(matches, map as PicksMap).map((match) => String(match.lid))
);
const keys = Object.keys(map);
return (
pickableLids.size > 0 &&
keys.length === pickableLids.size &&
keys.every((lid) => pickableLids.has(lid)) &&
isPredictionComplete(matches, map as PicksMap)
);
};
export type PickResult = "correct" | "incorrect" | "pending";
export interface PredictionScore {
@@ -42,7 +42,7 @@ export const MatchupButton: React.FC<MatchupButtonProps> = ({
if (winnerId === home.id) homeWins++;
else if (winnerId === away.id) awayWins++;
}
return `${homeWins} - ${awayWins}`;
return { homeWins, awayWins, key: `${homeWins}-${awayWins}` };
}, [ready, matches, home, away]);
const handleOpen = () => {
@@ -59,7 +59,7 @@ export const MatchupButton: React.FC<MatchupButtonProps> = ({
const content = record ? (
<Text size="xs" fw={700} style={{ whiteSpace: "nowrap", fontVariantNumeric: "tabular-nums" }}>
{record}
{record.homeWins} - {record.awayWins}
</Text>
) : (
<Skeleton h={8} w="3ch" radius="xl" />
@@ -100,7 +100,7 @@ export const MatchupButton: React.FC<MatchupButtonProps> = ({
>
<AnimatePresence mode="wait" initial={false}>
<motion.div
key={record ?? "loading"}
key={record?.key ?? "loading"}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
@@ -0,0 +1,109 @@
import { Box, Group, Stack, Text, UnstyledButton } from "@mantine/core";
import { CaretRightIcon, CrownIcon, EyeIcon } from "@phosphor-icons/react";
import { Trans } from "@lingui/react/macro";
import { useNavigate } from "@tanstack/react-router";
import { OracleSummary } from "../types";
const SIZE = 40;
interface OracleCardProps {
tournamentId: string;
oracle: OracleSummary;
live: boolean;
isComplete: boolean;
}
export const OracleCard: React.FC<OracleCardProps> = ({
tournamentId,
oracle,
live,
isComplete,
}) => {
const navigate = useNavigate();
return (
<UnstyledButton
w="100%"
p="md"
style={{ borderRadius: 0 }}
onClick={() =>
navigate({
to: "/tournaments/$id/predictions/oracle",
params: { id: tournamentId },
})
}
>
<Group justify="space-between" align="center" w="100%" wrap="nowrap">
<Group gap="sm" align="center" wrap="nowrap" style={{ minWidth: 0 }}>
<Box
className="flxn-avatar-frame"
w={SIZE}
h={SIZE}
style={{
flexShrink: 0,
display: "grid",
placeItems: "center",
borderRadius: "var(--flxn-avatar-radius, 50%)",
border:
"var(--flxn-avatar-border, 1px solid var(--mantine-color-default-border))",
backgroundColor: "var(--mantine-color-body)",
}}
>
<EyeIcon size={22} weight="duotone" />
</Box>
<Stack gap={2} style={{ minWidth: 0 }}>
<Text size="sm" fw={600} lineClamp={1}>
<Trans>The Oracle</Trans>
</Text>
<Text size="xs" c="dimmed">
<Trans>Who the FLXN gods favor to win</Trans>
</Text>
{oracle.championPick && (
<Group gap={4} wrap="nowrap">
<CrownIcon
size={12}
weight="fill"
color={
oracle.championCorrect && isComplete
? "var(--flxn-gold)"
: "var(--mantine-color-dimmed)"
}
/>
<Text size="xs" c="dimmed" lineClamp={1}>
{oracle.championPick.name}
</Text>
</Group>
)}
</Stack>
</Group>
<Group gap="md" wrap="nowrap">
{live && (
<>
<Stack gap={0} ta="center">
<Text size="xs" c="dimmed" fw={700}>
<Trans>PTS</Trans>
</Text>
<Text size="sm" fw={700}>
{oracle.points}
</Text>
</Stack>
<Stack gap={0} ta="center">
<Text size="xs" c="dimmed" fw={700}>
<Trans>PICKS</Trans>
</Text>
<Text size="xs" c="dimmed">
{oracle.correct}/{oracle.total}
</Text>
</Stack>
</>
)}
<CaretRightIcon
size={16}
color="var(--mantine-color-dimmed)"
style={{ flexShrink: 0 }}
/>
</Group>
</Group>
</UnstyledButton>
);
};
@@ -221,20 +221,31 @@ export const PredictionEditor: React.FC<PredictionEditorProps> = ({
<Stack gap="xs">
{activeMatch && (
<>
<Group gap={6} align="center" wrap="nowrap">
<WizardOrbIcon
size={16}
weight="duotone"
color="var(--mantine-primary-color-filled)"
/>
<Group justify="space-between" align="center" wrap="nowrap">
<Group gap={6} align="center" wrap="nowrap" style={{ minWidth: 0 }}>
<WizardOrbIcon
size={16}
weight="duotone"
color="var(--mantine-primary-color-filled)"
/>
<Text
size="xs"
fw={700}
tt="uppercase"
c="var(--mantine-primary-color-filled)"
truncate
style={{ letterSpacing: 0.5 }}
>
{getMatchLabel(i18n, matches, activeMatch)}
</Text>
</Group>
<Text
size="xs"
fw={700}
tt="uppercase"
c="var(--mantine-primary-color-filled)"
style={{ letterSpacing: 0.5 }}
c={complete ? undefined : "dimmed"}
style={{ flexShrink: 0, fontVariantNumeric: "tabular-nums" }}
>
{getMatchLabel(i18n, matches, activeMatch)}
{pickedCount}/{pickable.length}
</Text>
</Group>
<WinnerSelector
@@ -245,7 +256,7 @@ export const PredictionEditor: React.FC<PredictionEditorProps> = ({
/>
</>
)}
<Group justify="space-between" align="center" wrap="nowrap">
<Group justify="space-between" align="center" gap="xs" wrap="nowrap">
<Group gap={4} align="center" wrap="nowrap">
<ActionIcon
variant="default"
@@ -273,14 +284,9 @@ export const PredictionEditor: React.FC<PredictionEditorProps> = ({
onOpen={matchupSheet.open}
/>
</Group>
<Group gap="sm" align="center" wrap="nowrap">
<Text size="sm" fw={600} c={complete ? undefined : "dimmed"}>
{pickedCount}/{pickable.length}
</Text>
<Button disabled={!complete} onClick={lockInSheet.open}>
<Trans>Submit</Trans>
</Button>
</Group>
<Button disabled={!complete} onClick={lockInSheet.open}>
<Trans>Submit</Trans>
</Button>
</Group>
</Stack>
</Paper>
@@ -19,6 +19,7 @@ import { useNavigate } from "@tanstack/react-router";
import { Tournament } from "@/features/tournaments/types";
import PlayerAvatar from "@/components/player-avatar";
import { usePredictionsLeaderboard } from "../queries";
import { OracleCard } from "./oracle-card";
import { isPredictionLocked, isTournamentPredictable } from "../utils";
interface PredictionLeaderboardProps {
@@ -133,6 +134,17 @@ export const PredictionLeaderboard: React.FC<PredictionLeaderboardProps> = ({
return (
<Stack gap={0}>
{leaderboard.oracle && (
<>
<OracleCard
tournamentId={tournament.id}
oracle={leaderboard.oracle}
live={live}
isComplete={isComplete}
/>
<Divider mb="md" />
</>
)}
<Group px="md" justify="space-between" align="center" wrap="nowrap">
<Text size="lg" fw={600}>
<Trans>Predictions</Trans>
@@ -1,5 +1,5 @@
import React from "react";
import { Group, Text, UnstyledButton } from "@mantine/core";
import { Group, Stack, Text, UnstyledButton } from "@mantine/core";
import { Trans } from "@lingui/react/macro";
import { CrownIcon } from "@phosphor-icons/react";
import { TeamInfo } from "@/features/teams/types";
@@ -45,13 +45,15 @@ const TeamChip = ({
return (
<UnstyledButton
onClick={() => onSelect(team.id)}
style={{ flex: 1, minWidth: 0 }}
style={{ flex: 1, minWidth: 0, display: "flex", position: "relative" }}
aria-pressed={picked}
>
<Group
gap={8}
gap={6}
wrap="nowrap"
p="6px 10px"
align="center"
w="100%"
p="6px 8px"
style={{
border: `1px solid ${
picked
@@ -65,27 +67,31 @@ const TeamChip = ({
transition: "background-color 200ms ease, border-color 200ms ease",
}}
>
<TeamAvatar team={team} size={26} radius="sm" disableFullscreen />
<Text
size="xs"
fw={600}
truncate
style={{ flex: 1, minWidth: 0 }}
>
{team.name}
</Text>
{picked && (
<CrownIcon
size={14}
weight="fill"
style={{
color: "var(--flxn-gold)",
filter: "drop-shadow(0 1px 1px var(--flxn-pop-shadow))",
flexShrink: 0,
}}
/>
)}
<TeamAvatar team={team} size={24} radius="sm" disableFullscreen />
<Stack gap={0} style={{ flex: 1, minWidth: 0 }}>
<Text size="xs" fw={600} lh={1.25} lineClamp={2}>
{team.name}
</Text>
{!!team.players?.length && (
<Text fz={11} c="dimmed" lh={1.25} truncate>
{team.players.map((player) => player.first_name).join(" & ")}
</Text>
)}
</Stack>
</Group>
{picked && (
<CrownIcon
size={16}
weight="fill"
style={{
position: "absolute",
top: -7,
right: -5,
color: "var(--flxn-gold)",
filter: "drop-shadow(0 1px 1px var(--flxn-pop-shadow))",
}}
/>
)}
</UnstyledButton>
);
};
@@ -96,13 +102,13 @@ export const WinnerSelector: React.FC<WinnerSelectorProps> = ({
pickedId,
onSelect,
}) => (
<Group gap="xs" wrap="nowrap" align="center">
<Group gap={6} wrap="nowrap" align="stretch">
<TeamChip
team={home}
picked={!!home && pickedId === home.id}
onSelect={onSelect}
/>
<Text size="xs" c="dimmed" fw={700}>
<Text size="xs" c="dimmed" fw={700} style={{ alignSelf: "center" }}>
<Trans>vs</Trans>
</Text>
<TeamChip
+9
View File
@@ -6,6 +6,7 @@ import {
} from "@/lib/tanstack-query/hooks";
import {
getMyPrediction,
getOraclePrediction,
getPlayerPrediction,
getPredictionsLeaderboard,
resetTournamentPredictions,
@@ -17,6 +18,7 @@ export const predictionKeys = {
mine: (tournamentId: string) => ['predictions', tournamentId, 'mine'] as const,
leaderboard: (tournamentId: string) => ['predictions', tournamentId, 'leaderboard'] as const,
player: (tournamentId: string, playerId: string) => ['predictions', tournamentId, 'player', playerId] as const,
oracle: (tournamentId: string) => ['predictions', tournamentId, 'oracle'] as const,
};
export const predictionQueries = {
@@ -32,6 +34,10 @@ export const predictionQueries = {
queryKey: predictionKeys.player(tournamentId, playerId),
queryFn: () => getPlayerPrediction({ data: { tournamentId, playerId } }),
}),
oracle: (tournamentId: string) => ({
queryKey: predictionKeys.oracle(tournamentId),
queryFn: () => getOraclePrediction({ data: tournamentId }),
}),
};
export const useMyPrediction = (tournamentId: string) =>
@@ -43,6 +49,9 @@ export const usePredictionsLeaderboard = (tournamentId: string) =>
export const usePlayerPrediction = (tournamentId: string, playerId: string) =>
useServerSuspenseQuery(predictionQueries.player(tournamentId, playerId));
export const useOraclePrediction = (tournamentId: string) =>
useServerSuspenseQuery(predictionQueries.oracle(tournamentId));
export const useSubmitPrediction = (tournamentId: string) => {
const queryClient = useQueryClient();
const { t } = useLingui();
+58 -41
View File
@@ -10,16 +10,18 @@ import {
import { Tournament } from "@/features/tournaments/types";
import {
MyPrediction,
OraclePrediction,
OracleSummary,
PicksMap,
Prediction,
PredictionLeaderboardEntry,
PredictionsLeaderboard,
} from "./types";
import {
computePredictionScore,
getPickableMatches,
isPredictionComplete,
isPredictionLocked,
isTournamentPredictable,
isValidPrediction,
} from "./utils";
const getTournamentOrThrow = async (tournamentId: string): Promise<Tournament> => {
@@ -30,6 +32,35 @@ const getTournamentOrThrow = async (tournamentId: string): Promise<Tournament> =
return tournament;
};
const scorePicks = (tournament: Tournament, picks: PicksMap): OracleSummary => {
const score = computePredictionScore(tournament.matches || [], picks);
return {
points: score.points,
correct: score.correct,
total: score.total,
championPick: tournament.teams?.find((team) => team.id === score.predictedChampionId),
championCorrect:
!!score.predictedChampionId &&
score.predictedChampionId === tournament.first_place?.id,
};
};
const loadOracle = async (tournament: Tournament): Promise<OraclePrediction | null> => {
const raw = await pbAdmin.getOracle(tournament.id);
if (!raw?.picks) return null;
if (!isValidPrediction(tournament.matches || [], raw.picks)) {
logger.warn("Oracle picks are not a valid bracket; hiding them", { tournamentId: tournament.id });
return null;
}
return { picks: raw.picks };
};
const canViewOthers = async (tournament: Tournament, authId: string): Promise<boolean> => {
if (isPredictionLocked(tournament.matches || [])) return true;
const me = await pbAdmin.getPlayerByAuthId(authId);
return !!me && !!(await pbAdmin.getPrediction(tournament.id, me.id));
};
export const getMyPrediction = createServerFn()
.validator(z.string())
.middleware([superTokensFunctionMiddleware])
@@ -77,19 +108,8 @@ export const submitPrediction = createServerFn()
throw new Error("Predictions are locked — the tournament has started");
}
const pickableLids = new Set(
getPickableMatches(matches, picks).map((match) => String(match.lid))
);
const pickKeys = Object.keys(picks);
if (
pickKeys.length !== pickableLids.size ||
pickKeys.some((lid) => !pickableLids.has(lid))
) {
throw new Error("Prediction must include a pick for every match");
}
if (!isPredictionComplete(matches, picks)) {
throw new Error("Prediction contains invalid picks");
if (!isValidPrediction(matches, picks)) {
throw new Error("Prediction must include a valid pick for every match");
}
if (await pbAdmin.getPrediction(tournamentId, player.id)) {
@@ -105,7 +125,7 @@ export const submitPrediction = createServerFn()
logger.info("Prediction submitted", {
tournamentId,
playerId: player.id,
pickCount: pickKeys.length,
pickCount: Object.keys(picks).length,
});
return prediction;
@@ -131,24 +151,11 @@ export const getPredictionsLeaderboard = createServerFn()
}
const entries: PredictionLeaderboardEntry[] = predictions.map(
(prediction) => {
const score = computePredictionScore(matches, prediction.picks);
const championPick = tournament.teams?.find(
(team) => team.id === score.predictedChampionId
);
return {
player: prediction.player,
points: score.points,
correct: score.correct,
total: score.total,
championPick,
championCorrect:
!!score.predictedChampionId &&
score.predictedChampionId === tournament.first_place?.id,
updated: prediction.updated,
};
}
(prediction) => ({
player: prediction.player,
...scorePicks(tournament, prediction.picks),
updated: prediction.updated,
})
);
entries.sort(
@@ -159,7 +166,10 @@ export const getPredictionsLeaderboard = createServerFn()
(a.player.first_name ?? "").localeCompare(b.player.first_name ?? "")
);
return { locked, viewerSubmitted, count: entries.length, entries, submitters };
const oraclePicks = await loadOracle(tournament);
const oracle = oraclePicks ? scorePicks(tournament, oraclePicks.picks) : undefined;
return { locked, viewerSubmitted, oracle, count: entries.length, entries, submitters };
})
);
@@ -175,18 +185,25 @@ export const getPlayerPrediction = createServerFn()
toServerResult(async (): Promise<Prediction | null> => {
const tournament = await getTournamentOrThrow(tournamentId);
if (!isPredictionLocked(tournament.matches || [])) {
const me = await pbAdmin.getPlayerByAuthId(context.userAuthId);
const mine = me ? await pbAdmin.getPrediction(tournamentId, me.id) : null;
if (!mine) {
throw new Error("Lock in your own prediction to see other brackets");
}
if (!(await canViewOthers(tournament, context.userAuthId))) {
throw new Error("Lock in your own prediction to see other brackets");
}
return pbAdmin.getPrediction(tournamentId, playerId);
})
);
export const getOraclePrediction = createServerFn()
.validator(z.string())
.middleware([superTokensFunctionMiddleware])
.handler(async ({ data: tournamentId, context }) =>
toServerResult(async (): Promise<OraclePrediction | null> => {
const tournament = await getTournamentOrThrow(tournamentId);
if (!(await canViewOthers(tournament, context.userAuthId))) return null;
return loadOracle(tournament);
})
);
export const resetTournamentPredictions = createServerFn()
.validator(z.string())
.middleware([superTokensAdminFunctionMiddleware])
+13
View File
@@ -22,9 +22,22 @@ export interface PredictionLeaderboardEntry {
updated: string;
}
export interface OracleSummary {
points: number;
correct: number;
total: number;
championPick?: TeamInfo;
championCorrect: boolean;
}
export interface OraclePrediction {
picks: PicksMap;
}
export interface PredictionsLeaderboard {
locked: boolean;
viewerSubmitted: boolean;
oracle?: OracleSummary;
count: number;
entries: PredictionLeaderboardEntry[];
submitters: PlayerInfo[];
+20 -1
View File
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { Match } from "@/features/matches/types";
import { getPredictionWinners, isBracketFinal, PredictionEntry } from "./bracket";
import { getPredictionWinners, isBracketFinal, isValidPrediction, PredictionEntry } from "./bracket";
type MatchSpec = Omit<Partial<Match>, "home" | "away"> & { lid: number; home?: string; away?: string };
@@ -112,3 +112,22 @@ describe("isBracketFinal", () => {
expect(isBracketFinal([])).toBe(false);
});
});
describe("isValidPrediction", () => {
it("accepts a complete bracket", () => {
expect(isValidPrediction(finalBracket(), chalk)).toBe(true);
});
it("rejects missing, extra, or impossible picks", () => {
expect(isValidPrediction(finalBracket(), { "1": "A", "2": "C" })).toBe(false);
expect(isValidPrediction(finalBracket(), { ...chalk, "9": "A" })).toBe(false);
expect(isValidPrediction(finalBracket(), { "1": "A", "2": "C", "3": "B" })).toBe(false);
});
it("rejects values that aren't a picks map", () => {
expect(isValidPrediction(finalBracket(), null)).toBe(false);
expect(isValidPrediction(finalBracket(), [])).toBe(false);
expect(isValidPrediction(finalBracket(), { "1": 1, "2": "C", "3": "C" })).toBe(false);
expect(isValidPrediction([], {})).toBe(false);
});
});
@@ -44,6 +44,19 @@ export function createPredictionsService(pb: PocketBase) {
return transformPrediction(record);
},
async getOracle(
tournamentId: string
): Promise<{ picks: unknown } | null> {
try {
const record = await pb
.collection("tournaments")
.getOne(tournamentId, { fields: "oracle_picks" });
return { picks: record.oracle_picks };
} catch {
return null;
}
},
async deletePredictionsForTournament(tournamentId: string): Promise<number> {
const records = await pb.collection("predictions").getFullList({
filter: `tournament="${tournamentId}"`,
+44 -27
View File
@@ -31,7 +31,7 @@ msgid "(Active)"
msgstr "(Aktiv)"
#. placeholder {0}: leaderboard.count
#: src/features/predictions/components/prediction-leaderboard.tsx:88
#: src/features/predictions/components/prediction-leaderboard.tsx:89
msgid "{0, plural, one {# bracket in} other {# brackets in}}"
msgstr "{0, plural, one {# Bracket in} other {# Brackets in}}"
@@ -242,7 +242,7 @@ msgstr "* Vertrauensabschlag für Spieler mit <15 Spielen"
msgid "* If necessary"
msgstr "* Falls nötig"
#: src/features/predictions/components/prediction-leaderboard.tsx:178
#: src/features/predictions/components/prediction-leaderboard.tsx:190
msgid "* PICKS shows correct picks / total picks made"
msgstr "* PICKS zeigt richtige Picks / insgesamt abgegebene Picks"
@@ -275,7 +275,7 @@ msgstr "• <0>ALM:</0> Durchschnittlicher Rückstand bei Niederlage"
msgid "• <0>AWM:</0> Average Win Margin"
msgstr "• <0>AWM:</0> Durchschnittlicher Vorsprung bei Sieg"
#: src/features/predictions/components/prediction-leaderboard.tsx:171
#: src/features/predictions/components/prediction-leaderboard.tsx:183
msgid "• <0>Bracket reset:</0> only picked if your bracket triggers it. Worth double the Final."
msgstr "• <0>Bracket-Reset:</0> wird nur gewertet, wenn dein Bracket ihn auslöst. Zählt doppelt so viel wie das Finale."
@@ -291,7 +291,7 @@ msgstr "• <0>CF:</0> Erzielte Becher"
msgid "• <0>L:</0> Losses"
msgstr "• <0>L:</0> Niederlagen"
#: src/features/predictions/components/prediction-leaderboard.tsx:166
#: src/features/predictions/components/prediction-leaderboard.tsx:178
msgid "• <0>Losers bracket:</0> 5, 10, 20, 40…"
msgstr "• <0>Verlierer-Bracket:</0> 5, 10, 20, 40…"
@@ -315,7 +315,7 @@ msgstr "• <0>W:</0> Siege"
msgid "• <0>W%:</0> Win Percentage"
msgstr "• <0>W%:</0> Siegquote"
#: src/features/predictions/components/prediction-leaderboard.tsx:161
#: src/features/predictions/components/prediction-leaderboard.tsx:173
msgid "• <0>Winners bracket:</0> 10, 20, 40, 80…"
msgstr "• <0>Gewinner-Bracket:</0> 10, 20, 40, 80…"
@@ -327,7 +327,7 @@ msgstr "• Durchschnittliche Becher/Spiel (25%)"
msgid "• Average Win Margin (15%)"
msgstr "• Durchschnittlicher Vorsprung bei Sieg (15%)"
#: src/features/predictions/components/prediction-leaderboard.tsx:156
#: src/features/predictions/components/prediction-leaderboard.tsx:168
msgid "• Each correct pick earns points, doubling every round"
msgstr "• Jeder richtige Tipp bringt Punkte, die sich jede Runde verdoppeln"
@@ -824,7 +824,7 @@ msgstr "Verbinde dein Spotify-Konto"
msgid "Copy phone number"
msgstr "Telefonnummer kopieren"
#: src/features/predictions/components/prediction-leaderboard.tsx:186
#: src/features/predictions/components/prediction-leaderboard.tsx:198
msgid "Correct picks are worth more each round"
msgstr "Richtige Tipps sind in jeder Runde mehr wert"
@@ -1401,12 +1401,12 @@ msgstr "Heimteam noch offen — tippe zuerst die früheren Spiele"
msgid "hot"
msgstr "heiß"
#: src/features/predictions/components/prediction-leaderboard.tsx:145
#: src/features/predictions/components/prediction-leaderboard.tsx:157
msgid "How prediction scoring works"
msgstr "So funktioniert die Tipp-Wertung"
#: src/features/predictions/components/prediction-editor.tsx:182
#: src/features/predictions/components/prediction-editor.tsx:298
#: src/features/predictions/components/prediction-editor.tsx:304
msgid "How predictions work"
msgstr "So funktionieren Tipps"
@@ -1555,11 +1555,11 @@ msgstr "Ort ist erforderlich"
msgid "Lock in"
msgstr "Festlegen"
#: src/features/predictions/components/prediction-editor.tsx:289
#: src/features/predictions/components/prediction-editor.tsx:295
msgid "Lock in your bracket?"
msgstr "Turnierbaum festlegen?"
#: src/features/predictions/components/prediction-leaderboard.tsx:78
#: src/features/predictions/components/prediction-leaderboard.tsx:79
msgid "Lock in your own bracket to see everyone else's predictions."
msgstr "Leg deinen eigenen Turnierbaum fest, um die Tipps aller anderen zu sehen."
@@ -1603,7 +1603,7 @@ msgstr "Mainline"
msgid "Make Prediction"
msgstr "Tipp abgeben"
#: src/features/predictions/components/prediction-leaderboard.tsx:61
#: src/features/predictions/components/prediction-leaderboard.tsx:62
msgid "Make Your Prediction"
msgstr "Gib deinen Tipp ab"
@@ -1694,7 +1694,7 @@ msgstr "Matches für Regionals sind ungeordnet"
msgid "Matches Played"
msgstr "Gespielte Matches"
#: src/features/predictions/components/prediction-editor.tsx:307
#: src/features/predictions/components/prediction-editor.tsx:313
msgid "Matchup"
msgstr "Matchup"
@@ -1785,7 +1785,7 @@ msgstr "Neueste"
msgid "Next"
msgstr "Weiter"
#: src/features/predictions/components/prediction-editor.tsx:266
#: src/features/predictions/components/prediction-editor.tsx:277
msgid "Next match"
msgstr "Nächstes Match"
@@ -1874,7 +1874,7 @@ msgstr "Keine Spieler gefunden, die zu \"{search}\" passen"
msgid "No players yet"
msgstr "Noch keine Spieler"
#: src/features/predictions/components/prediction-leaderboard.tsx:124
#: src/features/predictions/components/prediction-leaderboard.tsx:125
msgid "No predictions"
msgstr "Keine Tipps"
@@ -1936,7 +1936,7 @@ msgstr "Noch keine Turniere"
msgid "No unresolved errors"
msgstr "Keine offenen Fehler"
#: src/features/predictions/components/prediction-leaderboard.tsx:127
#: src/features/predictions/components/prediction-leaderboard.tsx:128
msgid "Nobody made a prediction for this tournament."
msgstr "Niemand hat einen Tipp für dieses Turnier abgegeben."
@@ -2110,7 +2110,9 @@ msgid "Pick the earlier matches first — these teams aren't decided yet."
msgstr "Wähle zuerst die früheren Spiele — diese Teams stehen noch nicht fest."
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:114
#: src/features/predictions/components/prediction-leaderboard.tsx:257
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:112
#: src/features/predictions/components/oracle-card.tsx:92
#: src/features/predictions/components/prediction-leaderboard.tsx:269
msgid "PICKS"
msgstr "TIPPS"
@@ -2182,31 +2184,31 @@ msgstr "Wird auf {0} abgespielt"
msgid "Populate Knockout Bracket"
msgstr "K.-o.-Runde befüllen"
#: src/features/predictions/queries.ts:52
#: src/features/predictions/queries.ts:61
msgid "Prediction locked in!"
msgstr "Tipp festgelegt!"
#: src/features/predictions/components/prediction-leaderboard.tsx:153
#: src/features/predictions/components/prediction-leaderboard.tsx:165
msgid "Prediction Scoring:"
msgstr "Punktevergabe für Tipps:"
#: src/app/routes/_authed/tournaments/$id.predictions.tsx:23
#: src/features/predictions/components/prediction-leaderboard.tsx:138
#: src/features/predictions/components/prediction-leaderboard.tsx:150
#: src/features/tournaments/components/started-tournament/sections/nav-grid.tsx:106
#: src/features/tournaments/components/tournament-stats.tsx:202
#: src/features/tournaments/components/upcoming-tournament/index.tsx:155
msgid "Predictions"
msgstr "Tipps"
#: src/features/predictions/components/prediction-leaderboard.tsx:75
#: src/features/predictions/components/prediction-leaderboard.tsx:76
msgid "Predictions are open"
msgstr "Tipps sind offen"
#: src/features/predictions/queries.ts:67
#: src/features/predictions/queries.ts:76
msgid "Predictions reset"
msgstr "Tipps zurückgesetzt"
#: src/features/predictions/components/prediction-editor.tsx:256
#: src/features/predictions/components/prediction-editor.tsx:267
msgid "Previous match"
msgstr "Vorheriges Spiel"
@@ -2223,7 +2225,9 @@ msgid "Progress "
msgstr "Fortschritt "
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:106
#: src/features/predictions/components/prediction-leaderboard.tsx:249
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:104
#: src/features/predictions/components/oracle-card.tsx:84
#: src/features/predictions/components/prediction-leaderboard.tsx:261
msgid "PTS"
msgstr "PKT"
@@ -2364,7 +2368,7 @@ msgstr "Ergebnis bestätigt 🍻"
msgid "Score submitted — waiting for the other team"
msgstr "Ergebnis übermittelt — warte auf das andere Team"
#: src/features/predictions/components/prediction-leaderboard.tsx:188
#: src/features/predictions/components/prediction-leaderboard.tsx:200
msgid "Scoring starts when the first match begins"
msgstr "Die Wertung beginnt mit dem ersten Spiel"
@@ -2676,7 +2680,7 @@ msgstr "Status"
#: src/components/sheet/slide-panel/slide-panel.tsx:40
#: src/features/login/components/player-prompt/index.tsx:115
#: src/features/login/components/player-prompt/index.tsx:126
#: src/features/predictions/components/prediction-editor.tsx:281
#: src/features/predictions/components/prediction-editor.tsx:288
#: src/features/tournaments/components/edit-rules.tsx:27
msgid "Submit"
msgstr "Absenden"
@@ -2792,6 +2796,15 @@ msgstr "Test-Benachrichtigung gesendet"
msgid "The cups are racked and waiting. Check back soon."
msgstr "Die Becher sind aufgebaut und warten. Schau bald wieder vorbei."
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:98
#: src/features/predictions/components/oracle-card.tsx:56
msgid "The Oracle"
msgstr "Das Orakel"
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:49
msgid "The Oracle's Bracket"
msgstr "Turnierbaum des Orakels"
#: src/features/bracket/components/match-report.tsx:246
msgid "the other team"
msgstr "das andere Team"
@@ -3038,7 +3051,7 @@ msgstr "volumePercent muss eine Zahl sein"
#: src/features/matches/components/team-head-to-head-sheet.tsx:115
#: src/features/players/components/player-head-to-head-sheet.tsx:130
#: src/features/predictions/components/matchup-sheet.tsx:67
#: src/features/predictions/components/winner-selector.tsx:106
#: src/features/predictions/components/winner-selector.tsx:112
#: src/features/tournaments/components/started-tournament/sections/score-report-cta.tsx:53
msgid "vs"
msgstr "vs"
@@ -3078,6 +3091,10 @@ msgstr "WC"
msgid "Welcome to FLXN"
msgstr "Willkommen bei FLXN"
#: src/features/predictions/components/oracle-card.tsx:59
msgid "Who the FLXN gods favor to win"
msgstr "Wen die FLXN-Götter als Sieger sehen"
#: src/features/bracket/utils/group-label.ts:9
msgid "Wildcard {n}"
msgstr "Wildcard {n}"
+44 -27
View File
@@ -31,7 +31,7 @@ msgid "(Active)"
msgstr "(Active)"
#. placeholder {0}: leaderboard.count
#: src/features/predictions/components/prediction-leaderboard.tsx:88
#: src/features/predictions/components/prediction-leaderboard.tsx:89
msgid "{0, plural, one {# bracket in} other {# brackets in}}"
msgstr "{0, plural, one {# bracket in} other {# brackets in}}"
@@ -242,7 +242,7 @@ msgstr "* Confidence penalty applied for players with <15 matches"
msgid "* If necessary"
msgstr "* If necessary"
#: src/features/predictions/components/prediction-leaderboard.tsx:178
#: src/features/predictions/components/prediction-leaderboard.tsx:190
msgid "* PICKS shows correct picks / total picks made"
msgstr "* PICKS shows correct picks / total picks made"
@@ -275,7 +275,7 @@ msgstr "• <0>ALM:</0> Average Loss Margin"
msgid "• <0>AWM:</0> Average Win Margin"
msgstr "• <0>AWM:</0> Average Win Margin"
#: src/features/predictions/components/prediction-leaderboard.tsx:171
#: src/features/predictions/components/prediction-leaderboard.tsx:183
msgid "• <0>Bracket reset:</0> only picked if your bracket triggers it. Worth double the Final."
msgstr "• <0>Bracket reset:</0> only picked if your bracket triggers it. Worth double the Final."
@@ -291,7 +291,7 @@ msgstr "• <0>CF:</0> Cups For"
msgid "• <0>L:</0> Losses"
msgstr "• <0>L:</0> Losses"
#: src/features/predictions/components/prediction-leaderboard.tsx:166
#: src/features/predictions/components/prediction-leaderboard.tsx:178
msgid "• <0>Losers bracket:</0> 5, 10, 20, 40…"
msgstr "• <0>Losers bracket:</0> 5, 10, 20, 40…"
@@ -315,7 +315,7 @@ msgstr "• <0>W:</0> Wins"
msgid "• <0>W%:</0> Win Percentage"
msgstr "• <0>W%:</0> Win Percentage"
#: src/features/predictions/components/prediction-leaderboard.tsx:161
#: src/features/predictions/components/prediction-leaderboard.tsx:173
msgid "• <0>Winners bracket:</0> 10, 20, 40, 80…"
msgstr "• <0>Winners bracket:</0> 10, 20, 40, 80…"
@@ -327,7 +327,7 @@ msgstr "• Average Cups/Match (25%)"
msgid "• Average Win Margin (15%)"
msgstr "• Average Win Margin (15%)"
#: src/features/predictions/components/prediction-leaderboard.tsx:156
#: src/features/predictions/components/prediction-leaderboard.tsx:168
msgid "• Each correct pick earns points, doubling every round"
msgstr "• Each correct pick earns points, doubling every round"
@@ -824,7 +824,7 @@ msgstr "Connect your Spotify account"
msgid "Copy phone number"
msgstr "Copy phone number"
#: src/features/predictions/components/prediction-leaderboard.tsx:186
#: src/features/predictions/components/prediction-leaderboard.tsx:198
msgid "Correct picks are worth more each round"
msgstr "Correct picks are worth more each round"
@@ -1401,12 +1401,12 @@ msgstr "Home team TBD — pick the earlier matches first"
msgid "hot"
msgstr "hot"
#: src/features/predictions/components/prediction-leaderboard.tsx:145
#: src/features/predictions/components/prediction-leaderboard.tsx:157
msgid "How prediction scoring works"
msgstr "How prediction scoring works"
#: src/features/predictions/components/prediction-editor.tsx:182
#: src/features/predictions/components/prediction-editor.tsx:298
#: src/features/predictions/components/prediction-editor.tsx:304
msgid "How predictions work"
msgstr "How predictions work"
@@ -1555,11 +1555,11 @@ msgstr "Location is required"
msgid "Lock in"
msgstr "Lock in"
#: src/features/predictions/components/prediction-editor.tsx:289
#: src/features/predictions/components/prediction-editor.tsx:295
msgid "Lock in your bracket?"
msgstr "Lock in your bracket?"
#: src/features/predictions/components/prediction-leaderboard.tsx:78
#: src/features/predictions/components/prediction-leaderboard.tsx:79
msgid "Lock in your own bracket to see everyone else's predictions."
msgstr "Lock in your own bracket to see everyone else's predictions."
@@ -1603,7 +1603,7 @@ msgstr "Mainline"
msgid "Make Prediction"
msgstr "Make Prediction"
#: src/features/predictions/components/prediction-leaderboard.tsx:61
#: src/features/predictions/components/prediction-leaderboard.tsx:62
msgid "Make Your Prediction"
msgstr "Make Your Prediction"
@@ -1694,7 +1694,7 @@ msgstr "Matches for regionals are unordered"
msgid "Matches Played"
msgstr "Matches Played"
#: src/features/predictions/components/prediction-editor.tsx:307
#: src/features/predictions/components/prediction-editor.tsx:313
msgid "Matchup"
msgstr "Matchup"
@@ -1785,7 +1785,7 @@ msgstr "Newest"
msgid "Next"
msgstr "Next"
#: src/features/predictions/components/prediction-editor.tsx:266
#: src/features/predictions/components/prediction-editor.tsx:277
msgid "Next match"
msgstr "Next match"
@@ -1874,7 +1874,7 @@ msgstr "No players found matching \"{search}\""
msgid "No players yet"
msgstr "No players yet"
#: src/features/predictions/components/prediction-leaderboard.tsx:124
#: src/features/predictions/components/prediction-leaderboard.tsx:125
msgid "No predictions"
msgstr "No predictions"
@@ -1936,7 +1936,7 @@ msgstr "No Tournaments Yet"
msgid "No unresolved errors"
msgstr "No unresolved errors"
#: src/features/predictions/components/prediction-leaderboard.tsx:127
#: src/features/predictions/components/prediction-leaderboard.tsx:128
msgid "Nobody made a prediction for this tournament."
msgstr "Nobody made a prediction for this tournament."
@@ -2110,7 +2110,9 @@ msgid "Pick the earlier matches first — these teams aren't decided yet."
msgstr "Pick the earlier matches first — these teams aren't decided yet."
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:114
#: src/features/predictions/components/prediction-leaderboard.tsx:257
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:112
#: src/features/predictions/components/oracle-card.tsx:92
#: src/features/predictions/components/prediction-leaderboard.tsx:269
msgid "PICKS"
msgstr "PICKS"
@@ -2182,31 +2184,31 @@ msgstr "Playing on {0}"
msgid "Populate Knockout Bracket"
msgstr "Populate Knockout Bracket"
#: src/features/predictions/queries.ts:52
#: src/features/predictions/queries.ts:61
msgid "Prediction locked in!"
msgstr "Prediction locked in!"
#: src/features/predictions/components/prediction-leaderboard.tsx:153
#: src/features/predictions/components/prediction-leaderboard.tsx:165
msgid "Prediction Scoring:"
msgstr "Prediction Scoring:"
#: src/app/routes/_authed/tournaments/$id.predictions.tsx:23
#: src/features/predictions/components/prediction-leaderboard.tsx:138
#: src/features/predictions/components/prediction-leaderboard.tsx:150
#: src/features/tournaments/components/started-tournament/sections/nav-grid.tsx:106
#: src/features/tournaments/components/tournament-stats.tsx:202
#: src/features/tournaments/components/upcoming-tournament/index.tsx:155
msgid "Predictions"
msgstr "Predictions"
#: src/features/predictions/components/prediction-leaderboard.tsx:75
#: src/features/predictions/components/prediction-leaderboard.tsx:76
msgid "Predictions are open"
msgstr "Predictions are open"
#: src/features/predictions/queries.ts:67
#: src/features/predictions/queries.ts:76
msgid "Predictions reset"
msgstr "Predictions reset"
#: src/features/predictions/components/prediction-editor.tsx:256
#: src/features/predictions/components/prediction-editor.tsx:267
msgid "Previous match"
msgstr "Previous match"
@@ -2223,7 +2225,9 @@ msgid "Progress "
msgstr "Progress "
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:106
#: src/features/predictions/components/prediction-leaderboard.tsx:249
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:104
#: src/features/predictions/components/oracle-card.tsx:84
#: src/features/predictions/components/prediction-leaderboard.tsx:261
msgid "PTS"
msgstr "PTS"
@@ -2364,7 +2368,7 @@ msgstr "Score confirmed 🍻"
msgid "Score submitted — waiting for the other team"
msgstr "Score submitted — waiting for the other team"
#: src/features/predictions/components/prediction-leaderboard.tsx:188
#: src/features/predictions/components/prediction-leaderboard.tsx:200
msgid "Scoring starts when the first match begins"
msgstr "Scoring starts when the first match begins"
@@ -2676,7 +2680,7 @@ msgstr "Status"
#: src/components/sheet/slide-panel/slide-panel.tsx:40
#: src/features/login/components/player-prompt/index.tsx:115
#: src/features/login/components/player-prompt/index.tsx:126
#: src/features/predictions/components/prediction-editor.tsx:281
#: src/features/predictions/components/prediction-editor.tsx:288
#: src/features/tournaments/components/edit-rules.tsx:27
msgid "Submit"
msgstr "Submit"
@@ -2792,6 +2796,15 @@ msgstr "Test notification sent"
msgid "The cups are racked and waiting. Check back soon."
msgstr "The cups are racked and waiting. Check back soon."
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:98
#: src/features/predictions/components/oracle-card.tsx:56
msgid "The Oracle"
msgstr "The Oracle"
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:49
msgid "The Oracle's Bracket"
msgstr "The Oracle's Bracket"
#: src/features/bracket/components/match-report.tsx:246
msgid "the other team"
msgstr "the other team"
@@ -3038,7 +3051,7 @@ msgstr "volumePercent must be a number"
#: src/features/matches/components/team-head-to-head-sheet.tsx:115
#: src/features/players/components/player-head-to-head-sheet.tsx:130
#: src/features/predictions/components/matchup-sheet.tsx:67
#: src/features/predictions/components/winner-selector.tsx:106
#: src/features/predictions/components/winner-selector.tsx:112
#: src/features/tournaments/components/started-tournament/sections/score-report-cta.tsx:53
msgid "vs"
msgstr "vs"
@@ -3078,6 +3091,10 @@ msgstr "WC"
msgid "Welcome to FLXN"
msgstr "Welcome to FLXN"
#: src/features/predictions/components/oracle-card.tsx:59
msgid "Who the FLXN gods favor to win"
msgstr "Who the FLXN gods favor to win"
#: src/features/bracket/utils/group-label.ts:9
msgid "Wildcard {n}"
msgstr "Wildcard {n}"
+44 -27
View File
@@ -31,7 +31,7 @@ msgid "(Active)"
msgstr "(Activo)"
#. placeholder {0}: leaderboard.count
#: src/features/predictions/components/prediction-leaderboard.tsx:88
#: src/features/predictions/components/prediction-leaderboard.tsx:89
msgid "{0, plural, one {# bracket in} other {# brackets in}}"
msgstr "{0, plural, one {# bracket en} other {# brackets en}}"
@@ -242,7 +242,7 @@ msgstr "* Se aplica una penalización de confianza a jugadores con menos de 15 p
msgid "* If necessary"
msgstr "* Si es necesario"
#: src/features/predictions/components/prediction-leaderboard.tsx:178
#: src/features/predictions/components/prediction-leaderboard.tsx:190
msgid "* PICKS shows correct picks / total picks made"
msgstr "* PICKS muestra aciertos / total de pronósticos realizados"
@@ -275,7 +275,7 @@ msgstr "• <0>ALM:</0> Margen Promedio de Derrota"
msgid "• <0>AWM:</0> Average Win Margin"
msgstr "• <0>AWM:</0> Margen Promedio de Victoria"
#: src/features/predictions/components/prediction-leaderboard.tsx:171
#: src/features/predictions/components/prediction-leaderboard.tsx:183
msgid "• <0>Bracket reset:</0> only picked if your bracket triggers it. Worth double the Final."
msgstr "• <0>Reinicio de bracket:</0> solo se selecciona si tu bracket lo activa. Vale el doble de la Final."
@@ -291,7 +291,7 @@ msgstr "• <0>VF:</0> Vasos a Favor"
msgid "• <0>L:</0> Losses"
msgstr "• <0>D:</0> Derrotas"
#: src/features/predictions/components/prediction-leaderboard.tsx:166
#: src/features/predictions/components/prediction-leaderboard.tsx:178
msgid "• <0>Losers bracket:</0> 5, 10, 20, 40…"
msgstr "• <0>Bracket de perdedores:</0> 5, 10, 20, 40…"
@@ -315,7 +315,7 @@ msgstr "• <0>V:</0> Victorias"
msgid "• <0>W%:</0> Win Percentage"
msgstr "• <0>V%:</0> Porcentaje de Victorias"
#: src/features/predictions/components/prediction-leaderboard.tsx:161
#: src/features/predictions/components/prediction-leaderboard.tsx:173
msgid "• <0>Winners bracket:</0> 10, 20, 40, 80…"
msgstr "• <0>Bracket de ganadores:</0> 10, 20, 40, 80…"
@@ -327,7 +327,7 @@ msgstr "• Promedio de Vasos/Partido (25%)"
msgid "• Average Win Margin (15%)"
msgstr "• Margen Promedio de Victoria (15%)"
#: src/features/predictions/components/prediction-leaderboard.tsx:156
#: src/features/predictions/components/prediction-leaderboard.tsx:168
msgid "• Each correct pick earns points, doubling every round"
msgstr "• Cada acierto suma puntos, y se duplican cada ronda"
@@ -824,7 +824,7 @@ msgstr "Conecta tu cuenta de Spotify"
msgid "Copy phone number"
msgstr "Copiar número de teléfono"
#: src/features/predictions/components/prediction-leaderboard.tsx:186
#: src/features/predictions/components/prediction-leaderboard.tsx:198
msgid "Correct picks are worth more each round"
msgstr "Los aciertos valen más en cada ronda"
@@ -1401,12 +1401,12 @@ msgstr "Equipo local por definir — elige primero los partidos anteriores"
msgid "hot"
msgstr "caliente"
#: src/features/predictions/components/prediction-leaderboard.tsx:145
#: src/features/predictions/components/prediction-leaderboard.tsx:157
msgid "How prediction scoring works"
msgstr "Cómo funciona la puntuación de predicciones"
#: src/features/predictions/components/prediction-editor.tsx:182
#: src/features/predictions/components/prediction-editor.tsx:298
#: src/features/predictions/components/prediction-editor.tsx:304
msgid "How predictions work"
msgstr "Cómo funcionan las predicciones"
@@ -1555,11 +1555,11 @@ msgstr "La ubicación es obligatoria"
msgid "Lock in"
msgstr "Confirmar"
#: src/features/predictions/components/prediction-editor.tsx:289
#: src/features/predictions/components/prediction-editor.tsx:295
msgid "Lock in your bracket?"
msgstr "¿Confirmar tu bracket?"
#: src/features/predictions/components/prediction-leaderboard.tsx:78
#: src/features/predictions/components/prediction-leaderboard.tsx:79
msgid "Lock in your own bracket to see everyone else's predictions."
msgstr "Confirma tu propio bracket para ver las predicciones de los demás."
@@ -1603,7 +1603,7 @@ msgstr "Mainline"
msgid "Make Prediction"
msgstr "Hacer predicción"
#: src/features/predictions/components/prediction-leaderboard.tsx:61
#: src/features/predictions/components/prediction-leaderboard.tsx:62
msgid "Make Your Prediction"
msgstr "Haz tu predicción"
@@ -1694,7 +1694,7 @@ msgstr "Los partidos de regionales no tienen un orden específico"
msgid "Matches Played"
msgstr "Partidos jugados"
#: src/features/predictions/components/prediction-editor.tsx:307
#: src/features/predictions/components/prediction-editor.tsx:313
msgid "Matchup"
msgstr "Enfrentamiento"
@@ -1785,7 +1785,7 @@ msgstr "Más recientes"
msgid "Next"
msgstr "Siguiente"
#: src/features/predictions/components/prediction-editor.tsx:266
#: src/features/predictions/components/prediction-editor.tsx:277
msgid "Next match"
msgstr "Siguiente partido"
@@ -1874,7 +1874,7 @@ msgstr "No se encontraron jugadores que coincidan con \"{search}\""
msgid "No players yet"
msgstr "Aún no hay jugadores"
#: src/features/predictions/components/prediction-leaderboard.tsx:124
#: src/features/predictions/components/prediction-leaderboard.tsx:125
msgid "No predictions"
msgstr "Sin predicciones"
@@ -1936,7 +1936,7 @@ msgstr "Aún no hay torneos"
msgid "No unresolved errors"
msgstr "No hay errores sin resolver"
#: src/features/predictions/components/prediction-leaderboard.tsx:127
#: src/features/predictions/components/prediction-leaderboard.tsx:128
msgid "Nobody made a prediction for this tournament."
msgstr "Nadie hizo una predicción para este torneo."
@@ -2110,7 +2110,9 @@ msgid "Pick the earlier matches first — these teams aren't decided yet."
msgstr "Elige primero los partidos anteriores — estos equipos todavía no están decididos."
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:114
#: src/features/predictions/components/prediction-leaderboard.tsx:257
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:112
#: src/features/predictions/components/oracle-card.tsx:92
#: src/features/predictions/components/prediction-leaderboard.tsx:269
msgid "PICKS"
msgstr "PICKS"
@@ -2182,31 +2184,31 @@ msgstr "Reproduciendo en {0}"
msgid "Populate Knockout Bracket"
msgstr "Llenar el bracket eliminatorio"
#: src/features/predictions/queries.ts:52
#: src/features/predictions/queries.ts:61
msgid "Prediction locked in!"
msgstr "¡Predicción confirmada!"
#: src/features/predictions/components/prediction-leaderboard.tsx:153
#: src/features/predictions/components/prediction-leaderboard.tsx:165
msgid "Prediction Scoring:"
msgstr "Puntuación de predicciones:"
#: src/app/routes/_authed/tournaments/$id.predictions.tsx:23
#: src/features/predictions/components/prediction-leaderboard.tsx:138
#: src/features/predictions/components/prediction-leaderboard.tsx:150
#: src/features/tournaments/components/started-tournament/sections/nav-grid.tsx:106
#: src/features/tournaments/components/tournament-stats.tsx:202
#: src/features/tournaments/components/upcoming-tournament/index.tsx:155
msgid "Predictions"
msgstr "Predicciones"
#: src/features/predictions/components/prediction-leaderboard.tsx:75
#: src/features/predictions/components/prediction-leaderboard.tsx:76
msgid "Predictions are open"
msgstr "Las predicciones están abiertas"
#: src/features/predictions/queries.ts:67
#: src/features/predictions/queries.ts:76
msgid "Predictions reset"
msgstr "Predicciones restablecidas"
#: src/features/predictions/components/prediction-editor.tsx:256
#: src/features/predictions/components/prediction-editor.tsx:267
msgid "Previous match"
msgstr "Partido anterior"
@@ -2223,7 +2225,9 @@ msgid "Progress "
msgstr "Progreso "
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:106
#: src/features/predictions/components/prediction-leaderboard.tsx:249
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:104
#: src/features/predictions/components/oracle-card.tsx:84
#: src/features/predictions/components/prediction-leaderboard.tsx:261
msgid "PTS"
msgstr "PTS"
@@ -2364,7 +2368,7 @@ msgstr "Marcador confirmado 🍻"
msgid "Score submitted — waiting for the other team"
msgstr "Marcador enviado — esperando al otro equipo"
#: src/features/predictions/components/prediction-leaderboard.tsx:188
#: src/features/predictions/components/prediction-leaderboard.tsx:200
msgid "Scoring starts when the first match begins"
msgstr "La puntuación empieza con el primer partido"
@@ -2676,7 +2680,7 @@ msgstr "Estado"
#: src/components/sheet/slide-panel/slide-panel.tsx:40
#: src/features/login/components/player-prompt/index.tsx:115
#: src/features/login/components/player-prompt/index.tsx:126
#: src/features/predictions/components/prediction-editor.tsx:281
#: src/features/predictions/components/prediction-editor.tsx:288
#: src/features/tournaments/components/edit-rules.tsx:27
msgid "Submit"
msgstr "Enviar"
@@ -2792,6 +2796,15 @@ msgstr "Notificación de prueba enviada"
msgid "The cups are racked and waiting. Check back soon."
msgstr "Los vasos ya están acomodados y esperando. Vuelve pronto."
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:98
#: src/features/predictions/components/oracle-card.tsx:56
msgid "The Oracle"
msgstr "El Oráculo"
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:49
msgid "The Oracle's Bracket"
msgstr "Bracket del Oráculo"
#: src/features/bracket/components/match-report.tsx:246
msgid "the other team"
msgstr "el otro equipo"
@@ -3038,7 +3051,7 @@ msgstr "volumePercent debe ser un número"
#: src/features/matches/components/team-head-to-head-sheet.tsx:115
#: src/features/players/components/player-head-to-head-sheet.tsx:130
#: src/features/predictions/components/matchup-sheet.tsx:67
#: src/features/predictions/components/winner-selector.tsx:106
#: src/features/predictions/components/winner-selector.tsx:112
#: src/features/tournaments/components/started-tournament/sections/score-report-cta.tsx:53
msgid "vs"
msgstr "vs"
@@ -3078,6 +3091,10 @@ msgstr "COM"
msgid "Welcome to FLXN"
msgstr "Bienvenido a FLXN"
#: src/features/predictions/components/oracle-card.tsx:59
msgid "Who the FLXN gods favor to win"
msgstr "A quién favorecen los dioses de FLXN para ganar"
#: src/features/bracket/utils/group-label.ts:9
msgid "Wildcard {n}"
msgstr "Comodín {n}"
+44 -27
View File
@@ -31,7 +31,7 @@ msgid "(Active)"
msgstr "(アクティブ)"
#. placeholder {0}: leaderboard.count
#: src/features/predictions/components/prediction-leaderboard.tsx:88
#: src/features/predictions/components/prediction-leaderboard.tsx:89
msgid "{0, plural, one {# bracket in} other {# brackets in}}"
msgstr "{0, plural, one {#ブラケット参加} other {#ブラケット参加}}"
@@ -242,7 +242,7 @@ msgstr "※試合数が15未満のプレイヤーには信頼度ペナルティ
msgid "* If necessary"
msgstr "※必要な場合"
#: src/features/predictions/components/prediction-leaderboard.tsx:178
#: src/features/predictions/components/prediction-leaderboard.tsx:190
msgid "* PICKS shows correct picks / total picks made"
msgstr "※PICKSは正解数/予想総数を表示"
@@ -275,7 +275,7 @@ msgstr "• <0>ALM:</0>平均敗差"
msgid "• <0>AWM:</0> Average Win Margin"
msgstr "• <0>AWM:</0>平均勝差"
#: src/features/predictions/components/prediction-leaderboard.tsx:171
#: src/features/predictions/components/prediction-leaderboard.tsx:183
msgid "• <0>Bracket reset:</0> only picked if your bracket triggers it. Worth double the Final."
msgstr "• <0>ブラケットリセット:</0>自分のブラケットで発生した場合のみ選択可能。ファイナルの2倍の得点。"
@@ -291,7 +291,7 @@ msgstr "• <0>CF:</0>獲得カップ数"
msgid "• <0>L:</0> Losses"
msgstr "• <0>L:</0>敗数"
#: src/features/predictions/components/prediction-leaderboard.tsx:166
#: src/features/predictions/components/prediction-leaderboard.tsx:178
msgid "• <0>Losers bracket:</0> 5, 10, 20, 40…"
msgstr "• <0>敗者ブラケット:</0>5、10、20、40…"
@@ -315,7 +315,7 @@ msgstr "• <0>W:</0>勝数"
msgid "• <0>W%:</0> Win Percentage"
msgstr "• <0>W%:</0>勝率"
#: src/features/predictions/components/prediction-leaderboard.tsx:161
#: src/features/predictions/components/prediction-leaderboard.tsx:173
msgid "• <0>Winners bracket:</0> 10, 20, 40, 80…"
msgstr "• <0>勝者ブラケット:</0>10、20、40、80…"
@@ -327,7 +327,7 @@ msgstr "• 平均獲得カップ数/試合(25%)"
msgid "• Average Win Margin (15%)"
msgstr "• 平均勝差(15%)"
#: src/features/predictions/components/prediction-leaderboard.tsx:156
#: src/features/predictions/components/prediction-leaderboard.tsx:168
msgid "• Each correct pick earns points, doubling every round"
msgstr "• 予想が的中するたびにポイント獲得、ラウンドごとに倍増"
@@ -824,7 +824,7 @@ msgstr "Spotifyアカウントを連携しましょう"
msgid "Copy phone number"
msgstr "電話番号をコピー"
#: src/features/predictions/components/prediction-leaderboard.tsx:186
#: src/features/predictions/components/prediction-leaderboard.tsx:198
msgid "Correct picks are worth more each round"
msgstr "予想が当たると、ラウンドが進むほど得点がアップします"
@@ -1401,12 +1401,12 @@ msgstr "ホームチーム未定 — 先に前の試合を選んでください"
msgid "hot"
msgstr "暑い"
#: src/features/predictions/components/prediction-leaderboard.tsx:145
#: src/features/predictions/components/prediction-leaderboard.tsx:157
msgid "How prediction scoring works"
msgstr "予想のスコアの仕組み"
#: src/features/predictions/components/prediction-editor.tsx:182
#: src/features/predictions/components/prediction-editor.tsx:298
#: src/features/predictions/components/prediction-editor.tsx:304
msgid "How predictions work"
msgstr "予想のしくみ"
@@ -1555,11 +1555,11 @@ msgstr "場所は必須です"
msgid "Lock in"
msgstr "確定する"
#: src/features/predictions/components/prediction-editor.tsx:289
#: src/features/predictions/components/prediction-editor.tsx:295
msgid "Lock in your bracket?"
msgstr "ブラケットを確定しますか?"
#: src/features/predictions/components/prediction-leaderboard.tsx:78
#: src/features/predictions/components/prediction-leaderboard.tsx:79
msgid "Lock in your own bracket to see everyone else's predictions."
msgstr "自分のブラケットを確定すると、ほかの人の予想を見られます。"
@@ -1603,7 +1603,7 @@ msgstr "メインライン"
msgid "Make Prediction"
msgstr "予想する"
#: src/features/predictions/components/prediction-leaderboard.tsx:61
#: src/features/predictions/components/prediction-leaderboard.tsx:62
msgid "Make Your Prediction"
msgstr "予想を入力"
@@ -1694,7 +1694,7 @@ msgstr "地区予選の試合は順不同です"
msgid "Matches Played"
msgstr "試合数"
#: src/features/predictions/components/prediction-editor.tsx:307
#: src/features/predictions/components/prediction-editor.tsx:313
msgid "Matchup"
msgstr "対戦カード"
@@ -1785,7 +1785,7 @@ msgstr "新しい順"
msgid "Next"
msgstr "次へ"
#: src/features/predictions/components/prediction-editor.tsx:266
#: src/features/predictions/components/prediction-editor.tsx:277
msgid "Next match"
msgstr "次の試合"
@@ -1874,7 +1874,7 @@ msgstr "「{search}」に一致するプレイヤーが見つかりません"
msgid "No players yet"
msgstr "プレイヤーはまだいません"
#: src/features/predictions/components/prediction-leaderboard.tsx:124
#: src/features/predictions/components/prediction-leaderboard.tsx:125
msgid "No predictions"
msgstr "予想はありません"
@@ -1936,7 +1936,7 @@ msgstr "トーナメントはまだありません"
msgid "No unresolved errors"
msgstr "未解決のエラーはありません"
#: src/features/predictions/components/prediction-leaderboard.tsx:127
#: src/features/predictions/components/prediction-leaderboard.tsx:128
msgid "Nobody made a prediction for this tournament."
msgstr "このトーナメントで予想をした人はいません。"
@@ -2110,7 +2110,9 @@ msgid "Pick the earlier matches first — these teams aren't decided yet."
msgstr "先に前の試合を選んでください — これらのチームはまだ決まっていません。"
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:114
#: src/features/predictions/components/prediction-leaderboard.tsx:257
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:112
#: src/features/predictions/components/oracle-card.tsx:92
#: src/features/predictions/components/prediction-leaderboard.tsx:269
msgid "PICKS"
msgstr "PICKS"
@@ -2182,31 +2184,31 @@ msgstr "{0}で再生中"
msgid "Populate Knockout Bracket"
msgstr "ノックアウトブラケットを作成"
#: src/features/predictions/queries.ts:52
#: src/features/predictions/queries.ts:61
msgid "Prediction locked in!"
msgstr "予想を確定しました!"
#: src/features/predictions/components/prediction-leaderboard.tsx:153
#: src/features/predictions/components/prediction-leaderboard.tsx:165
msgid "Prediction Scoring:"
msgstr "予想の得点方式:"
#: src/app/routes/_authed/tournaments/$id.predictions.tsx:23
#: src/features/predictions/components/prediction-leaderboard.tsx:138
#: src/features/predictions/components/prediction-leaderboard.tsx:150
#: src/features/tournaments/components/started-tournament/sections/nav-grid.tsx:106
#: src/features/tournaments/components/tournament-stats.tsx:202
#: src/features/tournaments/components/upcoming-tournament/index.tsx:155
msgid "Predictions"
msgstr "予想"
#: src/features/predictions/components/prediction-leaderboard.tsx:75
#: src/features/predictions/components/prediction-leaderboard.tsx:76
msgid "Predictions are open"
msgstr "予想受付中"
#: src/features/predictions/queries.ts:67
#: src/features/predictions/queries.ts:76
msgid "Predictions reset"
msgstr "予想をリセットしました"
#: src/features/predictions/components/prediction-editor.tsx:256
#: src/features/predictions/components/prediction-editor.tsx:267
msgid "Previous match"
msgstr "前の試合"
@@ -2223,7 +2225,9 @@ msgid "Progress "
msgstr "進行状況 "
#: src/app/routes/_authed/tournaments/$id.predictions_.$playerId.tsx:106
#: src/features/predictions/components/prediction-leaderboard.tsx:249
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:104
#: src/features/predictions/components/oracle-card.tsx:84
#: src/features/predictions/components/prediction-leaderboard.tsx:261
msgid "PTS"
msgstr "PTS"
@@ -2364,7 +2368,7 @@ msgstr "スコア確定 🍻"
msgid "Score submitted — waiting for the other team"
msgstr "スコアを送信しました — 相手チームの確認待ちです"
#: src/features/predictions/components/prediction-leaderboard.tsx:188
#: src/features/predictions/components/prediction-leaderboard.tsx:200
msgid "Scoring starts when the first match begins"
msgstr "採点は最初の試合から始まります"
@@ -2676,7 +2680,7 @@ msgstr "ステータス"
#: src/components/sheet/slide-panel/slide-panel.tsx:40
#: src/features/login/components/player-prompt/index.tsx:115
#: src/features/login/components/player-prompt/index.tsx:126
#: src/features/predictions/components/prediction-editor.tsx:281
#: src/features/predictions/components/prediction-editor.tsx:288
#: src/features/tournaments/components/edit-rules.tsx:27
msgid "Submit"
msgstr "送信"
@@ -2792,6 +2796,15 @@ msgstr "テスト通知を送信しました"
msgid "The cups are racked and waiting. Check back soon."
msgstr "カップは準備万端!また後でチェックしてね。"
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:98
#: src/features/predictions/components/oracle-card.tsx:56
msgid "The Oracle"
msgstr "オラクル"
#: src/app/routes/_authed/tournaments/$id.predictions_.oracle.tsx:49
msgid "The Oracle's Bracket"
msgstr "オラクルのブラケット"
#: src/features/bracket/components/match-report.tsx:246
msgid "the other team"
msgstr "相手チーム"
@@ -3038,7 +3051,7 @@ msgstr "volumePercentは数値である必要があります"
#: src/features/matches/components/team-head-to-head-sheet.tsx:115
#: src/features/players/components/player-head-to-head-sheet.tsx:130
#: src/features/predictions/components/matchup-sheet.tsx:67
#: src/features/predictions/components/winner-selector.tsx:106
#: src/features/predictions/components/winner-selector.tsx:112
#: src/features/tournaments/components/started-tournament/sections/score-report-cta.tsx:53
msgid "vs"
msgstr "vs"
@@ -3078,6 +3091,10 @@ msgstr "WC"
msgid "Welcome to FLXN"
msgstr "FLXNへようこそ"
#: src/features/predictions/components/oracle-card.tsx:59
msgid "Who the FLXN gods favor to win"
msgstr "FLXNの神々が優勝を予言するチーム"
#: src/features/bracket/utils/group-label.ts:9
msgid "Wildcard {n}"
msgstr "ワイルドカード{n}"