refactor(dashboard): change SpawnModal from overlay modal to dropdown
Position the spawn modal directly under the 'New Agent' button without a blur overlay. Uses click-outside dismissal and absolute positioning. Reduces visual disruption for quick agent spawning.
This commit is contained in:
@@ -29,11 +29,11 @@ export async function fetchWithTimeout(url, options = {}, timeoutMs = API_TIMEOU
|
||||
export async function fetchSkills(agent) {
|
||||
const url = `${API_SKILLS}?agent=${encodeURIComponent(agent)}`;
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
const response = await fetchWithTimeout(url);
|
||||
if (!response.ok) return null;
|
||||
return response.json();
|
||||
return await response.json();
|
||||
} catch {
|
||||
// Network error or other failure - graceful degradation
|
||||
// Network error, timeout, or JSON parse failure - graceful degradation
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user