Fix: Display all fields for creation submissions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 19:34:36 +00:00
parent 2175c39d07
commit b38b6eb587

View File

@@ -249,9 +249,42 @@ export function SubmissionChangesDisplay({
)} )}
</> </>
) : ( ) : (
<div className="text-sm text-muted-foreground"> // Show all creation fields (no moderator edits)
Creating new {item.item_type} <>
{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>
</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>
)}
</>
)} )}
</> </>
)} )}