feat: enhance asset browser panel with improved asset selection and loading states
- Added state management for asset selection to prevent multiple simultaneous selections. - Implemented request sequence tracking to ensure accurate loading state handling during asset searches. - Enhanced error handling and user feedback for asset loading failures. - Updated UI elements to improve accessibility and user experience during asset browsing.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useCallback, useState } from "react";
|
||||
import { Handle, NodeResizer, Position, type NodeProps } from "@xyflow/react";
|
||||
import { Handle, Position, type NodeProps } from "@xyflow/react";
|
||||
import { useAction, useMutation } from "convex/react";
|
||||
import { Download, Loader2 } from "lucide-react";
|
||||
import { api } from "@/convex/_generated/api";
|
||||
@@ -78,8 +78,6 @@ export default function FrameNode({ id, data, selected, width, height }: NodePro
|
||||
selected={selected}
|
||||
className="relative h-full w-full border-2 border-dashed border-muted-foreground/40 !bg-transparent p-0 shadow-none"
|
||||
>
|
||||
<NodeResizer isVisible={selected} minWidth={200} minHeight={150} />
|
||||
|
||||
<div className="absolute -top-8 left-0 flex items-center gap-2">
|
||||
<input
|
||||
value={label}
|
||||
|
||||
Reference in New Issue
Block a user