code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 13s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
Some checks failed
CI / lint-typecheck (pull_request) Failing after 13s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
This commit is contained in:
@@ -47,20 +47,25 @@ export function TeamLeaderboardPreview({ teams, onTeamClick, onNavigateToTeams }
|
||||
<LeaderboardRow
|
||||
key={team.id}
|
||||
onClick={() => onTeamClick(team.id)}
|
||||
rank={<RankBadge rank={position} />}
|
||||
rank={
|
||||
<Group gap={4} data-testid={`standing-position-${position}`}>
|
||||
<RankBadge rank={position} />
|
||||
</Group>
|
||||
}
|
||||
identity={
|
||||
<Group gap={4}>
|
||||
<Avatar
|
||||
src={team.logoUrl || getMediaUrl('team-logo', team.id)}
|
||||
alt={team.name}
|
||||
size="sm"
|
||||
<Group gap={4} data-testid={`standing-team-${team.id}`}>
|
||||
<Avatar
|
||||
src={team.logoUrl || getMediaUrl('team-logo', team.id)}
|
||||
alt={team.name}
|
||||
size="sm"
|
||||
/>
|
||||
<Group direction="column" align="start" gap={0}>
|
||||
<Text
|
||||
weight="bold"
|
||||
<Text
|
||||
weight="bold"
|
||||
variant="high"
|
||||
truncate
|
||||
truncate
|
||||
block
|
||||
data-testid="team-name"
|
||||
>
|
||||
{team.name}
|
||||
</Text>
|
||||
@@ -75,8 +80,8 @@ export function TeamLeaderboardPreview({ teams, onTeamClick, onNavigateToTeams }
|
||||
</Group>
|
||||
}
|
||||
stats={
|
||||
<Group gap={8}>
|
||||
<Group direction="column" align="end" gap={0}>
|
||||
<Group gap={8} data-testid="standing-stats">
|
||||
<Group direction="column" align="end" gap={0} data-testid="stat-rating">
|
||||
<Text variant="primary" font="mono" weight="bold" block size="md" align="right">
|
||||
{team.rating?.toFixed(0) || '1000'}
|
||||
</Text>
|
||||
@@ -84,7 +89,7 @@ export function TeamLeaderboardPreview({ teams, onTeamClick, onNavigateToTeams }
|
||||
Rating
|
||||
</Text>
|
||||
</Group>
|
||||
<Group direction="column" align="end" gap={0}>
|
||||
<Group direction="column" align="end" gap={0} data-testid="stat-wins">
|
||||
<Text variant="success" font="mono" weight="bold" block size="md" align="right">
|
||||
{team.totalWins}
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user