mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 04:11:12 -05:00
feat: Implement photo submission editing and display enhancements
This commit is contained in:
@@ -23,6 +23,7 @@ export interface PhotoSubmissionItem {
|
||||
file_size?: number;
|
||||
mime_type?: string;
|
||||
date_taken?: string;
|
||||
date_taken_precision?: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user