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 style: Descriptions for other text fields

Kilian Lieretdadc26a3f9e5
diff --git a/sweagent/frontend/src/components/controls/LRunControl.js b/sweagent/frontend/src/components/controls/LRunControl.js
index 21588fb0..7d8b9ed8 100644
--- a/sweagent/frontend/src/components/controls/LRunControl.js
+++ b/sweagent/frontend/src/components/controls/LRunControl.js
@@ -20,11 +20,14 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat
function getPsInput() {
if (psType === 'gh') {
return (
- <input
- type="text"
- className="form-control"
- onChange={(e) => setDataPath(e.target.value || defaultPS)}
- placeholder={defaultPS}/>
+ <div className="input-group mb-3">
+ <span className="input-group-text">GitHub issue URL</span>
+ <input
+ type="text"
+ className="form-control"
+ onChange={(e) => setDataPath(e.target.value || defaultPS)}
+ placeholder={defaultPS}/>
+ </div>
);
}
if (psType === 'write') {
@@ -58,7 +61,10 @@ function LRunControl({isComputing, isConnected, handleStop, handleSubmit, setDat
<div className="input-group mb-3">
{getPsInput()}
</div>
- <input type="text" className="form-control" placeholder="Enter repository path (optional when using GitHub issue)" onChange={(e) => setRepoPath(e.target.value)} />
+ <div className="input-group mb-3">
+ <span className="input-group-text">Repository path</span>
+ <input type="text" className="form-control" placeholder="Optional when using GitHub issue" onChange={(e) => setRepoPath(e.target.value)} />
+ </div>
</div>
</Tab>
<Tab eventKey="model" title="Model">