feat: Implement photo submission editing and display enhancements

This commit is contained in:
gpt-engineer-app[bot]
2025-10-15 13:04:12 +00:00
parent 97337ed7a3
commit 0b9a5cc5fb
6 changed files with 323 additions and 19 deletions

View File

@@ -23,6 +23,7 @@ export interface PhotoSubmissionItem {
file_size?: number;
mime_type?: string;
date_taken?: string;
date_taken_precision?: string;
created_at: string;
}

View File

@@ -2,6 +2,7 @@
* Photo-related type definitions
*/
// Core photo display interface
export interface PhotoItem {
id: string;
url: string;
@@ -9,8 +10,27 @@ export interface PhotoItem {
caption?: string;
size?: number;
type?: string;
title?: string;
date_taken?: string;
}
// Normalized photo for consistent display
export interface NormalizedPhoto {
id: string;
url: string;
filename: string;
caption?: string;
title?: string;
date_taken?: string;
order_index: number;
}
// Photo data source types
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;