Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Clarify deploy button and latest deployment states
Tomas Valenta28c1333ff877
diff --git a/components/Editor/Logs/DeployButton.tsx b/components/Editor/Logs/DeployButton.tsxindex c139f5f70..1580f0645 100644--- a/components/Editor/Logs/DeployButton.tsx+++ b/components/Editor/Logs/DeployButton.tsx@@ -36,15 +36,7 @@ function getDeploymentRepresentation(deployStatus: deployment_state | null | undicon: <Spinner />,}case deployment_state.error:- return {- text: 'Failed',- icon: null,- }case deployment_state.finished:- return {- text: 'Deployed',- icon: <Check size="16px" />- }default:return {text: 'Deploy',diff --git a/components/Editor/Logs/index.tsx b/components/Editor/Logs/index.tsxindex df38442be..162af3aa5 100644--- a/components/Editor/Logs/index.tsx+++ b/components/Editor/Logs/index.tsx@@ -15,6 +15,7 @@ import Button from 'components/Button'import DeployButton from './DeployButton'import Link from 'next/link'+import { Check, X } from 'lucide-react'export interface Props {logs?: Log[]@@ -87,15 +88,23 @@ function Logs({justify-between">- <Text- text="Latest Deployment"- className="+ <div className="+ space-x-1+ flex+ items-center+ ">+ <Text+ text="Latest Deployment"+ className="font-semibolduppercasetext-slate-400"- size={Text.size.S2}- />+ size={Text.size.S2}+ />+ {deployStatus === deployment_state.finished && <Check className="text-green-800" size="18px" />}+ {deployStatus === deployment_state.error && <X className="text-red-600" size="18px" />}+ </div><DeployButtondeploy={deploy}isInitializingDeploy={isInitializingDeploy}