Skip to content

Commit

Permalink
refactor(ui): Rename udf form to udf panel
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed Jun 3, 2024
1 parent 0958654 commit 247c62f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ import {
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip"
import { toast } from "@/components/ui/use-toast"
import { getIcon } from "@/components/icons"
import { JSONSchemaTable } from "@/components/jsonschema-table"
import { CenteredSpinner } from "@/components/loading/spinner"
import { AlertNotification } from "@/components/notifications"

export function UDFActionForm({
export function UDFActionPanel({
panelAction: {
action,
isLoading: actionLoading,
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/workspace/panel/workspace-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Node } from "reactflow"
import { usePanelAction } from "@/lib/hooks"
import { FormLoading } from "@/components/loading/form"
import { UDFNodeData } from "@/components/workspace/canvas/udf-node"
import { UDFActionForm } from "@/components/workspace/panel/action/udf-form"
import { UDFActionPanel } from "@/components/workspace/panel/udf-panel"
import { WorkflowControlsForm } from "@/components/workspace/panel/workflow/controls"
import { WorkflowForm } from "@/components/workspace/panel/workflow/form"
import { WorkflowRunsView } from "@/components/workspace/panel/workflow/runs"
Expand All @@ -22,7 +22,7 @@ export function WorkspacePanel() {
{!workflow ? (
<FormLoading />
) : selectedNode ? (
<WrappedUDFForm selectedNode={selectedNode} workflowId={workflow.id} />
<WrappedUDFPanel selectedNode={selectedNode} workflowId={workflow.id} />
) : workflow ? (
<div>
<WorkflowForm workflow={workflow} />
Expand All @@ -36,7 +36,7 @@ export function WorkspacePanel() {
)
}

function WrappedUDFForm({
function WrappedUDFPanel({
selectedNode,
workflowId,
}: {
Expand All @@ -47,7 +47,7 @@ function WrappedUDFForm({
const nodeData = selectedNode.data

return (
<UDFActionForm
<UDFActionPanel
panelAction={panelAction}
type={nodeData.type}
actionId={selectedNode.id}
Expand Down

0 comments on commit 247c62f

Please sign in to comment.