From 988dca96dce725a2f99c0b16cc93d5ca79906a2d Mon Sep 17 00:00:00 2001 From: ramnique <30795890+ramnique@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:35:17 +0530 Subject: [PATCH] ui updates on workflow editor --- .../app/lib/components/editable-field.tsx | 3 +- apps/rowboat/app/lib/components/label.tsx | 3 + .../app/lib/components/markdown-content.tsx | 10 +- apps/rowboat/app/lib/types.ts | 5 +- .../[projectId]/playground/messages.tsx | 31 +- .../[projectId]/workflow/agent_config.tsx | 310 +++++++------- .../[projectId]/workflow/config_list.tsx | 38 ++ .../projects/[projectId]/workflow/copilot.tsx | 10 +- .../projects/[projectId]/workflow/pane.tsx | 7 +- .../[projectId]/workflow/prompt_config.tsx | 65 +-- .../[projectId]/workflow/tool_config.tsx | 394 ++++++++++-------- 11 files changed, 478 insertions(+), 398 deletions(-) create mode 100644 apps/rowboat/app/lib/components/label.tsx create mode 100644 apps/rowboat/app/projects/[projectId]/workflow/config_list.tsx diff --git a/apps/rowboat/app/lib/components/editable-field.tsx b/apps/rowboat/app/lib/components/editable-field.tsx index cb1cb689..34aba0ac 100644 --- a/apps/rowboat/app/lib/components/editable-field.tsx +++ b/apps/rowboat/app/lib/components/editable-field.tsx @@ -3,6 +3,7 @@ import { useEffect, useRef, useState } from "react"; import { useClickAway } from "@/hooks/use-click-away"; import MarkdownContent from "@/app/lib/components/markdown-content"; import clsx from "clsx"; +import { Label } from "@/app/lib/components/label"; interface EditableFieldProps { value: string; @@ -86,7 +87,7 @@ export function EditableField({ return (
{(label || isEditing && multiline) &&
- {label &&
{label}
} + {label &&