From 985136ac3fa8267da7574b3608d88f7891f4c144 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Fri, 25 Jul 2025 17:19:52 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Improved=20Collection=20Detail?= =?UTF-8?q?=20UI=20Hierarchy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhanced visual hierarchy and button styling: ✅ Repositioned TCG Tags: - Moved from header to under description - Shows only games with cards (dynamic filtering) - Clean rounded blue tags for better UX 🎯 Improved Button Hierarchy: - Changed Generate AI Image to ghost outline button - Changed Invite Collaborator to ghost outline button - Changed view toggle to white buttons with shadow - Add Cards remains the only primary purple button 🎨 Visual Improvements: - Cleaner header with just back button - Better information flow: title → description → tags → stats - Consistent ghost styling for secondary actions - Primary action (Add Cards) now stands out clearly 📱 Enhanced UX: - TCG tags dynamically show only relevant games - Clear visual hierarchy guides user attention - Consistent button styling throughout interface - Better spacing and information organization Result: Cleaner, more focused collection interface! 🚀 --- pages/collection/[id].js | 43 +++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/pages/collection/[id].js b/pages/collection/[id].js index 130ac06..ed61b6a 100644 --- a/pages/collection/[id].js +++ b/pages/collection/[id].js @@ -189,8 +189,8 @@ export default function CollectionView() { {/* Header */}
- {/* Back button and TCG tabs */} -
+ {/* Back button */} +
- - {/* TCG Tabs */} -
- {['MTG', 'Lorcana', 'Pokemon'].map((tcg) => ( - - ))} -
{/* Action buttons */} @@ -223,7 +206,7 @@ export default function CollectionView() { -
@@ -238,6 +221,20 @@ export default function CollectionView() { {collection.description}

+ {/* TCG Tags */} +
+ {Object.entries(gameStats).map(([game, count]) => + count > 0 ? ( + + {game} + + ) : null + )} +
+ {/* Creator and Stats */}
@@ -297,7 +294,7 @@ export default function CollectionView() {
- @@ -403,7 +400,7 @@ export default function CollectionView() {