Merge pull request #943 from getmaxun/auto-robot

feat: add auto robots template
This commit is contained in:
Karishma Shukla
2026-01-22 18:56:58 +05:30
committed by GitHub
5 changed files with 1374 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import { Recordings } from "../components/robot/Recordings";
import { Runs } from "../components/run/Runs";
import ProxyForm from '../components/proxy/ProxyForm';
import ApiKey from '../components/api/ApiKey';
import { AutoRobots } from '../components/robot/AutoRobots';
import { useGlobalInfoStore, useCacheInvalidation } from "../context/globalInfo";
import { createAndRunRecording, createRunForStoredRecording, CreateRunResponseWithQueue, interpretStoredRecording, notifyAboutAbort, scheduleStoredRecording } from "../api/storage";
import { io, Socket } from "socket.io-client";
@@ -317,6 +318,8 @@ export const MainPage = ({ handleEditRecording, initialContent }: MainPageProps)
return <ProxyForm />;
case 'apikey':
return <ApiKey />;
case 'prebuilt-robots':
return <AutoRobots />;
default:
return null;
}

View File

@@ -114,6 +114,7 @@ export const PageWrapper = () => {
<Route path="/" element={<Navigate to="/robots" replace />} />
<Route path="/robots/create" element={<RobotCreate />} />
<Route path="/robots/*" element={<MainPage handleEditRecording={handleEditRecording} initialContent="robots" />} />
<Route path="/prebuilt-robots" element={<MainPage handleEditRecording={handleEditRecording} initialContent="prebuilt-robots" />} />
<Route path="/runs/*" element={<MainPage handleEditRecording={handleEditRecording} initialContent="runs" />} />
<Route path="/proxy" element={<MainPage handleEditRecording={handleEditRecording} initialContent="proxy" />} />
<Route path="/apikey" element={<MainPage handleEditRecording={handleEditRecording} initialContent="apikey" />} />