Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add e2b GH link to smol dev pages and dashboard; Fix inconsistencies
Tomas Valenta83f469d11183
diff --git a/components/Layout.tsx b/components/Layout.tsxindex 16a94429b..0d37f6e26 100644--- a/components/Layout.tsx+++ b/components/Layout.tsx@@ -20,6 +20,7 @@ import DashboardMobileSidebar from 'components/Sidebar/DashboardMobileSidebar'import Feedback from 'components/Feedback'import * as gtag from '../utils/gtag'+import StarUs from './StarUs'const inter = Inter({subsets: ['latin'],@@ -155,14 +156,18 @@ function Layout({ children }: PropsWithChildren) {<Menu aria-hidden="true" /></button>- <div className="xl:hidden">+ <div className="xl:hidden flex space-x-4">+ <StarUs /><Feedback /></div></div>{/* Header` */}- <div className="hidden xl:flex px-4 py-2 border border-white/5 bg-gray-900 rounded-md">- <Feedback />+ <div className="hidden xl:flex px-4 py-2 border border-white/5 justify-end bg-gray-900 rounded-md">+ <div className="flex justify-end space-x-4">+ <StarUs />+ <Feedback />+ </div></div><div className="mt-1 flex-1 flex flex-col self-stretch overflow-auto bg-gray-900 rounded-md border border-white/5">diff --git a/components/SelectRepository/index.tsx b/components/SelectRepository/index.tsxindex dd9cdc4a8..5d894fecb 100644--- a/components/SelectRepository/index.tsx+++ b/components/SelectRepository/index.tsx@@ -101,7 +101,7 @@ function SelectRepository({)}<buttontype="button"- className="flex justify-start items-center text-xs font-medium space-x-1 text-white/80 hover:text-white transition-all mt-4 rounded-md"+ className="flex justify-start items-center text-xs font-medium space-x-1 text-gray-400 hover:text-white transition-all mt-4 rounded-md"onClick={configure}><span>Configure GitHub Permissions</span>diff --git a/components/Sidebar/DashboardDesktopSidebar.tsx b/components/Sidebar/DashboardDesktopSidebar.tsxindex 85345d5ee..897575d4c 100644--- a/components/Sidebar/DashboardDesktopSidebar.tsx+++ b/components/Sidebar/DashboardDesktopSidebar.tsx@@ -59,7 +59,7 @@ function DashboardDesktopSidebar({className="text-sm font-semibold text-gray-400 hover:text-white transition-all"onClick={onSignOut}>- Sign Out+ Sign out</button></div></li>diff --git a/components/Sidebar/DashboardMobileSidebar.tsx b/components/Sidebar/DashboardMobileSidebar.tsxindex 8b6267bbe..a69c0a631 100644--- a/components/Sidebar/DashboardMobileSidebar.tsx+++ b/components/Sidebar/DashboardMobileSidebar.tsx@@ -99,7 +99,7 @@ function DashboardMobileSidebar({className="text-sm font-semibold text-gray-400 hover:text-white transition-all"onClick={onSignOut}>- Sign Out+ Sign out</button></div></li>diff --git a/components/StarUs.tsx b/components/StarUs.tsxnew file mode 100644index 000000000..cc5482007--- /dev/null+++ b/components/StarUs.tsx@@ -0,0 +1,20 @@+import { StarIcon } from 'lucide-react'+import Link from 'next/link'++function StarUs() {+ return (+ <Link+ href="https://github.com/e2b-dev/e2b"+ target="_blank"+ rel="noreferrer"+ className="flex items-center space-x-1 text-xs text-gray-400 hover:text-white transition-all"+ >+ <StarIcon size="14px" />+ <span>+ Star us on GitHub+ </span>+ </Link>+ )+}++export default StarUsdiff --git a/pages/agent/smol-developer/index.tsx b/pages/agent/smol-developer/index.tsxindex 48ae534c1..7d9c34c82 100644--- a/pages/agent/smol-developer/index.tsx+++ b/pages/agent/smol-developer/index.tsx@@ -14,6 +14,7 @@ import { usePostHog } from 'posthog-js/react'import { serverCreds } from 'db/credentials'import SpinnerIcon from 'components/Spinner'+import StarUs from 'components/StarUs'type Repo = {name: string@@ -68,7 +69,7 @@ function SmolDeveloper({}return (- <div className="bg-white h-full">+ <div className="h-full"><div className="m-auto h-full max-w-full"><div className="h-full relative isolate overflow-x-hidden md:overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:px-16 md:pt-24 lg:flex lg:gap-x-20 lg:px-24 lg:pt-0"><svg@@ -86,14 +87,17 @@ function SmolDeveloper({</svg><div className="m-auto max-w-xl text-center lg:mx-0 lg:flex-auto lg:py-32 lg:text-left"><div className="flex flex-col space-y-4 items-center lg:items-start">- <Link- href="/" className="inline-flex space-x-6"- onMouseDown={() => posthog?.capture('clicked link to e2b homepage')}- >- <span className="rounded-full bg-indigo-400/10 px-3 py-1 text-sm font-semibold leading-6 text-indigo-400 ring-1 ring-inset ring-indigo-400/20">- Runs on <b>e2b</b>- </span>- </Link>+ <span className="flex space-x-4">+ <Link+ href="/" className="inline-flex space-x-6"+ onMouseDown={() => posthog?.capture('clicked link to e2b homepage')}+ >+ <span className="rounded-full bg-indigo-400/10 px-3 py-1 text-sm font-semibold leading-6 text-indigo-400 ring-1 ring-inset ring-indigo-400/20">+ Runs on <b>e2b</b>+ </span>+ </Link>+ <StarUs />+ </span><h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl">Your personal AI developer.<br />diff --git a/pages/agent/smol-developer/setup.tsx b/pages/agent/smol-developer/setup.tsxindex 0990d9f65..bea21f913 100644--- a/pages/agent/smol-developer/setup.tsx+++ b/pages/agent/smol-developer/setup.tsx@@ -28,6 +28,7 @@ import { Creds } from 'hooks/useModelProviderArgs'import { getDefaultModelConfig, getModelArgs, ModelConfig } from 'state/model'import { GitHubAccount } from 'utils/github'import { RepoSetup } from 'utils/repoSetup'+import StarUs from 'components/StarUs'export interface PostAgentBody {// ID of the installation of the GitHub App@@ -227,15 +228,15 @@ function Setup() {}, [github, user])return (- <div className="h-full flex flex-col items-center justify-start bg-gray-800 py-8 px-6">+ <div className="h-full flex flex-col items-center justify-start bg-gray-800 py-8 px-6 space-y-8"><div className="mb-4 w-full flex items-center justify-between">- <span /><button- className="text-sm font-semibold text-white"+ className="text-sm font-semibold text-gray-400 hover:text-white transition-all"onClick={signOut}>- Log out+ Sign out</button>+ <StarUs /></div><div className="overflow-hidden flex-1 mx-auto w-full max-w-lg flex flex-col"><Stepsdiff --git a/utils/smolTemplates.ts b/utils/smolTemplates.tsindex 1862f80fc..bb5db7758 100644--- a/utils/smolTemplates.ts+++ b/utils/smolTemplates.ts@@ -6,7 +6,7 @@ export interface Template {const templates: { [key: string]: Template } = {createReactApp: {title: 'React App',- content: '# A starter react app\nA starter react app based on the latest standards with Typescript.\n\n ### Requirements\n- Authentication: Implement user authentication using libraries like Firebase Authentication.',+ content: '# A starter react app\nA starter react app based on the latest standards with Typescript.\n\n ### Requirements\n- Authentication: Implement user authentication using libraries like Firebase Authentication',},createNextApp: {title: 'Next.js App',@@ -22,11 +22,11 @@ const templates: { [key: string]: Template } = {},personalWebsite: {title: 'Personal Website',- content: '# Personal Website\n Build a simple personal website\n ### Tech stack\n- Simple HTML and CSS.\n- Use Tailwind CSS for styling. \n ### Design \n - Make it dark, clean and simple',+ content: '# Personal Website\n Build a simple personal website.\n ### Tech stack\n- Simple HTML and CSS\n- Use Tailwind CSS for styling\n ### Design \n - Make it dark, clean and simple',},createChromeExtension: {title: 'Chrome extension',- content: '# Website Comment Chrome Extension\n Build a Chrome extension that allows the user to add comments to websites, providing a platform for users to save their thoughts, opinions, and feedback directly on the web pages.\n\n### Tech Stack\n- HTML: Markup language for creating the extension\'s user interface.\n- CSS: Styling language for customizing the appearance of the comment interface.\n- JavaScript: Programming language for implementing extension functionality and user interaction.\n- Chrome Storage API: Used to store and retrieve comments for specific web pages.'+ content: '# Website Comment Chrome Extension\n Build a Chrome extension that allows the user to add comments to websites, providing a platform for users to save their thoughts, opinions, and feedback directly on the web pages.\n\n### Tech Stack\n- HTML: Markup language for creating the extension\'s user interface\n- CSS: Styling language for customizing the appearance of the comment interface\n- JavaScript: Programming language for implementing extension functionality and user interaction\n- Chrome Storage API: Used to store and retrieve comments for specific web pages'},createWebScraper: {title: 'Web Scraper',