refactor: unify StartToolModal — remove inline duplicate from workspace detail

- Delete inline hardcoded StartToolModal from workspace-detail.tsx
- Import shared StartToolModal that fetches real tool types from API
- Pass workspace object to ToolsTab so shared modal gets proper context
- onStart handler passes optional configProfileId through to useWorkspaceInstances.create()

Quality gates: tsc --noEmit clean
This commit is contained in:
2026-06-01 20:45:19 +02:00
parent 06a4a27880
commit 398436ecb5
2 changed files with 10 additions and 68 deletions
+1 -3
View File
@@ -76,9 +76,7 @@ export function StartToolModal({
{status === "loading" && (
<span className="muted">Loading tools...</span>
)}
{loadError && (
<span className="error-text">{loadError}</span>
)}
{loadError && <span className="error-text">{loadError}</span>}
</div>
<div className="form-group">
<label htmlFor="config-profile">Config Profile (optional)</label>