Skip to content

Agent Zero AI framework

Polish sidebar task actions

Alessandro704c0e9daf11
diff --git a/extensions/webui/right_canvas_register_surfaces/register-remote-link.js b/extensions/webui/right_canvas_register_surfaces/register-remote-link.js
index 0477001a2..ca8dc6dfb 100644
--- a/extensions/webui/right_canvas_register_surfaces/register-remote-link.js
+++ b/extensions/webui/right_canvas_register_surfaces/register-remote-link.js
@@ -1,18 +1,3 @@
-const REMOTE_LINK_MODAL_PATH = "settings/tunnel/remote-link.html";
-
-export default async function registerRemoteLinkAction(canvas) {
- canvas.registerSurface({
- id: "remote-link",
- title: "Remote Link",
- icon: "share",
- order: 31,
- actionOnly: true,
- async open() {
- if (typeof globalThis.ensureModalOpen === "function") {
- await globalThis.ensureModalOpen(REMOTE_LINK_MODAL_PATH);
- return;
- }
- await globalThis.openModal?.(REMOTE_LINK_MODAL_PATH);
- },
- });
+export default async function registerRemoteLinkAction() {
+ // Remote Link is opened from the sidebar dropdown, not the right canvas rail.
}
diff --git a/extensions/webui/right_canvas_register_surfaces/register-space-agent.js b/extensions/webui/right_canvas_register_surfaces/register-space-agent.js
index 957e58fe7..5fccb5ecc 100644
--- a/extensions/webui/right_canvas_register_surfaces/register-space-agent.js
+++ b/extensions/webui/right_canvas_register_surfaces/register-space-agent.js
@@ -1,14 +1,3 @@
-const SPACE_AGENT_URL = "https://space-agent.ai/";
-
-export default async function registerSpaceAgentAction(canvas) {
- canvas.registerSurface({
- id: "space-agent",
- title: "Space Agent",
- image: "/public/space-agent-icon-512.webp",
- order: 32,
- actionOnly: true,
- open() {
- globalThis.open(SPACE_AGENT_URL, "_blank", "noopener,noreferrer");
- },
- });
+export default async function registerSpaceAgentAction() {
+ // Space Agent is opened from the sidebar dropdown, not the right canvas rail.
}
diff --git a/webui/components/modals/scheduler/scheduler-modal.html b/webui/components/modals/scheduler/scheduler-modal.html
index d8cc69f2a..981d05a35 100644
--- a/webui/components/modals/scheduler/scheduler-modal.html
+++ b/webui/components/modals/scheduler/scheduler-modal.html
@@ -1,6 +1,6 @@
<html>
<head>
- <title>Task Scheduler</title>
+ <title>Tasks</title>
<script type="module">
import { store } from "/components/modals/scheduler/scheduler-store.js";
</script>
@@ -10,7 +10,7 @@
<template x-if="$store.schedulerStore">
<div class="scheduler-modal-content">
<div id="scheduler-settings-root" class="scheduler-dashboard">
- <div class="scheduler-dashboard-description">Manage scheduled tasks and automated processes for Agent Zero.</div>
+ <div class="scheduler-dashboard-description">Manage tasks and automated processes for Agent Zero.</div>
<x-component path="modals/scheduler/scheduler-task-editor.html"></x-component>
<x-component path="modals/scheduler/scheduler-task-list.html"></x-component>
</div>
@@ -62,4 +62,3 @@
</style>
</body>
</html>
-
diff --git a/webui/components/modals/scheduler/scheduler-store.js b/webui/components/modals/scheduler/scheduler-store.js
index cc654bf02..13b22a9e3 100644
--- a/webui/components/modals/scheduler/scheduler-store.js
+++ b/webui/components/modals/scheduler/scheduler-store.js
@@ -277,11 +277,11 @@ async function callSchedulerEndpoint(endpoint, payload = {}, defaultError) {
});
const data = await response.json().catch(() => ({}));
if (!response.ok) {
- return { ok: false, error: data?.error || defaultError || "Scheduler request failed" };
+ return { ok: false, error: data?.error || defaultError || "Task request failed" };
}
return { ok: true, data };
} catch (error) {
- return { ok: false, error: error?.message || defaultError || "Scheduler request failed" };
+ return { ok: false, error: error?.message || defaultError || "Task request failed" };
}
}
@@ -347,7 +347,7 @@ const notificationChannels = {
error: "frontendError",
};
-function pushNotification(type, message, title = "Scheduler", duration) {
+function pushNotification(type, message, title = "Tasks", duration) {
const channel = notificationChannels[type];
if (!channel || typeof notificationsStore[channel] !== "function") return;
const ttl = duration ?? NOTIFICATION_DURATION[type] ?? 4;
diff --git a/webui/components/sidebar/sidebar-store.js b/webui/components/sidebar/sidebar-store.js
index eb10c1df1..bbb9d8604 100644
--- a/webui/components/sidebar/sidebar-store.js
+++ b/webui/components/sidebar/sidebar-store.js
@@ -9,6 +9,7 @@ const model = {
// Centralized collapse state for all sidebar sections (persisted in localStorage)
sectionStates: {
tasks: false, // default: collapsed
+ chatActions: false, // default: collapsed
preferences: false // default: collapsed
},
diff --git a/webui/components/sidebar/top-section/header-icons.html b/webui/components/sidebar/top-section/header-icons.html
index d6e713829..a6f870003 100644
--- a/webui/components/sidebar/top-section/header-icons.html
+++ b/webui/components/sidebar/top-section/header-icons.html
@@ -88,9 +88,19 @@
<span>Files</span>
</button>
+ <button class="dropdown-item" @click="ensureModalOpen('settings/tunnel/remote-link.html'); $store.sidebar.menuClose()">
+ <span class="material-symbols-outlined">share</span>
+ <span>Remote Link</span>
+ </button>
+
+ <button class="dropdown-item" @click="open('https://space-agent.ai/', '_blank', 'noopener,noreferrer'); $store.sidebar.menuClose()">
+ <span class="material-symbols-outlined">rocket_launch</span>
+ <span>Space Agent</span>
+ </button>
+
<button class="dropdown-item" @click="openModal('components/modals/scheduler/scheduler-modal.html'); $store.sidebar.menuClose()">
<span class="material-symbols-outlined">schedule</span>
- <span>Scheduler</span>
+ <span>Tasks</span>
</button>
<button class="dropdown-item" @click="openModal('settings/settings.html'); $store.sidebar.menuClose()">
@@ -99,27 +109,42 @@
</button>
<div class="dropdown-separator"></div>
- <div class="dropdown-header">Chat Actions</div>
- <button class="dropdown-item" @click="$store.chats.newChat(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">chat_add_on</span>
- <span>New Chat</span>
+ <button
+ type="button"
+ class="dropdown-item quick-actions-accordion-toggle"
+ :class="{ 'is-open': $store.sidebar.isSectionOpen('chatActions') }"
+ :aria-expanded="$store.sidebar.isSectionOpen('chatActions').toString()"
+ @click="$store.sidebar.toggleSection('chatActions')"
+ >
+ <span class="quick-actions-accordion-label">
+ <span class="material-symbols-outlined">forum</span>
+ <span>Chat Actions</span>
+ </span>
+ <span class="material-symbols-outlined quick-actions-accordion-chevron">expand_more</span>
</button>
- <button class="dropdown-item" @click="$store.chats.loadChats(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">folder_open</span>
- <span>Load Chat</span>
- </button>
+ <div class="quick-actions-accordion-panel" x-show="$store.sidebar.isSectionOpen('chatActions')" style="display: none;">
+ <button class="dropdown-item" @click="$store.chats.newChat(); $store.sidebar.menuClose()">
+ <span class="material-symbols-outlined">chat_add_on</span>
+ <span>New Chat</span>
+ </button>
- <button class="dropdown-item" x-show="$store.chats.selected" @click="$store.chats.saveChat(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">save</span>
- <span>Save Chat</span>
- </button>
+ <button class="dropdown-item" @click="$store.chats.loadChats(); $store.sidebar.menuClose()">
+ <span class="material-symbols-outlined">folder_open</span>
+ <span>Load Chat</span>
+ </button>
- <button class="dropdown-item" x-show="$store.chats.selected" @click="$confirmClick($event, () => { $store.chats.resetChat(); $store.sidebar.menuClose() })">
- <span class="material-symbols-outlined">delete_sweep</span>
- <span>Clear Chat</span>
- </button>
+ <button class="dropdown-item" x-show="$store.chats.selected" @click="$store.chats.saveChat(); $store.sidebar.menuClose()">
+ <span class="material-symbols-outlined">save</span>
+ <span>Save Chat</span>
+ </button>
+
+ <button class="dropdown-item" x-show="$store.chats.selected" @click="$confirmClick($event, () => { $store.chats.resetChat(); $store.sidebar.menuClose() })">
+ <span class="material-symbols-outlined">delete_sweep</span>
+ <span>Clear Chat</span>
+ </button>
+ </div>
<div class="dropdown-separator"></div>
@@ -314,6 +339,30 @@
transform: scaleY(0.8);
}
+ .quick-actions-accordion-toggle {
+ justify-content: space-between;
+ }
+
+ .quick-actions-accordion-label {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--spacing-sm);
+ min-width: 0;
+ }
+
+ .quick-actions-accordion-chevron {
+ margin-left: auto;
+ transition: transform 0.15s ease;
+ }
+
+ .quick-actions-accordion-toggle.is-open .quick-actions-accordion-chevron {
+ transform: rotate(180deg);
+ }
+
+ .quick-actions-accordion-panel .dropdown-item {
+ padding-left: calc(var(--spacing-md) + 1.55rem);
+ }
+
/* --- Desktop Hover Expand --- */
@media (min-width: 769px) {
.sidebar-header-panel.sidebar-header-panel-open,
diff --git a/webui/components/welcome/welcome-screen.html b/webui/components/welcome/welcome-screen.html
index 947dd6d84..95a4192c3 100644
--- a/webui/components/welcome/welcome-screen.html
+++ b/webui/components/welcome/welcome-screen.html
@@ -32,7 +32,7 @@
<div class="welcome-action-card" @click="$store.welcomeStore.executeAction('scheduler')">
<span class="material-symbols-outlined welcome-action-icon">schedule</span>
- <h3 class="welcome-action-title">Scheduler</h3>
+ <h3 class="welcome-action-title">Tasks</h3>
</div>
<div class="welcome-action-card" @click="$store.welcomeStore.executeAction('settings')">
<span class="material-symbols-outlined welcome-action-icon">settings</span>