From d9ac6d2f892e6326fbaa068283ffdd62a00846de Mon Sep 17 00:00:00 2001 From: Nikhil-Doye Date: Sun, 19 Oct 2025 12:42:01 -0400 Subject: [PATCH] Refactor TestingPanel and WorkflowToolbar to use Button component - Replaced standard button elements with a custom Button component in TestingPanel and WorkflowToolbar for consistent styling and improved UI. - Updated button properties and classes to align with the new Button component's design, enhancing user experience across the application. - Adjusted layout and spacing for better visual coherence and usability. --- src/components/TestingPanel.tsx | 36 ++++++++------- src/components/WorkflowToolbar.tsx | 73 +++++++++++++++--------------- 2 files changed, 56 insertions(+), 53 deletions(-) diff --git a/src/components/TestingPanel.tsx b/src/components/TestingPanel.tsx index 9f4bcd4..ddea157 100644 --- a/src/components/TestingPanel.tsx +++ b/src/components/TestingPanel.tsx @@ -1,6 +1,7 @@ import React, { useState } from "react"; import { useWorkflowStore } from "../store/workflowStore"; import { Play, FileText, Download, RotateCcw } from "lucide-react"; +import { Button } from "./ui/button"; export const TestingPanel: React.FC = () => { const { currentWorkflow, executeWorkflow, isExecuting, executionResults } = @@ -104,34 +105,35 @@ export const TestingPanel: React.FC = () => {
{sampleInputs.map((sample, index) => ( - + ))}
- + + Run Test + - +
@@ -143,13 +145,15 @@ export const TestingPanel: React.FC = () => {

Test Results

- + + Export +
diff --git a/src/components/WorkflowToolbar.tsx b/src/components/WorkflowToolbar.tsx index b90035c..d113b2e 100644 --- a/src/components/WorkflowToolbar.tsx +++ b/src/components/WorkflowToolbar.tsx @@ -15,6 +15,7 @@ import { loadWorkflowFromFile, } from "../utils/workflowSerialization"; import { ApiKeysSettings } from "./ApiKeysSettings"; +import { Button } from "./ui/button"; export const WorkflowToolbar: React.FC = () => { const { @@ -88,79 +89,77 @@ export const WorkflowToolbar: React.FC = () => {
- + {showSaveSuccess ? "Saved!" : "Save"} + - + + Export + - + + Import + - + + API Keys +
- + - + + Reset +