I've made both changes: (#1962)

1. **Moved the Dev Server Script input** to be the first field in the Scripts & Configuration section (in `ReposSettings.tsx`)

2. **Updated the section description** in the English locale to mention "dev server" scripts: the description now reads "Configure dev server, setup, cleanup, and copy files for this repository..."
This commit is contained in:
Gabriel Gordon-Hall
2026-01-12 12:55:43 +00:00
committed by GitHub
parent 8074d8f3f5
commit ea2a053403
2 changed files with 22 additions and 22 deletions

View File

@@ -367,7 +367,7 @@
},
"scripts": {
"title": "Scripts & Configuration",
"description": "Configure setup, cleanup, and copy files for this repository. These scripts run whenever the repository is used in any workspace.",
"description": "Configure dev server, setup, cleanup, and copy files for this repository. These scripts run whenever the repository is used in any workspace.",
"setup": {
"label": "Setup Script",
"helper": "This script runs from within the worktree after it's created and before the coding agent starts. Use it for setup tasks like installing dependencies or preparing the environment.",

View File

@@ -335,6 +335,27 @@ export function ReposSettings() {
</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<div className="space-y-2">
<Label htmlFor="dev-server-script">
{t('settings.repos.scripts.devServer.label')}
</Label>
<AutoExpandingTextarea
id="dev-server-script"
value={draft.dev_server_script}
onChange={(e) =>
updateDraft({
dev_server_script: e.target.value,
})
}
placeholder={placeholders.dev}
maxRows={12}
className="w-full px-3 py-2 border border-input bg-background text-foreground rounded-md focus:outline-none focus:ring-2 focus:ring-ring font-mono"
/>
<p className="text-sm text-muted-foreground">
{t('settings.repos.scripts.devServer.helper')}
</p>
</div>
<div className="space-y-2">
<Label htmlFor="setup-script">
{t('settings.repos.scripts.setup.label')}
@@ -414,27 +435,6 @@ export function ReposSettings() {
</p>
</div>
<div className="space-y-2">
<Label htmlFor="dev-server-script">
{t('settings.repos.scripts.devServer.label')}
</Label>
<AutoExpandingTextarea
id="dev-server-script"
value={draft.dev_server_script}
onChange={(e) =>
updateDraft({
dev_server_script: e.target.value,
})
}
placeholder={placeholders.dev}
maxRows={12}
className="w-full px-3 py-2 border border-input bg-background text-foreground rounded-md focus:outline-none focus:ring-2 focus:ring-ring font-mono"
/>
<p className="text-sm text-muted-foreground">
{t('settings.repos.scripts.devServer.helper')}
</p>
</div>
{/* Save Buttons */}
<div className="flex items-center justify-between pt-4 border-t">
{hasUnsavedChanges ? (