The open-source CapCut alternative
chore: cleaned up annoying toasts that arent needed
Hyteq79b8275bc0fe
diff --git a/apps/web/src/components/editor/media-panel.tsx b/apps/web/src/components/editor/media-panel.tsxindex f38e0f4f..ab2e66e2 100644--- a/apps/web/src/components/editor/media-panel.tsx+++ b/apps/web/src/components/editor/media-panel.tsx@@ -23,7 +23,6 @@ export function MediaPanel() {const items = await processMediaFiles(files);items.forEach(item => {addMediaItem(item);- toast.success(`Added ${item.name}`);});} catch (error) {console.error("File processing failed:", error);@@ -47,7 +46,6 @@ export function MediaPanel() {const handleRemove = (e: React.MouseEvent, id: string) => {e.stopPropagation();removeMediaItem(id);- toast.success("Media removed");};const formatDuration = (duration: number) => {diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsxindex 672122b7..6b507b7d 100644--- a/apps/web/src/components/editor/timeline.tsx+++ b/apps/web/src/components/editor/timeline.tsx@@ -113,7 +113,7 @@ export function Timeline() {duration: mediaItem.duration || 5, // Default 5 seconds for images});- toast.success(`Added ${name} to ${trackType} track`);+} catch (error) {console.error("Error parsing media item data:", error);toast.error("Failed to add media to timeline");@@ -159,7 +159,7 @@ export function Timeline() {duration: addedItem.duration || 5, // Default 5 seconds for images});- toast.success(`Added ${processedItem.name} to timeline`);+}}} catch (error) {@@ -180,9 +180,8 @@ export function Timeline() {return (<div- className={`h-full flex flex-col transition-colors duration-200 relative ${- isDragOver ? "bg-accent/30 border-accent" : ""- }`}+ className={`h-full flex flex-col transition-colors duration-200 relative ${isDragOver ? "bg-accent/30 border-accent" : ""+ }`}{...dragProps}><DragOverlay@@ -439,7 +438,7 @@ function TimelineTrackComponent({ track }: { track: TimelineTrack }) {} else {// Moving between different tracksmoveClipToTrack(fromTrackId, track.id, clipId, insertIndex);- toast.success("Clip moved to different track");+}} catch (error) {console.error("Error moving clip:", error);@@ -511,9 +510,8 @@ function TimelineTrackComponent({ track }: { track: TimelineTrack }) {</div><div- className={`flex-1 h-[60px] transition-colors ${- isDropping ? "bg-accent/50 border-2 border-dashed border-accent" : ""- }`}+ className={`flex-1 h-[60px] transition-colors ${isDropping ? "bg-accent/50 border-2 border-dashed border-accent" : ""+ }`}onDragOver={handleTrackDragOver}onDragEnter={handleTrackDragEnter}onDragLeave={handleTrackDragLeave}