Skip to content

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: Add link to github readme

Kilian Lierete077fd6a1231
diff --git a/sweagent/frontend/src/components/controls/LRunControl.js b/sweagent/frontend/src/components/controls/LRunControl.js
index 254fdf94..7f981e48 100644
--- a/sweagent/frontend/src/components/controls/LRunControl.js
+++ b/sweagent/frontend/src/components/controls/LRunControl.js
@@ -4,6 +4,7 @@ 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, dataPath, testRun, repoPath, setRepoPath}) {
const [psType, setPsType] = useState('gh');
@@ -74,11 +75,24 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat
</div>
</Tab>
</Tabs>
- <div className="runControlButtons">
- <img src={logo} style={{height: 50, marginRight: 20}}/>
- <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>
+ <div className="runControl">
+ <div>
+ <img src={logo} style={{height: 50, marginRight: 20}}/>
+ <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>
+ </div>
+ </div>
+ <div className="extraButtons">
+ <div class="btn-group" role="group" aria-label="Basic example">
+ <Link
+ to="https://github.com/princeton-nlp/SWE-agent"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <button type="button" class="btn btn-outline-secondary">GitHub readme</button>
+ </Link>
+ </div>
</div>
</div>
</div>
diff --git a/sweagent/frontend/src/static/runControl.css b/sweagent/frontend/src/static/runControl.css
index 03057272..6f7c5955 100644
--- a/sweagent/frontend/src/static/runControl.css
+++ b/sweagent/frontend/src/static/runControl.css
@@ -13,10 +13,12 @@
background-color: white;
}
-div .runControlButtons {
+div .runControl{
background-color: white;
padding: 10px;
border-radius: 0 0 0.5em 0.5em;
border: 1px solid #ddd;
border-top: none;
+ display: flex;
+ justify-content: space-between;
}
\ No newline at end of file