SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Web: Move swe-agent logo to top bar
Kilian Lieret184d42344009
diff --git a/sweagent/frontend/src/components/Header.js b/sweagent/frontend/src/components/Header.jsindex 88d6676b..61483a3b 100644--- a/sweagent/frontend/src/components/Header.js+++ b/sweagent/frontend/src/components/Header.js@@ -1,11 +1,19 @@import React from "react";import "../static/header.css";-// import { Link } from 'react-router-dom';+import logo from '../assets/logo.png'+import { Link } from 'react-router-dom';const Header = () => {return (<><header>+ <Link+ to="https://github.com/princeton-nlp/swe-agent"+ target="_blank"+ rel="noopener noreferrer"+ >+ <img src={logo} style={{height: 50, marginRight: 20}} alt="swe agent logo"/>+ </Link>{/* <Link to="/"><button>Home</button></Link>diff --git a/sweagent/frontend/src/components/controls/LRunControl.js b/sweagent/frontend/src/components/controls/LRunControl.jsindex 7d8b9ed8..39778093 100644--- a/sweagent/frontend/src/components/controls/LRunControl.js+++ b/sweagent/frontend/src/components/controls/LRunControl.js@@ -3,7 +3,7 @@ import { Tab, Tabs } from 'react-bootstrap';import Form from 'react-bootstrap/Form';import '../../static/runControl.css';import { PlayFill, StopFill} from 'react-bootstrap-icons';-import logo from '../../assets/logo.png'+import { Link } from 'react-router-dom';function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDataPath, setTestRun, testRun, setRepoPath, setModel}) {@@ -92,7 +92,6 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat</Tabs><div className="runControl p-3"><div>- <img src={logo} style={{height: 50, marginRight: 20}} alt="swe agent logo"/><div class="btn-group" role="group" aria-label="Basic example"><button type="submit" className="btn btn-primary" onClick={handleSubmit} disabled={isComputing || !isConnected}><PlayFill/> Run</button><button onClick={handleStop} disabled={!isComputing} className="btn btn-primary"><StopFill/> Stop</button>diff --git a/sweagent/frontend/src/static/header.css b/sweagent/frontend/src/static/header.cssindex 416243ae..6b8bd901 100644--- a/sweagent/frontend/src/static/header.css+++ b/sweagent/frontend/src/static/header.css@@ -1,9 +1,12 @@header {margin-bottom: 1em;margin-top: 1.5em;- align-items: center;- justify-content: center;+ margin-left: auto;+ margin-right: auto;+ align-items: left;+ justify-content: left;display: flex;+ width: 54%;}header button {