mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-03-17 02:43:09 +00:00
feat: fix tooltip shortcuts and add dev server config dialog
Tooltip fixes (PR #177 follow-up): - Remove duplicate title attr on Settings button that caused double-tooltip - Restore keyboard shortcut hints in tooltip text: Settings (,), Reset (R) - Clean up spurious peer markers in package-lock.json Dev server config dialog: - Add DevServerConfigDialog component for custom dev commands - Open config dialog automatically when start fails with "no dev command" - Add useDevServerConfig/useUpdateDevServerConfig hooks - Add updateDevServerConfig API function - Add config gear button next to dev server start Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -445,6 +445,16 @@ export async function getDevServerConfig(projectName: string): Promise<DevServer
|
||||
return fetchJSON(`/projects/${encodeURIComponent(projectName)}/devserver/config`)
|
||||
}
|
||||
|
||||
export async function updateDevServerConfig(
|
||||
projectName: string,
|
||||
customCommand: string | null
|
||||
): Promise<DevServerConfig> {
|
||||
return fetchJSON(`/projects/${encodeURIComponent(projectName)}/devserver/config`, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify({ custom_command: customCommand }),
|
||||
})
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Terminal API
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user