+
-
+
{apiRequests.length === 0 ? (
renderFallback() // Render fallback when no tabs exist
) : (
@@ -145,40 +146,44 @@ const APIMode = ({
)}
+
);
};
// 시나리오 모드
const ScenarioMode = ({
isApiMode,
- onToggleMode,
+ onToggleMode
}) => {
- let handleApiSelect = () => {};
+ let handleApiSelect = () => {
+ };
return (
-
-
+
);
};
- export default MainContentArea;
+export default MainContentArea;
diff --git a/TestMasterUI/src/components/api-tester/APINavigation.jsx b/TestMasterUI/src/components/api-tester/APINavigation.jsx
index acc5a92..9de651b 100644
--- a/TestMasterUI/src/components/api-tester/APINavigation.jsx
+++ b/TestMasterUI/src/components/api-tester/APINavigation.jsx
@@ -250,7 +250,7 @@ const APINavigation = ({
};
return (
-
+ <>
{side === 'left' && (
@@ -300,7 +300,7 @@ const APINavigation = ({
onSubmit={handleRenameApi}
api={apiToRename}
/>
-
+ >
);
};
diff --git a/TestMasterUI/src/components/api-tester/DraggableApiItem.jsx b/TestMasterUI/src/components/api-tester/DraggableApiItem.jsx
index 6d6c67e..d558c47 100644
--- a/TestMasterUI/src/components/api-tester/DraggableApiItem.jsx
+++ b/TestMasterUI/src/components/api-tester/DraggableApiItem.jsx
@@ -69,28 +69,58 @@ const DraggableApiItem = ({ api, collectionId, onApiAction }) => {
draggable
onDragStart={handleDragStart}
onDragEnd={handleDragEnd}
- className={`cursor-move transition-colors duration-200 ${
- isDragging ? 'opacity-50 bg-accent' : ''
- }`}
+ className={`cursor-move transition-colors duration-200 ${isDragging ? 'opacity-50 bg-accent' : ''}`}
>
-
{
- // Prevent click when dragging ends
- if (!isDragging) {
- onApiAction.open(collectionId, api.id);
- }
- }}
- className="w-full justify-start gap-2"
- asChild
- >
-
+ {/*
{*/}
+ {/* // Prevent click when dragging ends*/}
+ {/* if (!isDragging) {*/}
+ {/* onApiAction.open(collectionId, api.id);*/}
+ {/* }*/}
+ {/* }}*/}
+ {/* className="w-full justify-start gap-2"*/}
+ {/* asChild*/}
+ {/*>*/}
+ {/* */}
+ {/*
*/}
+ {/*
*/}
+ {/* */}
+ {/* */}
+ {/* {api.method && {api.method} }*/}
+ {/* {api.name}*/}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/*
{api.name}
*/}
+ {/* {api.path &&
{api.path}
}*/}
+ {/*
*/}
+ {/* */}
+ {/* */}
+ {/*
e.stopPropagation()}*/}
+ {/* >*/}
+ {/* onApiAction.open(collectionId, api.id)}*/}
+ {/* onRename={() => onApiAction.rename(collectionId, api.id)}*/}
+ {/* onDelete={() => onApiAction.delete(collectionId, api.id)}*/}
+ {/* />*/}
+ {/* */}
+ {/*
*/}
+ {/**/}
+
+
!isDragging && onApiAction.open(collectionId, api.id)}
+ className="flex items-center gap-2 flex-1 min-w-0 cursor-pointer"
+ >
-
- {api.method && {api.method} }
- {api.name}
-
+
+ {api.method && {api.method} }
+ {api.name}
+
@@ -99,18 +129,28 @@ const DraggableApiItem = ({ api, collectionId, onApiAction }) => {
-
e.stopPropagation()}
- >
- onApiAction.open(collectionId, api.id)}
- onRename={() => onApiAction.rename(collectionId, api.id)}
- onDelete={() => onApiAction.delete(collectionId, api.id)}
- />
-
-
+
+
+
+
+
+
+
+
+ onApiAction.open(collectionId, api.id)}>
+ Open
+
+
+ onApiAction.rename(collectionId, api.id)}>
+ Rename
+
+ onApiAction.delete(collectionId, api.id)}>
+ Delete
+
+
+
+
);
};
diff --git a/TestMasterUI/src/components/api-tester/ScenarioMenuBar.jsx b/TestMasterUI/src/components/api-tester/ScenarioMenuBar.jsx
index 5d6f9b5..cc7af09 100644
--- a/TestMasterUI/src/components/api-tester/ScenarioMenuBar.jsx
+++ b/TestMasterUI/src/components/api-tester/ScenarioMenuBar.jsx
@@ -1,10 +1,14 @@
import {Button} from '@/components/ui/button.jsx';
import {Pause, Play, RotateCcw, Save, SkipForward} from 'lucide-react';
import React from 'react';
+import {SidebarTrigger} from '@/components/ui/sidebar.jsx';
+import {Separator} from '@/components/ui/separator.jsx';
const ScenarioMenuBar = ({ onSave, onStepRun, onFullRun, onPause, onReset }) => {
return (
+
+