Agent Zero AI framework
ui: streamline sidebar buttons, add dropdown component
3clyp50d4587e0b7794
diff --git a/webui/components/dropdown/dropdown.html b/webui/components/dropdown/dropdown.htmlnew file mode 100644index 000000000..edbad3f97--- /dev/null+++ b/webui/components/dropdown/dropdown.html@@ -0,0 +1,69 @@+<!--+ Reusable Dropdown Component++ Usage:+ <x-component data-component="ui/dropdown" data-props='{"id": "my-dropdown"}'>+ <template x-slot:trigger>+ <button>Click me</button>+ </template>+ <template x-slot:menu>+ <button class="dropdown-item" @click="...">Item 1</button>+ <div class="dropdown-separator"></div>+ <button class="dropdown-item" @click="...">Item 2</button>+ </template>+ </x-component>++ Or use the simpler inline approach with x-data:+ <div class="dropdown" x-data="{ open: false }" @click.outside="open = false">+ <button class="dropdown-trigger" @click="open = !open">...</button>+ <div class="dropdown-menu" x-show="open" x-transition>...</div>+ </div>+-->+<html>+<head>+ <!-- Dropdown uses global styles from index.css -->+</head>+<body>+ <div+ class="dropdown"+ x-data="{+ open: false,+ toggle() { this.open = !this.open; },+ close() { this.open = false; }+ }"+ @click.outside="close()"+ @keydown.escape.window="close()"+ >+ <!-- Trigger slot -->+ <div class="dropdown-trigger-wrapper" @click="toggle()">+ <slot name="trigger">+ <button class="dropdown-trigger" type="button">+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">+ <path d="M6 9l6 6 6-6"/>+ </svg>+ </button>+ </slot>+ </div>++ <!-- Menu slot -->+ <div+ class="dropdown-menu"+ x-show="open"+ @click="close()"+ >+ <slot name="menu">+ <!-- Default empty menu -->+ </slot>+ </div>+ </div>++ <style>+ /* Component-specific styles (layout helpers) */+ .dropdown-trigger-wrapper {+ display: contents;+ }++ </style>+</body>+</html>+diff --git a/webui/components/settings/memory/memory-dashboard-store.js b/webui/components/modals/memory/memory-dashboard-store.jssimilarity index 99%rename from webui/components/settings/memory/memory-dashboard-store.jsrename to webui/components/modals/memory/memory-dashboard-store.jsindex bf246f5e8..c5c34fb7b 100644--- a/webui/components/settings/memory/memory-dashboard-store.js+++ b/webui/components/modals/memory/memory-dashboard-store.js@@ -53,7 +53,7 @@ const memoryDashboardStore = {pollingEnabled: false,async openModal() {- await openModal("settings/memory/memory-dashboard.html");+ await openModal("modals/memory/memory-dashboard.html");},init() {@@ -451,7 +451,7 @@ ${memory.content_full}this.editMode = false;this.editMemoryBackup = null;// Use global modal system- openModal("settings/memory/memory-detail-modal.html");+ openModal("modals/memory/memory-detail-modal.html");},closeMemoryDetails() {diff --git a/webui/components/settings/memory/memory-dashboard.html b/webui/components/modals/memory/memory-dashboard.htmlsimilarity index 99%rename from webui/components/settings/memory/memory-dashboard.htmlrename to webui/components/modals/memory/memory-dashboard.htmlindex f1e8e77dd..a35f1d95b 100644--- a/webui/components/settings/memory/memory-dashboard.html+++ b/webui/components/modals/memory/memory-dashboard.html@@ -3,7 +3,7 @@<head><title>Memory Dashboard</title><script type="module">- import { store } from "/components/settings/memory/memory-dashboard-store.js";+ import { store } from "/components/modals/memory/memory-dashboard-store.js";</script></head>diff --git a/webui/components/settings/memory/memory-detail-modal.html b/webui/components/modals/memory/memory-detail-modal.htmlsimilarity index 100%rename from webui/components/settings/memory/memory-detail-modal.htmlrename to webui/components/modals/memory/memory-detail-modal.htmldiff --git a/webui/components/settings/agent/memory.html b/webui/components/settings/agent/memory.htmlindex 9f6d8c684..1217ddf56 100644--- a/webui/components/settings/agent/memory.html+++ b/webui/components/settings/agent/memory.html@@ -34,7 +34,7 @@<div class="field-control"><buttonclass="btn btn-field"- @click="$store.settingsStore.handleFieldButton({ id: 'memory_dashboard' })"+ @click="openModal('modals/memory/memory-dashboard.html');">Open Dashboard</button>diff --git a/webui/components/settings/settings-store.js b/webui/components/settings/settings-store.jsindex d1090f9de..a8265352d 100644--- a/webui/components/settings/settings-store.js+++ b/webui/components/settings/settings-store.js@@ -6,6 +6,15 @@ import { store as notificationStore } from "/components/notifications/notificaticonst VIEW_MODE_STORAGE_KEY = "settingsActiveTab";const DEFAULT_TAB = "agent";+// Field button actions (field id -> modal path)+const FIELD_BUTTON_MODAL_BY_ID = Object.freeze({+ mcp_servers_config: "settings/mcp/client/mcp-servers.html",+ backup_create: "settings/backup/backup.html",+ backup_restore: "settings/backup/restore.html",+ show_a2a_connection: "settings/a2a/a2a-connection.html",+ external_api_examples: "settings/external/api-examples.html",+});+// Helper for toastsfunction toast(text, type = "info", timeout = 5000) {notificationStore.addFrontendToastOnly(type, text, "", timeout / 1000);@@ -146,19 +155,8 @@ const model = {// Field helpers for external components// Handle button field clicks (opens sub-modals)async handleFieldButton(field) {- if (field.id === "mcp_servers_config") {- window.openModal("settings/mcp/client/mcp-servers.html");- } else if (field.id === "backup_create") {- window.openModal("settings/backup/backup.html");- } else if (field.id === "backup_restore") {- window.openModal("settings/backup/restore.html");- } else if (field.id === "show_a2a_connection") {- window.openModal("settings/a2a/a2a-connection.html");- } else if (field.id === "external_api_examples") {- window.openModal("settings/external/api-examples.html");- } else if (field.id === "memory_dashboard") {- window.openModal("settings/memory/memory-dashboard.html");- }+ const modalPath = FIELD_BUTTON_MODAL_BY_ID[field?.id];+ if (modalPath) window.openModal(modalPath);},// Open settings modal from external callersdiff --git a/webui/components/sidebar/top-section/header-icons.html b/webui/components/sidebar/top-section/header-icons.htmlindex 307888d43..b44991df6 100644--- a/webui/components/sidebar/top-section/header-icons.html+++ b/webui/components/sidebar/top-section/header-icons.html@@ -2,18 +2,14 @@<head><script type="module">import { store as sidebarStore } from "/components/sidebar/sidebar-store.js";+ import { store as chatsStore } from "/components/sidebar/chats/chats-store.js";</script></head><body><div class="icons-section" id="hide-button" x-data><!-- Sidebar Toggle Button --><button id="toggle-sidebar" class="toggle-sidebar-button" @click="$store.sidebar.toggle()" aria-label="Toggle Sidebar" aria-expanded="false">- <span aria-hidden="true">- <!-- Hamburger Icon -->- <svg id="sidebar-hamburger-svg" xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="CurrentColor">- <path d="M3 13h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V7H3v2z"></path>- </svg>- </span>+ <span class="material-symbols-outlined" aria-hidden="true">menu</span></button><div id="logo-container">@@ -21,6 +17,13 @@<img src="./public/splash.jpg" alt="a0" width="22" height="22"></a></div>++ <!-- New Chat Button -->+ <button id="newChat" @click="$store.chats.newChat()" aria-label="New Chat">+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 110 135" width="32" height="32">+ <path d="m38.3 81.3 3.2-9.1 3.1-9v-.1c0-.2.1-.3.2-.4.1-.2.2-.3.3-.4L82.4 25c1.6-1.6 3.7-2.4 5.7-2.4h.2c2 0 4 .8 5.6 2.4l3.7 3.7.1.2c1.5 1.6 2.2 3.6 2.2 5.6v.2c0 2-.8 4-2.4 5.6l-.1.1-3.8 3.6-.1.1-.1.1-32.9 33-.1.1q-.45.45-.9.6l-9.1 3.2h-.1l-9.1 3.1c-1.2.4-2.5-.2-2.9-1.4q-.3-.75 0-1.5m7.5-7.6-1.6 4.6 4.6-1.6 5.7-2-3.4-3.4-3.3-3.3zm4.2-9.9 4.3 4.3 4.3 4.3 30-30-8.6-8.5zm35.7-35.7-2.5 2.5 8.6 8.6 2.4-2.4.1-.1c.6-.6 1-1.5 1-2.3v-.1c0-.9-.3-1.8-1-2.4l-3.7-3.7c-.6-.6-1.5-1-2.3-1h-.1c-.9-.1-1.8.3-2.5.9m.4 44.1c0-1.3 1-2.3 2.3-2.3s2.3 1 2.3 2.3V101c0 3.2-1.3 6.1-3.4 8.2s-5 3.4-8.2 3.4H21.6c-3.2 0-6.1-1.3-8.2-3.4s-3.4-5-3.4-8.2V43.4c0-3.2 1.3-6.1 3.4-8.2s5-3.4 8.2-3.4h28.8c1.3 0 2.3 1 2.3 2.3s-1 2.3-2.3 2.3H21.6c-1.9 0-3.7.8-4.9 2-1.3 1.3-2 3-2 4.9v57.6c0 1.9.8 3.6 2 4.9 1.3 1.3 3 2 4.9 2h57.6c1.9 0 3.7-.8 4.9-2 1.3-1.3 2-3 2-4.9z" style="fill:currentColor"></path>+ </svg>+ </button></div>@@ -45,8 +48,12 @@}.toggle-sidebar-button:hover { background-color: var(--color-secondary); opacity: 1; }.toggle-sidebar-button:active { opacity: 0.5; }- #sidebar-hamburger-svg { -webkit-transition: all var(--transition-speed) ease; transition: all var(--transition-speed) ease; }- .toggle-sidebar-button:active #sidebar-hamburger-svg { -webkit-transform: scaleY(0.8); transform: scaleY(0.8); }+ .toggle-sidebar-button .material-symbols-outlined {+ font-size: 22px;+ -webkit-transition: all var(--transition-speed) ease;+ transition: all var(--transition-speed) ease;+ }+ .toggle-sidebar-button:active .material-symbols-outlined { -webkit-transform: scaleY(0.8); transform: scaleY(0.8); }#logo-container {display: -webkit-flex;@@ -65,6 +72,26 @@.light-mode #logo-container img { -webkit-filter: invert(100%) grayscale(100%); filter: invert(100%) grayscale(100%); }+ /* New Chat Button */+ #newChat {+ display: flex;+ flex-wrap: nowrap;+ background-color: transparent;+ border: none;+ align-items: center;+ position: absolute;+ left: 12rem;+ top: var(--spacing-md);+ z-index: 1004;+ opacity: 0.6;+ cursor: pointer;+ -webkit-transition: all 0.1s ease-in-out, left var(--transition-speed) ease-in-out;+ transition: all 0.1s ease-in-out, left var(--transition-speed) ease-in-out;+ }+ #newChat:hover { opacity: 0.85; transform: scale(1.04); }+ #newChat:active { opacity: 0.5; transform: scale(0.98); }+ #newChat svg { color: var(--color-text); }+@media (max-width: 768px) {.toggle-sidebar-button { position: fixed; left: var(--spacing-md); z-index: 1004; }#logo-container { -webkit-transition: all 0.3s ease; transition: all 0.3s ease; z-index: 1004; }diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.htmlindex 8bcf0dd8c..e218d89f2 100644--- a/webui/components/sidebar/top-section/quick-actions.html+++ b/webui/components/sidebar/top-section/quick-actions.html@@ -7,67 +7,181 @@</head><body>- <div class="config-section" x-data>- <button class="config-button" id="resetChat" @click="$store.chats.resetChat()">Reset Chat</button>- <button class="config-button" id="newChat" @click="$store.chats.newChat()">New Chat</button>- <button class="config-button" id="loadChats" @click="$store.chats.loadChats()">Load Chat</button>- <button class="config-button" id="loadChat" @click="$store.chats.saveChat()">Save Chat</button>- <button class="config-button" id="restart" @click="$store.chats.restart()">Restart</button>- <button class="config-button" id="settings" @click="openModal('settings/settings.html')"><svg- xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="-5.0 -17.0 110.0 135.0" fill="currentColor" width="24"- height="24">- <path- d="m52.301 90.102h-4.1016c-3 0-5 0-6.8984-1.3984-1.8984-1.3984-2.5-3.3008-3.5-6.1016l-1.1016-3.6016c-0.19922-0.60156-0.69922-1.1992-1.3984-1.6016l-1.1016-0.60156c-0.60156-0.30078-1.5-0.39844-2.3008-0.19922l-4.3008 1.1992c-3.1016 0.89844-5.1016 1.5-7.3984 0.5-2.3008-0.89844-3.3984-2.8008-5-5.6016l-1.8008-3.1016c-1.5-2.5-2.5-4.3008-2.3008-6.6992 0.19922-2.3984 1.6016-3.8008 3.6016-6.1016l3.8008-4.1992c0.19922-0.19922 0.60156-1.3984 0.60156-2.6016 0-1.1016-0.5-2.3008-0.80078-2.6992l-3.6016-4c-2-2.1992-3.3008-3.6992-3.6016-6.1016-0.19922-2.3984 0.80078-4.1992 2.3008-6.6992l1.8008-3.1016c1.6016-2.8008 2.6992-4.6016 5-5.6016 2.3008-0.89844 4.3008-0.39844 7.3984 0.5l4.3984 1.1992c0.69922 0.10156 1.5 0 2.3008-0.30078l1.1016-0.60156c0.5-0.30078 1-0.89844 1.3008-1.6992l1.1992-3.5c0.89844-2.8008 1.6016-4.6992 3.5-6.1016 1.8984-1.3984 3.8984-1.3984 6.8984-1.3984h4.1016c3 0 5 0 6.8984 1.3984 1.8984 1.3984 2.5 3.1992 3.5 6.1016l1.1992 3.6016c0.19922 0.60156 0.69922 1.1992 1.3984 1.6016l1.1016 0.60156c0.60156 0.30078 1.5 0.39844 2.3008 0.19922l4.3008-1.1992c3.1016-0.89844 5.1016-1.5 7.3984-0.5 2.3008 0.89844 3.3984 2.8008 5 5.5l1.8008 3.1016c1.3984 2.5 2.5 4.3008 2.3008 6.6992-0.19922 2.3984-1.6016 3.8008-3.6016 6.1016l-3.9961 4.4062c-0.19922 0.19922-0.60156 1.3984-0.60156 2.6016 0 1.1016 0.5 2.3008 0.80078 2.6992l3.6016 4c2 2.1992 3.3008 3.6992 3.6016 6.1016 0.19922 2.3984-0.80078 4.1992-2.3008 6.6992l-1.8008 3.1016c-1.6016 2.8008-2.6992 4.6016-5 5.6016-2.3008 0.89844-4.3984 0.39844-7.3984-0.5l-4.3984-1.1992c-0.69922-0.10156-1.5 0-2.3008 0.30078l-1.1016 0.60156c-0.5 0.30078-1 0.89844-1.3008 1.6992l-1.1992 3.5c-0.89844 2.8008-1.6016 4.6992-3.5 6.1016-1.8008 1.293-3.8008 1.293-6.8008 1.293zm-6.6016-7.3008c0.5 0.10156 1.6016 0.10156 2.6016 0.10156h4.1016c1 0 2 0 2.6016-0.10156 0.19922-0.5 0.60156-1.5 0.89844-2.3984l1.1992-3.6016c0.89844-2.3008 2.3984-4.1992 4.3984-5.3984l1.3984-0.80078c2.3984-1.3008 5.1016-1.6016 7.6016-1l4.6016 1.3008c1 0.30078 2.1016 0.60156 2.6992 0.69922 0.30078-0.5 0.89844-1.5 1.3984-2.3984l1.8008-3.1016c0.5-0.80078 1-1.8008 1.1992-2.3008-0.30078-0.39844-1-1.1992-1.6992-2l-3.8008-4.1992c-1.6016-2-2.5-4.8008-2.5-7.3984 0-2.6016 0.89844-5.3984 2.3008-7.3008l3.8984-4.3984c0.69922-0.69922 1.3984-1.5 1.6992-2-0.19922-0.5-0.80078-1.3984-1.1992-2.3008l-1.8984-3.1016c-0.5-0.89844-1.1016-1.8984-1.3984-2.3984-0.60156 0.10156-1.6992 0.39844-2.6992 0.69922l-4.3984 1.3008c-2.6992 0.60156-5.3008 0.30078-7.6016-0.89844l-1.4023-0.80469c-2.1016-1.3984-3.6016-3.1992-4.3984-5.3984l-1.3008-3.8008c-0.30078-0.89844-0.60156-1.8984-0.89844-2.3984-0.5-0.10156-1.6016-0.10156-2.6016-0.10156h-4.1016c-1 0-2 0-2.6016 0.10156-0.19922 0.5-0.60156 1.5-0.89844 2.3984l-1.1992 3.6016c-0.89844 2.3008-2.3984 4.1992-4.3984 5.3984l-1.3984 0.80078c-2.3984 1.3008-5.1016 1.6016-7.6016 1l-4.6016-1.3008c-1-0.30078-2.1016-0.60156-2.6992-0.69922-0.30078 0.5-0.89844 1.5-1.3984 2.3984l-1.8008 3.1016c-0.5 0.80078-1 1.8008-1.1992 2.3008 0.30078 0.39844 1 1.1992 1.6992 2l3.8008 4.1992c1.6016 2 2.5 4.8008 2.5 7.3984 0 2.6016-0.89844 5.3984-2.3008 7.3008l-3.8984 4.3984c-0.69922 0.69922-1.3984 1.5-1.6992 2 0.19922 0.5 0.80078 1.3984 1.1992 2.3008l1.8008 3.1016c0.5 0.89844 1.1016 1.8984 1.3984 2.3984 0.60156-0.10156 1.6992-0.39844 2.6992-0.69922l4.3984-1.1992c2.6992-0.60156 5.3008-0.30078 7.6016 0.89844l1.3984 0.80078c2.1016 1.3008 3.6016 3.1992 4.3984 5.3984l1.3008 3.8008c0.5 0.80078 0.80078 1.8008 1 2.3008z">- </path>- <path- d="m50.301 66.5c-9 0-16.398-7.3008-16.398-16.398 0-9.1016 7.3008-16.398 16.398-16.398 9.1016 0 16.398 7.3008 16.398 16.398 0 9.0977-7.3984 16.398-16.398 16.398zm0-25.5c-5 0-9.1016 4.1016-9.1016 9.1016s4.1016 9.1016 9.1016 9.1016 9.1016-4.1016 9.1016-9.1016c-0.003906-5-4.1016-9.1016-9.1016-9.1016z">- </path>- </svg>Settings</button>- <button class="config-button" id="scheduler" @click="openModal('modals/scheduler/scheduler-modal.html')">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24" height="24">- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z"/>- </svg>Scheduler</button>- <button class="config-button" id="memory-dash"- @click="openModal('settings/memory/memory-dashboard.html');">Memory</button>- <button class="config-button" id="dashboard" @click="deselectChat()">Dashboard</button>+ <div class="wrapper" x-data="{ dropdownOpen: false }" @click.outside="dropdownOpen = false" @keydown.escape.window="dropdownOpen = false">+ <div id="quick-actions">+ <!-- Dashboard -->+ <button class="config-button" id="dashboard" @click="deselectChat()" title="Dashboard">+ <span class="material-symbols-outlined">dashboard</span>+ </button>+ <!-- Memory -->+ <button class="config-button" id="memory-dash" @click="openModal('modals/memory/memory-dashboard.html')" title="Memory">+ <span class="material-symbols-outlined">psychology</span>+ </button>++ <!-- Scheduler -->+ <button class="config-button" id="scheduler" @click="openModal('modals/scheduler/scheduler-modal.html')" title="Scheduler">+ <span class="material-symbols-outlined">schedule</span>+ </button>++ <!-- Settings -->+ <button class="config-button" id="settings" @click="openModal('settings/settings.html')" title="Settings">+ <span class="material-symbols-outlined">settings</span>+ </button>++ <!-- Dropdown Toggle -->+ <button class="config-button dropdown-toggle" @click="dropdownOpen = !dropdownOpen" title="More options">+ <span class="material-symbols-outlined" :class="dropdownOpen ? 'rotated' : ''">expand_more</span>+ </button>+ </div>++ <!-- Dropdown Menu -->+ <div class="dropdown-menu quick-actions-dropdown"+ x-show="dropdownOpen">++ <div class="dropdown-header">Navigation</div>++ <button class="dropdown-item" @click="deselectChat(); dropdownOpen = false">+ <span class="material-symbols-outlined">dashboard</span>+ <span>Dashboard</span>+ </button>++ <button class="dropdown-item" @click="openModal('modals/memory/memory-dashboard.html'); dropdownOpen = false">+ <span class="material-symbols-outlined">psychology</span>+ <span>Memories</span>+ </button>++ <button class="dropdown-item" @click="openModal('modals/scheduler/scheduler-modal.html'); dropdownOpen = false">+ <span class="material-symbols-outlined">schedule</span>+ <span>Scheduler</span>+ </button>++ <button class="dropdown-item" @click="openModal('settings/settings.html'); dropdownOpen = false">+ <span class="material-symbols-outlined">settings</span>+ <span>Settings</span>+ </button>++ <div class="dropdown-separator"></div>+ <div class="dropdown-header">Chat Actions</div>++ <button class="dropdown-item" @click="$store.chats.newChat(); dropdownOpen = false">+ <span class="material-symbols-outlined">add_comment</span>+ <span>New Chat</span>+ </button>++ <button class="dropdown-item" @click="$store.chats.loadChats(); dropdownOpen = false">+ <span class="material-symbols-outlined">folder_open</span>+ <span>Load Chat</span>+ </button>++ <button class="dropdown-item" @click="$store.chats.saveChat(); dropdownOpen = false">+ <span class="material-symbols-outlined">save</span>+ <span>Save Chat</span>+ </button>++ <div class="dropdown-separator"></div>++ <button class="dropdown-item" @click="$store.chats.restart(); dropdownOpen = false">+ <span class="material-symbols-outlined">restart_alt</span>+ <span>Restart A0</span>+ </button>++ </div></div></body>+<style>- .config-button {+ /* Wrapper container for icon toolbar */+ .wrapper {+ position: relative;+ padding: 0.2rem;+ border-radius: 0.6rem;background-color: var(--color-background);- border: 0.1rem solid var(--color-border);- border-radius: var(--spacing-xs);+ }++ /* Icon toolbar layout */+ #quick-actions {+ display: flex;+ flex-direction: row;+ flex-wrap: nowrap;+ width: 100%;+ justify-content: space-between;+ padding: 0;+ gap: 0;+ }++ /* Config button - icon only style */+ .config-button {+ background-color: var(--color-panel);+ border: 0.05rem solid var(--color-border);+ border-radius: 6px;cursor: pointer;- display: inline;- font-family: "Rubik", Arial, Helvetica, sans-serif;- font-size: var(--font-size-small);+ display: flex;+ align-items: center;+ justify-content: center;opacity: 0.8;- text-wrap: nowrap;- width: calc(50% - var(--spacing-xs));- float: left;- margin: 0 var(--spacing-xs) var(--spacing-xs) 0;- padding: var(--spacing-sm) 0.75rem;- max-height: 2.3rem;- -webkit-transition: all var(--transition-speed), transform 0.1s ease-in-out;+ padding: var(--spacing-xs);+ flex: 1;+ min-width: 0;transition: all var(--transition-speed), transform 0.1s ease-in-out;}+ .config-button .material-symbols-outlined {+ font-size: 22px;+ transition: transform 0.2s ease;+ }++ .config-button .material-symbols-outlined.rotated {+ transform: rotate(180deg);+ }++ /* Connected button borders */+ .config-button:not(:last-child) {+ margin-right: -1px;+ border-right: 1px solid var(--color-border);+ }++ .config-button:first-child {+ border-top-right-radius: 0;+ border-bottom-right-radius: 0;+ }++ .config-button:last-child {+ border-top-left-radius: 0;+ border-bottom-left-radius: 0;+ }++ .config-button:not(:first-child):not(:last-child) {+ border-radius: 0;+ }+.config-button:hover {background-color: var(--color-secondary);opacity: 1;+ z-index: 1;+ position: relative;}.config-button:active {opacity: 0.5;+ transform: scale(0.95);}- #settings,- #scheduler {- display: flex;- align-items: center;+ /* Dropdown specific positioning */+ .quick-actions-dropdown {+ position: absolute;+ top: 100%;+ left: 0;+ right: 0;+ margin-top: var(--spacing-xs);+ }++ /* Dropdown item icon sizing */+ .dropdown-item .material-symbols-outlined {+ font-size: 18px;}+ /* Light mode */.light-mode .config-button {background-color: var(--color-background);color: #333333;@@ -80,6 +194,10 @@.light-mode .config-button:active {background-color: #bdc0cb;}++ /* Transition helpers */+ .-translate-y-1 { transform: translateY(-0.25rem); }+ .translate-y-0 { transform: translateY(0); }</style>-</html>\ No newline at end of file+</html>diff --git a/webui/components/welcome/welcome-store.js b/webui/components/welcome/welcome-store.jsindex 1bdf56094..8a6bac485 100644--- a/webui/components/welcome/welcome-store.js+++ b/webui/components/welcome/welcome-store.js@@ -1,7 +1,7 @@import { createStore } from "/js/AlpineStore.js";import { getContext } from "/index.js";import { store as chatsStore } from "/components/sidebar/chats/chats-store.js";-import { store as memoryStore } from "/components/settings/memory/memory-dashboard-store.js";+import { store as memoryStore } from "/components/modals/memory/memory-dashboard-store.js";import { store as projectsStore } from "/components/projects/projects-store.js";const model = {diff --git a/webui/index.css b/webui/index.cssindex 5f281a7c5..ce110c96e 100644--- a/webui/index.css+++ b/webui/index.css@@ -1254,3 +1254,118 @@ nav ul li a img {box-sizing: border-box;flex-shrink: 0;}++/* ========================================+ Global Dropdown Component Styles+ ======================================== */++/* Dropdown container - position relative for absolute menu */+.dropdown {+ position: relative;+ display: inline-block;+}++/* Dropdown trigger button */+.dropdown-trigger {+ display: flex;+ align-items: center;+ justify-content: center;+ cursor: pointer;+ background: transparent;+ border: none;+ color: var(--color-text);+ padding: var(--spacing-xs);+ transition: all var(--transition-speed) ease;+}++.dropdown-trigger:hover {+ opacity: 1;+}++.dropdown-trigger:active {+ opacity: 0.5;+}++/* Dropdown menu */+.dropdown-menu {+ position: absolute;+ top: 100%;+ right: 0;+ min-width: 180px;+ max-height: 400px;+ overflow-y: auto;+ background-color: var(--color-panel);+ border: 1px solid var(--color-border);+ border-radius: 0.5rem;+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);+ z-index: 1010;+ padding: var(--spacing-xs) 0;+ margin-top: var(--spacing-xs);+}++.dropdown-menu.left {+ left: 0;+ right: auto;+}++/* Dropdown menu items */+.dropdown-item {+ display: flex;+ align-items: center;+ gap: var(--spacing-sm);+ width: 100%;+ padding: var(--spacing-sm) var(--spacing-md);+ background: transparent;+ border: none;+ color: var(--color-text);+ font-family: var(--font-family-main);+ font-size: var(--font-size-small);+ text-align: left;+ opacity: 0.8;+ cursor: pointer;+ transition: background-color 0.15s ease;+ white-space: nowrap;+}++.dropdown-item:hover {+ background-color: var(--color-background-hover);+ opacity: 1;+ transform: translateX(-2px);+}++.dropdown-item:active {+ opacity: 0.7;+}++.dropdown-item svg {+ width: 18px;+ height: 18px;+ flex-shrink: 0;+ opacity: 0.8;+}++/* Dropdown separator */+.dropdown-separator {+ height: 1px;+ background-color: var(--color-border);+ margin: var(--spacing-xs) 0;+}++/* Dropdown header/label */+.dropdown-header {+ padding: var(--spacing-xs) var(--spacing-md);+ font-size: 0.7rem;+ color: var(--color-primary);+ text-transform: uppercase;+ letter-spacing: 0.05em;+ opacity: 0.8;+}++/* Light mode adjustments */+.light-mode .dropdown-menu {+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);+}++.light-mode .dropdown-item:hover {+ background-color: var(--color-secondary);+}