Refactor: Implement moderation queue enhancements

This commit is contained in:
gpt-engineer-app[bot]
2025-10-15 13:15:46 +00:00
parent eada34698c
commit db082cc9e3
4 changed files with 86 additions and 55 deletions

View File

@@ -80,6 +80,7 @@ export interface ModerationItem {
id: string;
item_type: string;
item_data: any;
original_data?: any;
status: string;
}>;
}

View File

@@ -2,6 +2,8 @@
* Photo-related type definitions
*/
import type { PhotoSubmissionItem } from './photo-submissions';
// Core photo display interface
export interface PhotoItem {
id: string;
@@ -30,13 +32,3 @@ export type PhotoDataSource =
| { type: 'review'; photos: any[] }
| { type: 'submission_jsonb'; photos: any[] }
| { type: 'submission_items'; items: PhotoSubmissionItem[] };
export interface PhotoSubmissionItem {
id: string;
cloudflare_image_id: string;
cloudflare_image_url: string;
title?: string;
caption?: string;
date_taken?: string;
order_index: number;
}