diff options
| author | soryu <soryu@soryu.co> | 2026-02-04 12:04:58 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-04 12:04:58 +0000 |
| commit | 9521910b1fcbbc29c80b791e2c91d814030cb3cf (patch) | |
| tree | f159f5d4be4d8f79f9f089caf1359a8335bf7d2b /makima/frontend/src/lib | |
| parent | 8692cfcc9567d5404f50aa4aec6ce1bae9ab26ed (diff) | |
| download | soryu-9521910b1fcbbc29c80b791e2c91d814030cb3cf.tar.gz soryu-9521910b1fcbbc29c80b791e2c91d814030cb3cf.zip | |
Improve chain DAG editor UX
- Fix drag lag by disabling CSS transitions during drag
- Add canvas right-click context menu to create definitions at position
- Auto-find free grid space for new definitions to avoid overlap
- Fix startChain API to send empty JSON body (backend expects JSON)
- Add PlusIcon for context menu
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/lib')
| -rw-r--r-- | makima/frontend/src/lib/api.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index 6a40aec..d68c1ad 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -3425,6 +3425,8 @@ export async function getChainDefinitionGraph( export async function startChain(chainId: string): Promise<StartChainResponse> { const res = await authFetch(`${API_BASE}/api/v1/chains/${chainId}/start`, { method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({}), }); if (!res.ok) { const error = await res.json().catch(() => ({ message: res.statusText })); |
