Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
commit
Vasek Mlejnsky34d35c8a3639
diff --git a/components/AgentRun.tsx b/components/AgentRun.tsxindex 6c38ea0e7..e84ccf58d 100644--- a/components/AgentRun.tsx+++ b/components/AgentRun.tsx@@ -1,8 +1,23 @@+import Splitter from '@devbookhq/splitter'+function AgentRun() {return (- <div className="">+ <main className="overflow-hidden flex flex-col flex-1">+ <header className="flex items-center justify-between pt-4 px-4 sm:pt-8 sm:px-6 lg:px-8">+ <h1 className="text-2xl font-semibold leading-7 text-white">Run Detail [TODO: name]</h1>+ </header>- </div>+ <div className="flex-1 flex items-start justify-start sm:p-6 lg:px-8">+ <Splitter+ draggerClassName="bg-gray-700 group-hover:bg-[#F163A7] transition-all delay-75 duration-[400ms] w-0.5 h-12"+ gutterClassName="bg-transparent hover:bg-[#F163A7] transition-all delay-75 duration-[400ms] px-0.5 mx-0.5 rounded-md group"+ classes={['flex', 'flex']}+ >+ <div className="self-stretch bg-[#1F2437] border border-gray-700 rounded-md flex-1">Prompt</div>+ <div className="self-stretch flex-1">Steps</div>+ </Splitter>+ </div>+ </main>)}diff --git a/components/AgentRunsList.tsx b/components/AgentRunsList.tsxindex 6fe6050a0..d2b374da6 100644--- a/components/AgentRunsList.tsx+++ b/components/AgentRunsList.tsx@@ -108,9 +108,11 @@ function AgentRunsList({</div><spanclassName={clsx(- 'text-sm group-hover:font-semibold',+ 'text-sm',+ 'cursor-pointer',selectedAgentID === a.project.id && 'font-semibold',)}+ onClick={() => toggleSelectedAgentID(a.project.id)}>{a.project.name} - {a.project.id} [TODO: Better name]</span>diff --git a/components/Layout.tsx b/components/Layout.tsxindex ba8bb2dbe..c0b0b101d 100644--- a/components/Layout.tsx+++ b/components/Layout.tsx@@ -103,7 +103,7 @@ function Layout({ children }: PropsWithChildren) {/></div>- <div className="xl:pl-72 flex flex-col max-h-full">+ <div className="xl:pl-72 flex flex-col flex-1 max-h-full">{/* Mobile menu icon */}<div className="xl:hidden sticky top-0 z-40 flex justify-between h-16 shrink-0 items-center gap-x-6 border-b border-white/5 bg-gray-900 px-4 shadow-sm sm:px-6 lg:px-8"><button type="button" className="-m-2.5 p-2.5 text-white xl:hidden" onClick={() => setIsSidebarOpen(true)}>diff --git a/components/Sidebar/DashboardDesktopSidebar.tsx b/components/Sidebar/DashboardDesktopSidebar.tsxindex 363ff7d4f..2870ef68a 100644--- a/components/Sidebar/DashboardDesktopSidebar.tsx+++ b/components/Sidebar/DashboardDesktopSidebar.tsx@@ -15,6 +15,7 @@ function DashboardDesktopSidebar({}: Props) {const router = useRouter()const view = router.query.view as string | undefined+ const isOnRunDetail = router.pathname.startsWith('/deployed/[projectID]/run/[runID]')return (<div className="hidden xl:fixed xl:inset-y-0 xl:z-50 xl:flex xl:w-72 xl:flex-col">@@ -40,9 +41,9 @@ function DashboardDesktopSidebar({<Linkhref={`/?view=${item.view}`}className={clsx(- item.view === view- ? 'bg-gray-800 text-white'- : 'text-gray-400 hover:text-white hover:bg-gray-800',+ item.view === view || (isOnRunDetail && item.view === 'runs')+ ? 'bg-[#1F2437] text-white'+ : 'text-gray-400 hover:text-white hover:bg-[#1F2437]','group gap-x-3 rounded-md px-2 py-1 text-sm leading-6 font-semibold flex items-center')}shallowdiff --git a/components/Sidebar/DashboardMobileSidebar.tsx b/components/Sidebar/DashboardMobileSidebar.tsxindex a19e6252a..bb50016f1 100644--- a/components/Sidebar/DashboardMobileSidebar.tsx+++ b/components/Sidebar/DashboardMobileSidebar.tsx@@ -24,6 +24,7 @@ function DashboardMobileSidebar({}: Props) {const router = useRouter()const view = router.query.view as string | undefined+ const isOnRunDetail = router.pathname.startsWith('/deployed/[projectID]/run/[runID]')return (<Transition.Root show={isSidebarOpen} as={Fragment}>@@ -86,7 +87,7 @@ function DashboardMobileSidebar({<Linkhref={`/?view=${item.view}`}className={clsx(- item.view === view+ item.view === view || (isOnRunDetail && item.view === 'runs')? 'bg-gray-800 text-white': 'text-gray-400 hover:text-white hover:bg-gray-800','group gap-x-3 rounded-md px-2 py-1 text-sm leading-6 font-semibold flex items-center'diff --git a/pages/deployed/[projectID]/run/[runID].tsx b/pages/deployed/[projectID]/run/[runID].tsxindex 2c2f54999..089ed0331 100644--- a/pages/deployed/[projectID]/run/[runID].tsx+++ b/pages/deployed/[projectID]/run/[runID].tsx@@ -4,7 +4,7 @@ import type { ParsedUrlQuery } from 'querystring'import { prisma, projects } from 'db/prisma'import { serverCreds } from 'db/credentials'-import AgentDetail from 'components/AgentDetail'+import AgentRun from 'components/AgentRun'interface PathProps extends ParsedUrlQuery {runID: string@@ -98,11 +98,15 @@ function ProjectPage({runID,}: Props) {return (- <AgentDetail- project={project}- runID={runID}+ <AgentRun/>)+ // return (+ // <AgentDetail+ // project={project}+ // runID={runID}+ // />+ // )}export default ProjectPage