refactor: remove legacy round-robin repair

This commit is contained in:
dahyeon committed 2026-06-19 01:36:34 -07:00
1 parent 7399968fe8
commit ade5735dc2
3 files changed
+39 -54

No files matched your search

+13 -3
View File
@@ -41,6 +41,7 @@ import type {
ApiPositionPreference,
ApiTierInfo,
ManualTournamentResultCollectResponse,
MatchGameMode,
Position,
TeamSide,
TournamentCodeSlotView,
@@ -1458,7 +1459,13 @@ function TournamentCodeDisplay({ slot }: { slot: TournamentCodeSlotView }) {
);
}
function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) {
function TournamentCodeList({
slots,
gameMode,
}: {
slots: TournamentCodeSlotView[];
gameMode: MatchGameMode;
}) {
if (slots.length === 0) {
return (
<div className="border border-dashed border-base-content/10 px-3 py-3 text-xs text-base-content/30">
@@ -1469,7 +1476,7 @@ function TournamentCodeList({ slots }: { slots: TournamentCodeSlotView[] }) {
function renderSlot(slot: TournamentCodeSlotView) {
const shouldShowTeamLabel =
Boolean(slot.roundNumber) || slot.teamAIndex > 1 || slot.teamBIndex > 2;
gameMode === "round-robin" || slot.teamAIndex > 1 || slot.teamBIndex > 2;
return (
<div key={slot.gameNumber} className="flex items-start gap-2">
@@ -2829,7 +2836,10 @@ export default function MatchDetailPage() {
{(match.status === "team-built" ||
match.status === "in-progress") && (
<SideCard title="토너먼트 코드">
<TournamentCodeList slots={match.tournamentCodes} />
<TournamentCodeList
slots={match.tournamentCodes}
gameMode={match.gameMode}
/>
<PoolStatsHint enabled={canManageAuction} />
</SideCard>
)}