Skip to content

Agent Zero AI framework

disable save chat btn if no chat selected

3clyp504d2830be7147
diff --cc webui/components/chat/input/bottom-actions.html
index 250fedae7,5c603314e..a3c8fb324
--- a/webui/components/chat/input/bottom-actions.html
+++ b/webui/components/chat/input/bottom-actions.html
@@@ -25,20 -24,6 +25,20 @@@
<span x-text="$store.chatInput.paused ? 'Resume Agent' : 'Pause Agent'"></span>
</button>
+ <button class="text-button" @click="$store.chats.resetChat()">
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14">
+ <path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/>
+ </svg>
+ <p>Clear Chat</p>
+ </button>
+
- <button class="text-button" @click="$store.chats.saveChat()">
++ <button class="text-button" @click="$store.chats.saveChat()" :disabled="!$store.chats.selected">
+ <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14">
+ <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/>
+ </svg>
+ <p>Save Chat</p>
+ </button>
+
<button class="text-button" @click="$store.chatInput.loadKnowledge()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"></path>
diff --cc webui/components/modals/memory/memory-dashboard.html
index d58ece37a,000000000..c3f42ca21
mode 100644,000000..100644
--- a/webui/components/modals/memory/memory-dashboard.html
+++ b/webui/components/modals/memory/memory-dashboard.html
@@@ -1,698 -1,0 +1,726 @@@
+<html>
+
+<head>
+ <title>Memory Dashboard</title>
+ <script type="module">
+ import { store } from "/components/modals/memory/memory-dashboard-store.js";
+ </script>
+</head>
+
+<body>
+ <div x-data>
+ <template x-if="$store.memoryDashboardStore">
+ <div x-create="$store.memoryDashboardStore.onOpen()" x-destroy="$store.memoryDashboardStore.cleanup()"
+ class="memory-dashboard">
+
+ <!-- Search and Filters Section -->
+ <div class="filters-header memory-filters-header">
+ <div class="filter-group-inline filter-memory-dir">
+ <label for="memory-subdir-select">Memory Directory</label>
+ <select id="memory-subdir-select" x-model="$store.memoryDashboardStore.selectedMemorySubdir"
+ @change="$store.memoryDashboardStore.onMemorySubdirChange()"
+ :disabled="$store.memoryDashboardStore.loadingSubdirs">
+ <template x-for="subdir in $store.memoryDashboardStore.memorySubdirs" :key="subdir">
+ <option :value="subdir" x-text="subdir"
+ :selected="subdir === $store.memoryDashboardStore.selectedMemorySubdir">
+ </option>
+ </template>
+ </select>
+ </div>
+
+ <div class="filter-group-inline filter-area">
+ <label for="area-filter">Area</label>
+ <select id="area-filter" x-model="$store.memoryDashboardStore.areaFilter">
+ <option value="">All Areas</option>
+ <option value="main">Main</option>
+ <option value="fragments">Fragments</option>
+ <option value="solutions">Solutions</option>
+ <option value="instruments">Instruments</option>
+ </select>
+ </div>
+
+ <div class="filter-group-inline filter-limit">
+ <label for="limit-input">Limit:</label>
+ <input type="number" id="limit-input" x-model.number="$store.memoryDashboardStore.limit"
+ min="10" max="1000" step="10" />
+ </div>
+
+ <div class="filter-threshold">
+ <label for="threshold-input">Threshold: <strong
+ x-text="$store.memoryDashboardStore.threshold.toFixed(2)"></strong></label>
+ <input type="range" id="threshold-input" x-model.number="$store.memoryDashboardStore.threshold"
+ min="0" max="1" step="0.01" />
+ </div>
+
+ <input type="text" id="search-input" x-model="$store.memoryDashboardStore.searchQuery"
+ placeholder="Search memory content..."
+ @keyup.enter="$store.memoryDashboardStore.searchMemories()" />
+
+ <button class="btn btn-ok btn-search" @click="$store.memoryDashboardStore.searchMemories()"
+ :disabled="$store.memoryDashboardStore.loading || $store.memoryDashboardStore.loadingSubdirs">
+ <span x-show="!$store.memoryDashboardStore.initializingMemory">Search</span>
+ <span x-show="$store.memoryDashboardStore.initializingMemory">Init...</span>
+ </button>
+
+ <button class="btn btn-cancel btn-clear" @click="$store.memoryDashboardStore.clearSearch()">
+ Clear
+ </button>
+ </div>
+
+ <!-- Loading state -->
+ <div x-show="$store.memoryDashboardStore.loading" class="loading-state">
+ <div class="loading-spinner"></div>
+ <span x-show="!$store.memoryDashboardStore.initializingMemory">Searching memories...</span>
+ <span x-show="$store.memoryDashboardStore.initializingMemory">Initializing memory database...</span>
+ </div>
+
+ <!-- Error state -->
+ <div x-show="$store.memoryDashboardStore.error" class="error-state">
+ <span x-text="$store.memoryDashboardStore.error"></span>
+ </div>
+
+ <!-- Memory table -->
+ <div x-show="!$store.memoryDashboardStore.loading && !$store.memoryDashboardStore.error"
+ class="data-table-container data-table-container-standalone memory-table-container">
+
+ <!-- Status Bar -->
+ <div class="data-status-bar" x-show="!$store.memoryDashboardStore.loading">
+ <div class="status-info">
+ <span class="status-item">
+ <span class="material-symbols-outlined">database</span>
+ Total: <strong x-text="$store.memoryDashboardStore.totalDbCount"></strong>
+ </span>
+ <span class="status-separator">•</span>
+ <span class="status-item">
+ Filtered: <strong x-text="$store.memoryDashboardStore.totalCount"></strong>
+ </span>
+ <span class="status-separator">•</span>
+ <span class="status-item">
+ Knowledge: <strong x-text="$store.memoryDashboardStore.knowledgeCount"></strong>
+ </span>
+ <span class="status-separator">•</span>
+ <span class="status-item">
+ Conversation: <strong x-text="$store.memoryDashboardStore.conversationCount"></strong>
+ </span>
+ </div>
+
+ <!-- Pagination -->
+ <div class="status-pagination" x-show="$store.memoryDashboardStore.totalPages > 1">
+ <button class="btn btn-icon" @click="$store.memoryDashboardStore.prevPage()"
+ :disabled="$store.memoryDashboardStore.currentPage === 1" title="Previous Page">
+ <span class="material-symbols-outlined">chevron_left</span>
+ </button>
+ <div class="page-input-group">
+ <label>Page</label>
+ <input type="number" class="page-input"
+ x-model.number="$store.memoryDashboardStore.currentPage"
+ @change="$store.memoryDashboardStore.goToPage($store.memoryDashboardStore.currentPage)"
+ @keyup.enter="$store.memoryDashboardStore.goToPage($store.memoryDashboardStore.currentPage)"
+ :min="1" :max="$store.memoryDashboardStore.totalPages" />
+ <span class="page-total">of <strong
+ x-text="$store.memoryDashboardStore.totalPages"></strong></span>
+ </div>
+ <button class="btn btn-icon" @click="$store.memoryDashboardStore.nextPage()"
+ :disabled="$store.memoryDashboardStore.currentPage === $store.memoryDashboardStore.totalPages"
+ title="Next Page">
+ <span class="material-symbols-outlined">chevron_right</span>
+ </button>
+ </div>
+ </div>
+
+ <!-- Mass action toolbar -->
+ <div x-show="$store.memoryDashboardStore.selectedCount > 0" class="mass-action-toolbar">
+ <div class="selection-info">
+ <span x-text="$store.memoryDashboardStore.selectedCount"></span> memories selected
+ </div>
+
+ <div class="mass-actions">
+ <button class="btn btn-mass copy" @click="$store.memoryDashboardStore.bulkCopyMemories()"
+ title="Copy Selected Content">
+ <span class="material-symbols-outlined">content_copy</span>
+ Copy
+ </button>
+
+ <button class="btn btn-mass export"
+ @click="$store.memoryDashboardStore.bulkExportMemories()"
+ title="Export Selected Memories">
+ <span class="material-symbols-outlined">download</span>
+ Export
+ </button>
+
+ <button class="btn btn-mass delete"
+ @click="$store.memoryDashboardStore.bulkDeleteMemories()"
+ title="Delete Selected Memories">
+ <span class="material-symbols-outlined">delete</span>
+ Delete
+ </button>
+
+ <button class="btn btn-mass clear" @click="$store.memoryDashboardStore.clearSelection()"
+ title="Clear Selection">
+ <span class="material-symbols-outlined">close</span>
+ Clear
+ </button>
+ </div>
+ </div>
+
+ <div class="table-wrapper">
+ <table class="data-table memory-table">
+ <thead>
+ <tr>
+ <th class="col-select">
+ <input type="checkbox" :checked="$store.memoryDashboardStore.allSelected"
+ :indeterminate="$store.memoryDashboardStore.someSelected && !$store.memoryDashboardStore.allSelected"
+ @change="$store.memoryDashboardStore.toggleSelectAll()"
+ title="Select/Deselect All" />
+ </th>
+ <th class="col-metadata">Metadata</th>
+ <th class="col-preview">Preview</th>
+ <th class="col-actions"></th>
+ </tr>
+ </thead>
+ <tbody>
+ <template x-for="memory in $store.memoryDashboardStore.paginatedMemories"
+ :key="memory.id">
+ <tr class="memory-row" :class="{'selected': memory.selected}"
+ @click="$store.memoryDashboardStore.showMemoryDetails(memory)"
+ style="cursor: pointer;">
+ <!-- Selection checkbox -->
+ <td class="select-cell" @click.stop="memory.selected = !memory.selected">
+ <input type="checkbox" x-model="memory.selected" />
+ </td>
+
+ <!-- Metadata (merged Area, Timestamp, Source) -->
+ <td class="metadata-cell">
+ <div class="metadata-info">
+ <div class="metadata-row">
+ <span class="area-badge"
+ :style="`background-color: ${$store.memoryDashboardStore.getAreaColor(memory.area)}`"
+ x-text="(memory.area || 'UNKNOWN').toUpperCase()"></span>
+ </div>
+ <div class="metadata-row">
+ <template x-if="memory.knowledge_source">
+ <span class="source-type knowledge">Knowledge</span>
+ </template>
+ <template x-if="!memory.knowledge_source">
+ <span class="source-type conversation">Conversation</span>
+ </template>
+ </div>
+ <div class="metadata-row metadata-timestamp">
+ <span
+ x-text="$store.memoryDashboardStore.formatTimestamp(memory.timestamp, true)"
+ :title="$store.memoryDashboardStore.formatTimestamp(memory.timestamp, false)"></span>
+ </div>
+
+ </div>
+ </td>
+
+ <!-- Content preview -->
+ <td class="preview-cell">
+ <div class="content-preview"
+ x-text="memory.content_full.substring(0, 200) + (memory.content_full.length > 200 ? '...' : '')">
+ </div>
+ <div class="tags" x-show="memory.tags && memory.tags.length > 0">
+ <template x-for="tag in memory.tags" :key="tag">
+ <span class="tag" x-text="tag"></span>
+ </template>
+ </div>
+ </td>
+
+ <!-- Actions -->
+ <td class="actions-cell" @click.stop>
+ <div class="actions-wrapper">
+ <button class="btn btn-action copy"
+ @click="$store.memoryDashboardStore.copyToClipboard($store.memoryDashboardStore.formatMemoryForCopy(memory))"
+ title="Copy Memory">
+ <span class="material-symbols-outlined">content_copy</span>
+ </button>
+
+ <button class="btn btn-action delete"
+ @click="$store.memoryDashboardStore.deleteMemory(memory)"
+ title="Delete Memory">
+ <span class="material-symbols-outlined">delete</span>
+ </button>
+ </div>
+ </td>
+ </tr>
+ </template>
+ </tbody>
+ </table>
+
+
+
+ </div>
+
+ <!-- Mass action toolbar -->
+ <div x-show="$store.memoryDashboardStore.selectedCount > 0" class="mass-action-toolbar">
+ <div class="selection-info">
+ <span x-text="$store.memoryDashboardStore.selectedCount"></span> memories selected
+ </div>
+
+ <div class="mass-actions">
+ <button class="btn btn-mass copy" @click="$store.memoryDashboardStore.bulkCopyMemories()"
+ title="Copy Selected Content">
+ <span class="material-symbols-outlined">content_copy</span>
+ Copy
+ </button>
+
+ <button class="btn btn-mass export"
+ @click="$store.memoryDashboardStore.bulkExportMemories()"
+ title="Export Selected Memories">
+ <span class="material-symbols-outlined">download</span>
+ Export
+ </button>
+
+ <button class="btn btn-mass delete"
+ @click="$store.memoryDashboardStore.bulkDeleteMemories()"
+ title="Delete Selected Memories">
+ <span class="material-symbols-outlined">delete</span>
+ Delete
+ </button>
+
+ <button class="btn btn-mass clear" @click="$store.memoryDashboardStore.clearSelection()"
+ title="Clear Selection">
+ <span class="material-symbols-outlined">close</span>
+ Clear
+ </button>
+ </div>
+ </div>
+
+
+ <!-- Status Bar -->
+ <div class="data-status-bar data-status-bar-bottom" x-show="!$store.memoryDashboardStore.loading">
+ <div class="status-info">
+ <span class="status-item">
+ <span class="material-symbols-outlined">database</span>
+ Total: <strong x-text="$store.memoryDashboardStore.totalDbCount"></strong>
+ </span>
+ <span class="status-separator">•</span>
+ <span class="status-item">
+ Filtered: <strong x-text="$store.memoryDashboardStore.totalCount"></strong>
+ </span>
+ <span class="status-separator">•</span>
+ <span class="status-item">
+ Knowledge: <strong x-text="$store.memoryDashboardStore.knowledgeCount"></strong>
+ </span>
+ <span class="status-separator">•</span>
+ <span class="status-item">
+ Conversation: <strong x-text="$store.memoryDashboardStore.conversationCount"></strong>
+ </span>
+ </div>
+
+ <!-- Pagination -->
+ <div class="status-pagination" x-show="$store.memoryDashboardStore.totalPages > 1">
+ <button class="btn btn-icon" @click="$store.memoryDashboardStore.prevPage()"
+ :disabled="$store.memoryDashboardStore.currentPage === 1" title="Previous Page">
+ <span class="material-symbols-outlined">chevron_left</span>
+ </button>
+ <div class="page-input-group">
+ <label>Page</label>
+ <input type="number" class="page-input"
+ x-model.number="$store.memoryDashboardStore.currentPage"
+ @change="$store.memoryDashboardStore.goToPage($store.memoryDashboardStore.currentPage)"
+ @keyup.enter="$store.memoryDashboardStore.goToPage($store.memoryDashboardStore.currentPage)"
+ :min="1" :max="$store.memoryDashboardStore.totalPages" />
+ <span class="page-total">of <strong
+ x-text="$store.memoryDashboardStore.totalPages"></strong></span>
+ </div>
+ <button class="btn btn-icon" @click="$store.memoryDashboardStore.nextPage()"
+ :disabled="$store.memoryDashboardStore.currentPage === $store.memoryDashboardStore.totalPages"
+ title="Next Page">
+ <span class="material-symbols-outlined">chevron_right</span>
+ </button>
+ </div>
+ </div>
+
+
+ <!-- No memories message -->
+ <div x-show="$store.memoryDashboardStore.memories.length === 0 && !$store.memoryDashboardStore.message"
+ class="data-empty-state">
+ No memories found matching the current filters.
+ </div>
+
+ <!-- Initialization message -->
+ <div x-show="$store.memoryDashboardStore.message" class="init-message">
+ <span x-text="$store.memoryDashboardStore.message"></span>
+ </div>
+
+
+
+ </div>
+
+
+
+ </div>
+ </template>
+ </div>
+
+ <style>
+ /* Modal footer layout */
+ .modal-inner.modal-with-footer {
+ display: flex;
+ flex-direction: column;
+ }
+ .modal-inner.modal-with-footer .modal-scroll {
+ flex: 1;
+ min-height: 0;
+ }
+ .modal-inner.modal-with-footer .modal-footer {
+ flex-shrink: 0;
+ }
+
+ /* Memory-specific: Grid-based filter header layout */
+ .memory-filters-header {
+ display: grid;
+ grid-template-columns: 35% 25% 10% auto;
+ grid-template-rows: auto auto;
+ margin: 1rem 0;
+ }
+
+ /* Grid positioning for desktop - 2 rows */
+ .filter-memory-dir {
+ grid-column: 1;
+ grid-row: 1;
+ }
+ .filter-area {
+ grid-column: 2;
+ grid-row: 1;
+ }
+ .filter-limit {
+ grid-column: 3;
+ grid-row: 1;
+ }
+ .filter-threshold {
+ grid-column: 4;
+ grid-row: 2;
+ }
+ #search-input {
+ grid-column: 1 / 3;
+ grid-row: 2;
+ flex: 1;
+ border: 1px solid var(--color-border);
+ font-size: 0.9rem;
+ height: 38px;
+ }
+ #search-input:focus {
+ outline: none;
+ border-color: var(--color-primary);
+ background: var(--color-input-focus);
+ }
+ .btn-search {
+ grid-column: 3;
+ grid-row: 2;
+ justify-content: center;
+ }
+ .btn-clear {
+ grid-column: 4;
+ grid-row: 1;
+ justify-self: end;
+ }
+
+ /* Memory-specific filter overrides */
+ .memory-filters-header .filter-group-inline {
+ flex: 1;
+ }
+ .memory-filters-header .filter-group-inline select,
+ .memory-filters-header .filter-group-inline input {
+ flex: 0 auto;
+ }
+ .memory-filters-header .filter-group-inline.filter-limit {
+ flex: 0 0 auto;
+ }
+ .filter-limit input {
- flex: 0 0 150%;
++ flex: 0 0 150% !important;
+ }
+
+ /* Memory-specific: Table layout overrides */
+ .memory-table {
+ table-layout: fixed;
+ }
+ .memory-table th,
+ .memory-table td {
+ padding: 1rem 0.75rem;
+ vertical-align: top;
+ }
+ .memory-table th {
+ position: sticky;
+ top: 0;
+ z-index: 10;
+ border-bottom: 2px solid var(--color-border);
+ }
+ .memory-table tbody tr.memory-row > td {
+ height: 5em;
+ }
+
+ /* Memory-specific column widths */
+ .col-select {
+ width: 5%;
+ text-align: center;
+ padding: 0.65rem 0.5rem !important;
+ }
+ .col-metadata {
+ width: 10em;
+ }
+ .col-actions {
+ width: 4em;
+ }
+ .col-select input[type="checkbox"] {
+ cursor: pointer;
+ transform: scale(1.2);
+ }
+
+ /* Memory-specific: Metadata display */
+ .metadata-cell {
+ overflow: visible;
- white-space: normal;
++ text-wrap: wrap;
+ word-wrap: break-word;
+ }
+ .preview-cell {
+ overflow: visible;
- white-space: normal;
++ text-wrap: wrap;
+ word-wrap: break-word;
+ }
+ .metadata-info {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+ height: 5.5em;
+ overflow: hidden;
+ }
+ .metadata-row {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ }
+ .metadata-timestamp {
+ font-size: 0.85rem;
+ color: var(--color-text);
+ font-family: monospace;
+ }
+
+ /* Memory-specific: Area badge */
+ .area-badge {
+ color: white;
+ padding: 0.35rem 0.75rem;
+ border-radius: 16px;
+ font-size: 0.75rem;
+ font-weight: bold;
+ text-transform: uppercase;
+ }
+
+ /* Memory-specific: Source type badge */
+ .source-type {
+ padding: 0.25rem 0.5rem;
+ border-radius: var(--border-radius);
+ font-size: 0.75rem;
+ font-weight: 500;
+ text-align: center;
+ border: 1px solid;
+ white-space: nowrap;
+ flex-shrink: 0;
+ }
+
+ /* Memory-specific: Content preview */
+ .content-preview {
+ height: 5.5em;
+ overflow: hidden;
+ word-wrap: break-word;
+ overflow-wrap: break-word;
++ text-wrap: wrap;
+ }
+
+ /* Memory-specific: Tags */
+ .tags {
+ display: flex;
+ gap: 0.25rem;
+ margin-top: 0.5rem;
+ flex-wrap: wrap;
+ }
+ .tag {
+ background: var(--color-panel);
+ border: 1px solid var(--color-border);
+ padding: 0.2rem 0.4rem;
+ border-radius: 6px;
+ font-size: 0.7rem;
+ color: var(--color-text);
+ opacity: 0.8;
+ }
+
+ /* Memory-specific: Selection state */
+ .memory-row.selected {
+ background: var(--color-panel);
+ border-left: 3px solid var(--color-primary);
+ }
+ .select-cell {
+ text-align: center;
+ padding: 0.65rem 0.5rem !important;
+ }
+ .select-cell input[type="checkbox"] {
+ cursor: pointer;
+ transform: scale(1.2);
+ }
+
+ /* Memory-specific: Actions cell vertical layout */
+ .actions-cell {
+ padding: 0 !important;
+ position: relative;
+ }
+ .memory-table .actions-wrapper {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ flex-direction: column;
+ justify-content: center;
+ }
+
+ /* Responsive design - Memory-specific */
+ @media (max-width: 870px) {
+ .memory-dashboard {
+ padding: 0.5rem;
+ }
+
+ /* Switch to flex layout on mobile */
+ .memory-filters-header {
+ display: flex;
+ flex-wrap: wrap;
+ padding: 0.75rem;
+ }
+ .content-preview,
+ .metadata-info {
+ height: 6em;
+ }
+
+ /* Reset grid positioning */
+ .filter-memory-dir,
+ .filter-area,
+ .filter-limit,
+ .filter-threshold,
+ #search-input,
+ .btn-search,
+ .btn-clear {
+ grid-column: auto;
+ grid-row: auto;
+ }
+
+ /* Mobile order and layout */
+ .filter-memory-dir {
+ order: 1;
+ flex: 1 1 100%;
+ }
+ .filter-area {
+ order: 2;
+ flex: 1 1 100%;
+ }
+ .filter-limit {
+ order: 3;
+ flex: 1 1 100%;
+ }
+ .filter-threshold {
+ order: 4;
+ flex: 40%;
+ flex-direction: column;
+ align-items: stretch;
+ gap: 0.5rem;
+ padding: 0;
+ }
+ .filter-threshold label {
+ font-size: 0.9rem;
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ }
+ .filter-threshold input[type="range"] {
+ width: 100%;
+ }
+ #search-input {
+ order: 5;
+ flex: auto;
+ width: 100%;
+ min-height: 42px;
+ }
+ .btn-clear {
+ order: 6;
+ flex: 40%;
+ min-width: 80px;
+ padding: 0;
+ min-height: 42px;
+ justify-content: center;
+ }
+ .btn-search {
+ order: 7;
+ flex: 40%;
+ min-height: 42px;
+ padding: 0 1rem;
+ min-width: 80px;
+ }
+
+ .memory-filters-header .filter-group-inline {
+ width: 100%;
++ flex-direction: row;
++ align-items: center;
++ gap: 0.5rem;
++ }
++ .memory-filters-header .filter-group-inline label {
++ font-size: 0.9rem;
++ margin-bottom: 0.25rem;
+ }
+ .memory-filters-header .filter-group-inline select,
+ .memory-filters-header .filter-group-inline input {
- min-height: 42px;
++ height: 42px;
+ font-size: 1rem;
+ }
+ .memory-filters-header .filter-group-inline.filter-limit {
+ flex: 33%;
+ }
+ .filter-limit input {
+ flex: 1;
+ }
+
++ .data-status-bar {
++ flex-direction: column;
++ gap: 0.75rem;
++ }
++ .status-info {
++ width: 100%;
++ justify-content: center;
++ flex-wrap: wrap;
++ gap: 0.5rem 1rem;
++ }
++ .status-info .material-symbols-outlined {
++ font-size: 18px;
++ }
++ .status-pagination {
++ width: 100%;
++ justify-content: center;
++ padding-top: 0.5rem;
++ border-top: 1px solid var(--color-border);
++ }
++
+ .memory-table th,
+ .memory-table td {
+ padding: 0.5rem 0.25rem;
+ font-size: 0.85rem;
+ }
+ .actions-cell {
+ min-width: 60px;
+ width: 60px;
+ }
+ .col-select {
+ width: 8%;
+ }
+ .col-metadata {
+ width: 27%;
+ }
+ .col-preview {
+ width: 55%;
+ }
+ .col-actions {
+ width: 10%;
+ }
+ }
+ </style>
+ </template>
+ </div>
+</body>
+</html>
diff --cc webui/components/modals/memory/old/memory-dashboard-old.html
index 000000000,a24b208f7..a24b208f7
mode 000000,100644..100644
--- a/webui/components/modals/memory/old/memory-dashboard-old.html
+++ b/webui/components/modals/memory/old/memory-dashboard-old.html
diff --cc webui/components/sidebar/top-section/quick-actions.html
index e8c5e3216,3ecc0eeef..ea6e4b16f
--- a/webui/components/sidebar/top-section/quick-actions.html
+++ b/webui/components/sidebar/top-section/quick-actions.html
@@@ -8,160 -7,41 +8,160 @@@
</head>
<body>
- <div class="config-section" x-data>
- <button class="config-button" id="resetChat" @click="$confirmClick($event, () => $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="$confirmClick($event, () => $store.chats.restart())">Restart</button>
- <button class="config-button" id="settings" @click="settingsModalProxy.openModal()"><span class="material-symbols-outlined">settings</span>Settings</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">home</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">home</span>
+ <span>Dashboard</span>
+ </button>
+
+ <button class="dropdown-item" @click="$store.projects.openProjectsModal(); dropdownOpen = false">
+ <span class="material-symbols-outlined">snippet_folder</span>
+ <span>Projects</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">
++ <button class="dropdown-item" @click="$store.chats.saveChat(); dropdownOpen = false" :disabled="!$store.chats.selected">
+ <span class="material-symbols-outlined">save</span>
+ <span>Save Chat</span>
+ </button>
+
+ <button class="dropdown-item" @click="$store.chats.resetChat(); dropdownOpen = false">
+ <span class="material-symbols-outlined">delete_sweep</span>
+ <span>Clear 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>
+ /* Wrapper container for icon toolbar */
+ .wrapper {
+ position: relative;
+ border-radius: 0.6rem;
+ }
+
+ /* 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-background);
- border: 0.1rem solid var(--color-border);
- border-radius: var(--spacing-xs);
+ 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;
- .material-symbols-outlined {
- font-size: 18px;
- margin-right: 2px;
- }
+ }
+
+ .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 {