feat: enhance AI image generation and prompt handling in canvas components
- Introduced shimmer animation for loading states in AI image nodes. - Updated prompt node to handle image generation with improved error handling and user feedback. - Refactored AI image node to manage generation status and display loading indicators. - Enhanced data handling in canvas components to include canvasId for better context management. - Improved status message handling in Convex mutations for clearer user feedback.
This commit is contained in:
@@ -26,7 +26,7 @@ const nodeTemplates = [
|
||||
label: "Prompt",
|
||||
width: 320,
|
||||
height: 140,
|
||||
defaultData: { content: "", model: "" },
|
||||
defaultData: { prompt: "", model: "" },
|
||||
},
|
||||
{
|
||||
type: "note",
|
||||
@@ -67,7 +67,7 @@ export default function CanvasToolbar({ canvasId }: CanvasToolbarProps) {
|
||||
positionY: 100 + offset,
|
||||
width,
|
||||
height,
|
||||
data,
|
||||
data: { ...data, canvasId },
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user