Agent Zero AI framework
Reduce sidebar agent indentation and remove row tooltips
Alessandro3397c4f87cfe
diff --git a/plugins/_sidebar_folders/AGENTS.md b/plugins/_sidebar_folders/AGENTS.mdindex fa9800375..543486123 100644--- a/plugins/_sidebar_folders/AGENTS.md+++ b/plugins/_sidebar_folders/AGENTS.md@@ -33,6 +33,7 @@- Folder rows use compact spacing tokens; thread lists have no vertical guide border and reuse the smaller core thread dots. Dim empty-folder labels and give their rows the same height as a chat row, preserving space before the next folder.- Extend list rows `--spacing-xs` beyond the header controls, with the same inset after their last action button. Keep header positions fixed so folder, chat, and worker action columns align in both views.- Folder actions reuse the standard chat action buttons with a subtle border at rest. Show them on pointer hover, keyboard focus, or while the folder menu is open; touch devices also show them for expanded folders.+- Folder-row new-chat and overflow buttons use accessible labels without tooltips; Chats header controls retain their tooltips.- Sidebar menus share their pointer scope with the opening row or header. Dismiss after leaving both, allowing a short gap-crossing delay; also dismiss when focus leaves, the surrounding list scrolls, the window resizes, or the header extension unmounts. Mouse cleanup must not interrupt touch interaction or scrolling inside a menu.- Resolve the core row menu through its `rowActionsMenu` reference, not shared menu styling classes that community plugins may also use. Header integrations must preserve the core header and its `chats-header-controls` extension point.- The two list-view extension points are display-only alternatives. Disabling the plugin restores the core lists and existing chat/task controls.diff --git a/plugins/_sidebar_folders/webui/folder-list.html b/plugins/_sidebar_folders/webui/folder-list.htmlindex cade230e4..db35c561c 100644--- a/plugins/_sidebar_folders/webui/folder-list.html+++ b/plugins/_sidebar_folders/webui/folder-list.html@@ -33,11 +33,11 @@<x-icon class="sidebar-folder-pin" name="push_pin" x-show="$store.pinToTop.isProjectPinned(group.id)"></x-icon></button><button type="button" class="btn-icon-action chat-list-action-btn sidebar-folder-action" :aria-label="'New chat in ' + group.title"- :title="'New chat in ' + group.title" @click.stop="$store.sidebarFolders.newChat(group.id)">+ @click.stop="$store.sidebarFolders.newChat(group.id)"><x-icon name="chat_add_on"></x-icon></button><button type="button" class="btn-icon-action chat-list-action-btn sidebar-folder-action" :aria-label="'Actions for ' + group.title"- title="Folder actions" aria-haspopup="menu"+ aria-haspopup="menu":aria-expanded="$store.sidebarFolders.menu === 'project' && $store.sidebarFolders.menuProject === group.id"@click.stop="$store.sidebarFolders.openMenu('project', $event.currentTarget, group.id)"><x-icon name="more_vert"></x-icon>diff --git a/webui/components/sidebar/AGENTS.md b/webui/components/sidebar/AGENTS.mdindex 39c2f5a7d..c56b7ccbb 100644--- a/webui/components/sidebar/AGENTS.md+++ b/webui/components/sidebar/AGENTS.md@@ -18,7 +18,7 @@- Keep chat and task list updates compatible with WebSocket state sync.- Contexts with `parent_context_id` render as indented children beneath their parent chat; they must remain selectable while hidden from the top-level chat list.- The shared chat tree recurses through every subordinate level, mounting children only while expanded. Selecting or restoring a descendant expands all ancestors in both list views.-- Indentation tapers at the third child level and stops increasing after it, preserving room for titles and actions in narrow sidebars.+- Child indentation uses `--spacing-md` + `--spacing-xs` for the first two child levels, tapers at the third, and stops increasing after it, preserving room for titles and actions in narrow sidebars.- Chat tree expand/collapse controls use a parent-only leading slot, with right/down chevrons for collapsed/expanded state. Use spacing tokens for compact rows and the additional child indentation without consuming normal chat row text margin.- A restored selected parent chat with children auto-expands once during context hydration unless the user has already toggled it.- The Tasks list is reserved for scheduler-backed task contexts and must not be used for chat-bound parallel children.@@ -27,6 +27,7 @@- Chat-row action buttons consume layout width only while a pointer row is hovered or while that row is selected on a touch device.- Row overflow menus choose the roomier side of their trigger and cap their height to the available viewport so plugin actions remain reachable.- Built-in chat and task overflow menus follow the standard row actions; plugin controls remain direct row actions.+- Row overflow buttons retain accessible labels without tooltips; Chats header controls retain their tooltips.- `chats.saveChat(ctxid)` exports an explicit context without changing selection; omitted IDs retain current-chat behavior.- Cancelling the Load Chat file chooser resolves without calling `chat_load` or showing a success/error notification.- `sidebar-row-actions-menu` owns plugin-contributed row-menu actions; list-order plugins register stable sort and divider callbacks through the sidebar store instead of patching chat/task stores or injecting row DOM.diff --git a/webui/components/sidebar/chats/chat-tree.html b/webui/components/sidebar/chats/chat-tree.htmlindex 995163467..3f2ce4d81 100644--- a/webui/components/sidebar/chats/chat-tree.html+++ b/webui/components/sidebar/chats/chat-tree.html@@ -22,7 +22,7 @@<button class="btn-icon-action chat-list-action-btn" title="Close chat" @click.stop="$confirmClick($event, () => $store.chats.killChat(context.id))"><x-icon name="close"></x-icon></button>- <button type="button" class="btn-icon-action chat-list-action-btn" title="More chat actions"+ <button type="button" class="btn-icon-action chat-list-action-btn"aria-label="More chat actions" aria-haspopup="menu":aria-expanded="($store.sidebar.rowMenuOpenId === `chat:${context.id}`).toString()"@click.stop="$store.sidebar.rowMenuToggle(`chat:${context.id}`, 'chat', $event.currentTarget)">diff --git a/webui/components/sidebar/chats/chats-list.html b/webui/components/sidebar/chats/chats-list.htmlindex c84167f44..67d08cd7f 100644--- a/webui/components/sidebar/chats/chats-list.html+++ b/webui/components/sidebar/chats/chats-list.html@@ -99,7 +99,7 @@.chat-child-list {list-style: none;- padding: 0 0 0 calc(var(--spacing-md) + var(--spacing-sm));+ padding: 0 0 0 calc(var(--spacing-md) + var(--spacing-xs));margin: 0;width: 100%;box-sizing: border-box;diff --git a/webui/components/sidebar/tasks/task-row.html b/webui/components/sidebar/tasks/task-row.htmlindex 5173501a4..daafaf3bf 100644--- a/webui/components/sidebar/tasks/task-row.html+++ b/webui/components/sidebar/tasks/task-row.html@@ -28,7 +28,7 @@<button class="btn-icon-action" title="Delete task" @click.stop="$confirmClick($event, () => $store.tasks.deleteTask(task.id))"><x-icon name="close"></x-icon></button>- <button type="button" class="btn-icon-action" title="More task actions"+ <button type="button" class="btn-icon-action"aria-label="More task actions" aria-haspopup="menu":aria-expanded="($store.sidebar.rowMenuOpenId === `task:${task.id}`).toString()"@click.stop="$store.sidebar.rowMenuToggle(`task:${task.id}`, 'task', $event.currentTarget)">