From adad353e4bbec71a35e64a2d315410a05820d86f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 15 Oct 2025 15:37:28 +0000 Subject: [PATCH] feat: Optimize moderation queue desktop layout and fix release lock --- src/components/moderation/QueueItem.tsx | 95 +++++++++++++++---- .../moderation/SubmissionChangesDisplay.tsx | 8 +- src/hooks/useModerationQueue.ts | 16 +++- 3 files changed, 97 insertions(+), 22 deletions(-) diff --git a/src/components/moderation/QueueItem.tsx b/src/components/moderation/QueueItem.tsx index ab9b9e64..4a14deaf 100644 --- a/src/components/moderation/QueueItem.tsx +++ b/src/components/moderation/QueueItem.tsx @@ -233,8 +233,10 @@ export const QueueItem = memo(({ )} - -
+ +
{item.type === 'review' ? (
{item.content.title && ( @@ -361,6 +363,59 @@ export const QueueItem = memo(({ />
)} + + {/* Right sidebar on desktop: metadata & context */} + {!isMobile && (item.entity_name || item.park_name || item.user_profile) && ( +
+ {(item.entity_name || item.park_name) && ( +
+
+ Context +
+ {item.entity_name && ( +
+ + {item.park_name ? 'Ride' : 'Entity'} + + {item.entity_name} +
+ )} + {item.park_name && ( +
+ Park + {item.park_name} +
+ )} +
+ )} + + {item.user_profile && ( +
+
+ Submitter +
+
+ + + + {(item.user_profile.display_name || item.user_profile.username)?.slice(0, 2).toUpperCase()} + + +
+
+ {item.user_profile.display_name || item.user_profile.username} +
+ {item.user_profile.display_name && ( +
+ @{item.user_profile.username} +
+ )} +
+
+
+ )} +
+ )}
{/* Action buttons based on status */} @@ -399,21 +454,26 @@ export const QueueItem = memo(({
)} -
- -