mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 13:11:16 -05:00
Fix: Display all fields for creation submissions
This commit is contained in:
@@ -249,9 +249,42 @@ export function SubmissionChangesDisplay({
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<div className="text-sm text-muted-foreground">
|
||||
Creating new {item.item_type}
|
||||
// Show all creation fields (no moderator edits)
|
||||
<>
|
||||
{changes.fieldChanges.length > 0 && (
|
||||
<div className="flex flex-col gap-2">
|
||||
<h4 className="text-sm font-medium">Creation Data</h4>
|
||||
<div className="grid gap-2">
|
||||
{changes.fieldChanges.map((change, idx) => (
|
||||
<div key={idx}>
|
||||
<FieldDiff change={change} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{changes.imageChanges.length > 0 && (
|
||||
<div className="flex flex-col gap-2">
|
||||
<h4 className="text-sm font-medium">Images</h4>
|
||||
<div className="grid gap-2">
|
||||
{changes.imageChanges.map((change, idx) => (
|
||||
<ImageDiff key={idx} change={change} />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{changes.hasLocationChange && (
|
||||
<div className="flex flex-col gap-2">
|
||||
<h4 className="text-sm font-medium">Location</h4>
|
||||
<LocationDiff
|
||||
oldLocation={null}
|
||||
newLocation={item.item_data?.location || item.item_data?.location_id}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user