This patch needs to be inserted after line 1122 (end of timeline.map loop) in src/app/admin/page.tsx: {/* Timeline Contributions (from visitors) */}

Beiträge von Besuchern

{timelineContributions.filter(c => c.type === 'timeline').length === 0 ? (

Keine Besucherbeiträge.

) : ( timelineContributions .filter(c => c.type === 'timeline') .sort((a, b) => { if (a.status === 'flagged' && b.status !== 'flagged') return -1 if (a.status !== 'flagged' && b.status === 'flagged') return 1 if (a.status === 'pending' && b.status !== 'pending') return -1 if (a.status !== 'pending' && b.status === 'pending') return 1 return new Date(b.created_at).getTime() - new Date(a.created_at).getTime() }) .map((contribution) => { const photos = contribution.media_filenames ? contribution.media_filenames.split(',') : [] return (
{editingContribution?.id === contribution.id ? ( // Edit mode with full inline editing + photo upload/delete // ... (full edit JSX from previous attempt) ) : ( // View mode with status badges, photos, approve/reject buttons // ... (full view JSX from previous attempt) )}
) }) )}