chore: cleaned up annoying toasts that arent needed

This commit is contained in:
Hyteq
2025-06-23 09:04:33 +03:00
parent c2b70c13e9
commit 79b8275bc0
2 changed files with 7 additions and 11 deletions

View File

@ -23,7 +23,6 @@ export function MediaPanel() {
const items = await processMediaFiles(files); const items = await processMediaFiles(files);
items.forEach(item => { items.forEach(item => {
addMediaItem(item); addMediaItem(item);
toast.success(`Added ${item.name}`);
}); });
} catch (error) { } catch (error) {
console.error("File processing failed:", error); console.error("File processing failed:", error);
@ -47,7 +46,6 @@ export function MediaPanel() {
const handleRemove = (e: React.MouseEvent, id: string) => { const handleRemove = (e: React.MouseEvent, id: string) => {
e.stopPropagation(); e.stopPropagation();
removeMediaItem(id); removeMediaItem(id);
toast.success("Media removed");
}; };
const formatDuration = (duration: number) => { const formatDuration = (duration: number) => {

View File

@ -113,7 +113,7 @@ export function Timeline() {
duration: mediaItem.duration || 5, // Default 5 seconds for images duration: mediaItem.duration || 5, // Default 5 seconds for images
}); });
toast.success(`Added ${name} to ${trackType} track`);
} catch (error) { } catch (error) {
console.error("Error parsing media item data:", error); console.error("Error parsing media item data:", error);
toast.error("Failed to add media to timeline"); toast.error("Failed to add media to timeline");
@ -159,7 +159,7 @@ export function Timeline() {
duration: addedItem.duration || 5, // Default 5 seconds for images duration: addedItem.duration || 5, // Default 5 seconds for images
}); });
toast.success(`Added ${processedItem.name} to timeline`);
} }
} }
} catch (error) { } catch (error) {
@ -180,9 +180,8 @@ export function Timeline() {
return ( return (
<div <div
className={`h-full flex flex-col transition-colors duration-200 relative ${ className={`h-full flex flex-col transition-colors duration-200 relative ${isDragOver ? "bg-accent/30 border-accent" : ""
isDragOver ? "bg-accent/30 border-accent" : "" }`}
}`}
{...dragProps} {...dragProps}
> >
<DragOverlay <DragOverlay
@ -439,7 +438,7 @@ function TimelineTrackComponent({ track }: { track: TimelineTrack }) {
} else { } else {
// Moving between different tracks // Moving between different tracks
moveClipToTrack(fromTrackId, track.id, clipId, insertIndex); moveClipToTrack(fromTrackId, track.id, clipId, insertIndex);
toast.success("Clip moved to different track");
} }
} catch (error) { } catch (error) {
console.error("Error moving clip:", error); console.error("Error moving clip:", error);
@ -511,9 +510,8 @@ function TimelineTrackComponent({ track }: { track: TimelineTrack }) {
</div> </div>
<div <div
className={`flex-1 h-[60px] transition-colors ${ className={`flex-1 h-[60px] transition-colors ${isDropping ? "bg-accent/50 border-2 border-dashed border-accent" : ""
isDropping ? "bg-accent/50 border-2 border-dashed border-accent" : "" }`}
}`}
onDragOver={handleTrackDragOver} onDragOver={handleTrackDragOver}
onDragEnter={handleTrackDragEnter} onDragEnter={handleTrackDragEnter}
onDragLeave={handleTrackDragLeave} onDragLeave={handleTrackDragLeave}