From d9979f9c0525fba5777afd9ae585311c704e345f Mon Sep 17 00:00:00 2001 From: CoolGame8 Date: Mon, 23 Feb 2026 18:02:22 +0200 Subject: [PATCH] show team name in both status --- .../(dashboard)/components/team-info.tsx | 24 ++++---- .../field-schedule/components/match-row.tsx | 4 +- .../components/next-match-panel.tsx | 2 +- .../components/upcoming-matches-table.tsx | 29 +++++----- .../components/schedule-table.tsx | 7 +-- .../components/judging-status-mobile.tsx | 56 ++++++++++--------- .../components/next-session-row.tsx | 9 ++- .../components/session-card.tsx | 13 +++-- .../judging-status/components/session-row.tsx | 14 ++++- 9 files changed, 88 insertions(+), 70 deletions(-) diff --git a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/components/team-info.tsx b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/components/team-info.tsx index 8d2b844be..590a1f92c 100644 --- a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/components/team-info.tsx +++ b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/components/team-info.tsx @@ -52,20 +52,20 @@ export const TeamInfo: React.FC = ({ team, size, textAlign = 'lef alignItems: 'center' }} > + {team.affiliation && `${team.affiliation}, `} + {team.city} {team.region && ( - <> - - - - + + + )} - {team.affiliation && ` ${team.affiliation},`} {team.city} diff --git a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-schedule/components/match-row.tsx b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-schedule/components/match-row.tsx index 3c5877a80..5a2df261d 100644 --- a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-schedule/components/match-row.tsx +++ b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-schedule/components/match-row.tsx @@ -71,7 +71,7 @@ export const MatchRow: React.FC = ({ match, tables, teams }) => { return ( {team ? ( - + = ({ match, tables, teams }) => { fontSize: isMobile ? '0.75rem' : '1rem' }} > - #{team.number} + #{team.number} {team.name} diff --git a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-status/components/next-match-panel.tsx b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-status/components/next-match-panel.tsx index ae18724e1..9807a48c2 100644 --- a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-status/components/next-match-panel.tsx +++ b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/field-status/components/next-match-panel.tsx @@ -174,7 +174,7 @@ export function NextMatchPanel({ match }: NextMatchPanelProps) { sx={{ flex: 1, fontSize: '1.05rem', fontWeight: 500 }} > {participant.team - ? t('next-match.team-number', { number: participant.team.number }) + ? `${t('next-match.team-number', { number: participant.team.number })} ${participant.team.name}` : '—'} { .sort((a, b) => a.table.name.localeCompare(b.table.name, undefined, { numeric: true })) .map((participant, idx) => { const { team, table } = participant; - const teamNumber = team?.number ? `#${team.number}` : '—'; + const teamDisplay = team ? `#${team.number} ${team.name}` : '—'; return ( @@ -47,19 +46,17 @@ const TeamsCell = ({ participants }: TeamsCellProps) => { > {table?.name || 'Unknown'} - - - {teamNumber} - - + + {teamDisplay} + ); })} diff --git a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-schedule/components/schedule-table.tsx b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-schedule/components/schedule-table.tsx index 3b6f790b8..19224bf36 100644 --- a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-schedule/components/schedule-table.tsx +++ b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-schedule/components/schedule-table.tsx @@ -174,10 +174,7 @@ export function ScheduleTable({ rooms, rows, sessionLength }: ScheduleTableProps {row.rooms?.map(room => ( {room.team ? ( - + - #{room.team.number} + #{room.team.number} {room.team.name} diff --git a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/judging-status-mobile.tsx b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/judging-status-mobile.tsx index 6dfbe021b..e1d9567c1 100644 --- a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/judging-status-mobile.tsx +++ b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/judging-status-mobile.tsx @@ -3,7 +3,7 @@ import { useMemo } from 'react'; import { useTranslations } from 'next-intl'; import dayjs from 'dayjs'; -import { Box, Card, CardContent, Paper, Skeleton, Stack, Typography } from '@mui/material'; +import { Box, Card, CardContent, Grid, Paper, Skeleton, Stack, Typography } from '@mui/material'; import { useJudgingStatus } from '../judging-status-context'; import { SessionCard } from './session-card'; @@ -65,18 +65,21 @@ export const JudgingStatusMobile: React.FC = () => { - {sortedRooms.map(room => { - const session = currentSessions.find(s => s.room.id === room.id); - return session ? ( - - ) : null; - })} + + {sortedRooms.map(room => { + const session = currentSessions.find(s => s.room.id === room.id); + return session ? ( + + + + ) : null; + })} + )} @@ -93,18 +96,21 @@ export const JudgingStatusMobile: React.FC = () => { - {sortedRooms.map(room => { - const session = nextSessions.find(s => s.room.id === room.id); - return session ? ( - - ) : null; - })} + + {sortedRooms.map(room => { + const session = nextSessions.find(s => s.room.id === room.id); + return session ? ( + + + + ) : null; + })} + )} diff --git a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/next-session-row.tsx b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/next-session-row.tsx index c0c97861f..979cc1fa1 100644 --- a/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/next-session-row.tsx +++ b/apps/frontend/src/app/[locale]/lems/(volunteer)/(dashboard)/reports/judging-status/components/next-session-row.tsx @@ -15,9 +15,14 @@ export const NextSessionRow: React.FC = ({ session }) => { const team = session?.team; return ( - + {session && team ? ( - + {!team.arrived && ( = ({ key={`${room.id}-${session.id}`} sx={{ mb: 2, - bgcolor: isCurrentRound ? 'primary.50' : 'background.paper' + bgcolor: isCurrentRound ? 'primary.50' : 'background.paper', + height: '100%', + display: 'flex', + flexDirection: 'column' }} > - - + + {t('table.room', { name: room.name })} @@ -41,6 +44,8 @@ export const SessionCard: React.FC = ({ <> + + = ({ session, sessionLength } const team = session.team; return ( - + {session && team ? ( - + - + + +