From 350d08a2b4c29ed3c4fbe52feb86d7a266ebd25b Mon Sep 17 00:00:00 2001 From: Maulana Sodiqin Date: Sun, 30 Nov 2025 00:00:25 +0700 Subject: [PATCH] fix(dashboard): improve team card display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add fallback banner image - Add fallback logo placeholder - Use member_count for member display - Add submission badge - Improve card layout consistency with other pages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/hackathon/src/app/dashboard/page.tsx | 68 +++++++++++++---------- 1 file changed, 40 insertions(+), 28 deletions(-) diff --git a/apps/hackathon/src/app/dashboard/page.tsx b/apps/hackathon/src/app/dashboard/page.tsx index f12d389..e07863a 100644 --- a/apps/hackathon/src/app/dashboard/page.tsx +++ b/apps/hackathon/src/app/dashboard/page.tsx @@ -134,48 +134,60 @@ const DashboardPage: FC = (): ReactElement => {

My Team

-
- {myTeams.map((team) => ( +
+ {myTeams.map((team: any) => ( - {team.banner && ( -
- {team.name} -
- )} + {team.name}
-
- {team.logo && ( +
+ {team.logo ? ( {team.name} + ) : ( +
+ +
)} -
-

+
+

{team.name}

-

- - {team.city} -

+
+ {team.has_submission && ( + + + Submitted + + )} + {team.city && ( + + + {team.city} + + )} + + + {team.member_count || team.members?.length || 0} member{(team.member_count || team.members?.length || 0) !== 1 ? 's' : ''} + +

-

- {team.description} -

+ {team.description && ( +

+ {team.description} +

+ )}
))}