Refactor to defer photo uploads

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 18:15:12 +00:00
parent 15d95daec4
commit aaa1c633f6
3 changed files with 168 additions and 11 deletions

View File

@@ -8,10 +8,12 @@ import { X, Eye, GripVertical, Edit3 } from 'lucide-react';
import { cn } from '@/lib/utils';
export interface PhotoWithCaption {
url: string;
url: string; // Object URL for preview, Cloudflare URL after upload
file?: File; // The actual file to upload later
caption: string;
title?: string;
order: number;
uploadStatus?: 'pending' | 'uploading' | 'uploaded' | 'failed';
}
interface PhotoCaptionEditorProps {