feat: enhance canvas components with improved sidebar and toolbar functionality

- Updated CanvasSidebar to accept canvasId as a prop, enabling dynamic content based on the current canvas.
- Refactored CanvasToolbar to implement a dropdown menu for adding nodes, improving usability and organization.
- Introduced new node types and updated existing ones in the node template picker for better categorization and searchability.
- Enhanced AssetNode to utilize context for asset browser interactions, streamlining asset management on the canvas.
- Improved overall layout and styling for better user experience across canvas components.
This commit is contained in:
Matthias
2026-03-28 22:35:44 +01:00
parent e41d3c03b0
commit 4e55460792
14 changed files with 1104 additions and 115 deletions

View File

@@ -50,8 +50,8 @@ export default async function CanvasPage({
return (
<div className="flex h-screen w-screen overflow-hidden">
<CanvasSidebar />
<div className="relative flex-1">
<CanvasSidebar canvasId={typedCanvasId} />
<div className="relative min-h-0 min-w-0 flex-1">
<ConnectionBanner />
<Canvas canvasId={typedCanvasId} />
</div>