summaryrefslogtreecommitdiff
path: root/web/index.html
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-07 00:06:44 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-07 00:06:44 +0000
commit0291a7880d29b39d7cd56a6a8be66a9b5ec3f457 (patch)
tree2ed6fda247c12f590cc05e4e5150c165c42a5640 /web/index.html
parent5f1bfde96d6a36381987c0f700d66e1099d5f8f9 (diff)
ui: Project dropdown in new task dialog, first field, defaults to /workspace/claudomator
- Moved working directory to first field, renamed to "Project" - Replaced text input with a select populated from GET /api/workspaces (lists subdirs of /workspace dynamically) - "Create new project…" option reveals a custom path input - elaborate result handler sets select or falls back to new-project input - Added GET /api/workspaces endpoint in server.go Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index 7afeb76..8bfa6bb 100644
--- a/web/index.html
+++ b/web/index.html
@@ -56,6 +56,14 @@
<p class="elaborate-hint">Claude will fill in the form fields below. You can edit before submitting.</p>
</div>
<hr class="form-divider">
+ <label>Project
+ <select name="working_dir" id="project-select">
+ <option value="/workspace/claudomator" selected>/workspace/claudomator</option>
+ </select>
+ </label>
+ <div id="new-project-row" hidden>
+ <label>New project path <input id="new-project-input" placeholder="/workspace/my-project"></label>
+ </div>
<label>Name <input name="name" required></label>
<label>Instructions <textarea name="instructions" rows="6" required></textarea></label>
<div class="validate-section">
@@ -64,7 +72,6 @@
</button>
<div id="validate-result" hidden></div>
</div>
- <label>Working Directory <input name="working_dir" placeholder="/path/to/repo"></label>
<label>Model <input name="model" value="sonnet"></label>
<label>Max Budget (USD) <input name="max_budget_usd" type="number" step="0.01" value="1.00"></label>
<label>Timeout <input name="timeout" value="15m"></label>