From 3717f4230caa64fc3255bd7b9ee09f3875a4fceb Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Mar 2026 11:34:36 +0000 Subject: Remove MatchCell from tournament bracket, use connector line colors only MatchCell displayed player names redundantly alongside PlayerCards. Now tournament progression is shown only through connector line colors: pink for winner, gray for loser, black for undecided. https://claude.ai/code/session_01PoJoubE1hzxHhxMYFKzReb --- frontend/app/pages/TournamentPage.tsx | 71 +---------------------------------- 1 file changed, 1 insertion(+), 70 deletions(-) diff --git a/frontend/app/pages/TournamentPage.tsx b/frontend/app/pages/TournamentPage.tsx index f555ba0..afcb772 100644 --- a/frontend/app/pages/TournamentPage.tsx +++ b/frontend/app/pages/TournamentPage.tsx @@ -47,48 +47,6 @@ function PlayerCard({ entry }: { entry: TournamentEntry | undefined }) { ); } -function MatchCell({ match }: { match: TournamentMatch }) { - if (match.is_bye) { - return ( -
- BYE -
- ); - } - - const p1Color = match.winner_user_id - ? match.winner_user_id === match.player1?.user_id - ? "border-pink-700" - : "border-gray-400" - : "border-black"; - const p2Color = match.winner_user_id - ? match.winner_user_id === match.player2?.user_id - ? "border-pink-700" - : "border-gray-400" - : "border-black"; - - return ( -
-
- {match.player1?.display_name ?? "?"} - {match.player1_score !== undefined && ( - {match.player1_score} - )} -
-
- {match.player2?.display_name ?? "?"} - {match.player2_score !== undefined && ( - {match.player2_score} - )} -
-
- ); -} - function Connector({ position, colSpan, @@ -157,34 +115,7 @@ function TournamentBracket({ tournament }: { tournament: Tournament }) { const numPositions = bracket_size / (1 << (round + 1)); const colSpan = bracket_size / numPositions; - // Match cells for this round - const matchCells: React.ReactNode[] = []; - for (let pos = 0; pos < numPositions; pos++) { - const match = matchByKey.get(`${round}-${pos}`); - matchCells.push( -
- {match ? : null} -
, - ); - } - rows.push( -
- {matchCells} -
, - ); - - // Connectors below this round's matches + // Connectors for this round const connectors: React.ReactNode[] = []; for (let pos = 0; pos < numPositions; pos++) { const match = matchByKey.get(`${round}-${pos}`); -- cgit v1.3.1