Skip to content

Agent Zero AI framework

memory dashboard design

Alessandroa6ce9c440489
diff --git a/webui/components/settings/memory/memory-dashboard.html b/webui/components/settings/memory/memory-dashboard.html
index 5b857de80..d8df6b5ff 100644
--- a/webui/components/settings/memory/memory-dashboard.html
+++ b/webui/components/settings/memory/memory-dashboard.html
@@ -13,11 +13,12 @@
<div x-create="$store.memoryDashboardStore.onOpen()"
x-destroy="$store.memoryDashboardStore.cleanup()" class="memory-dashboard">
- <!-- Search and Filters -->
- <div class="filters-section">
- <div class="filter-row">
- <div class="filter-group">
- <label for="memory-subdir-select">Memory Directory:</label>
+ <!-- Unified Filter Section -->
+ <div class="memory-filters-header">
+ <div class="filter-container-unified">
+ <!-- All elements in single container for flexible layout -->
+ <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">
@@ -27,12 +28,10 @@
</option>
</template>
</select>
- <span x-show="$store.memoryDashboardStore.loadingSubdirs"
- class="loading-text">Loading...</span>
</div>
- <div class="filter-group">
- <label for="area-filter">Area:</label>
+ <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>
@@ -42,36 +41,31 @@
</select>
</div>
- <div class="filter-group">
- <label for="search-input">Search:</label>
- <input type="text" id="search-input" x-model="$store.memoryDashboardStore.searchQuery"
- placeholder="Search memory content..."
- @keyup.enter="$store.memoryDashboardStore.searchMemories()" />
- </div>
-
- <div class="filter-group">
+ <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" style="min-width: 100px;" />
+ min="10" max="1000" step="10" />
</div>
- <div class="filter-group">
- <label for="threshold-input">Threshold: <span x-text="$store.memoryDashboardStore.threshold.toFixed(2)"></span></label>
+ <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" style="min-width: 10em;" />
+ min="0" max="1" step="0.01" />
</div>
- <div class="filter-actions">
- <button class="btn primary slim" @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">Initializing
- Memory...</span>
- </button>
- <button class="btn slim" @click="$store.memoryDashboardStore.clearSearch()">
- Clear
- </button>
- </div>
+ <input type="text" id="search-input" x-model="$store.memoryDashboardStore.searchQuery"
+ placeholder="Search memory content..."
+ @keyup.enter="$store.memoryDashboardStore.searchMemories()" />
+
+ <button class="btn primary 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-clear" @click="$store.memoryDashboardStore.clearSearch()">
+ Clear
+ </button>
</div>
</div>
@@ -91,56 +85,49 @@
<div x-show="!$store.memoryDashboardStore.loading && !$store.memoryDashboardStore.error"
class="memory-table-container">
- <!-- Combined stats and pagination header -->
- <div class="stats-pagination-header" x-show="!$store.memoryDashboardStore.loading">
- <!-- Statistics -->
- <div class="memory-stats-compact">
- <div class="stat-item">
- <span class="stat-label">DB Total:</span>
- <span class="stat-value" x-text="$store.memoryDashboardStore.totalDbCount"></span>
- </div>
- <div class="stat-item">
- <span class="stat-label">Filtered:</span>
- <span class="stat-value" x-text="$store.memoryDashboardStore.totalCount"></span>
- </div>
- <div class="stat-item">
- <span class="stat-label">Knowledge:</span>
- <span class="stat-value" x-text="$store.memoryDashboardStore.knowledgeCount"></span>
- </div>
- <div class="stat-item">
- <span class="stat-label">Conversation:</span>
- <span class="stat-value" x-text="$store.memoryDashboardStore.conversationCount"></span>
- </div>
+ <!-- Compact Status Bar -->
+ <div class="memory-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 controls -->
- <div class="pagination-controls-compact" x-show="$store.memoryDashboardStore.totalPages > 1">
- <div class="pagination-info-inline">
- <span>Page <span x-text="$store.memoryDashboardStore.currentPage"></span>
- of <span x-text="$store.memoryDashboardStore.totalPages"></span>
- </span>
- </div>
-
- <div class="pagination-controls">
- <button class="btn slim" @click="$store.memoryDashboardStore.prevPage()"
- :disabled="$store.memoryDashboardStore.currentPage === 1">
- Previous
- </button>
-
- <select class="page-select" x-model.number="$store.memoryDashboardStore.currentPage"
- @change="$store.memoryDashboardStore.goToPage($store.memoryDashboardStore.currentPage)">
- <template
- x-for="page in Array.from({length: $store.memoryDashboardStore.totalPages}, (_, i) => i + 1)"
- :key="page">
- <option :value="page" x-text="'Page ' + page"></option>
- </template>
- </select>
-
- <button class="btn slim" @click="$store.memoryDashboardStore.nextPage()"
- :disabled="$store.memoryDashboardStore.currentPage === $store.memoryDashboardStore.totalPages">
- Next
- </button>
+ <!-- Compact Pagination -->
+ <div class="status-pagination" x-show="$store.memoryDashboardStore.totalPages > 1">
+ <button class="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" />
</div>
+ <button class="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>
@@ -153,46 +140,25 @@
<div class="mass-actions">
<button class="btn-mass copy" @click="$store.memoryDashboardStore.bulkCopyMemories()"
title="Copy Selected Content">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
- stroke-width="2">
- <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
- <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
- </svg>
+ <span class="material-symbols-outlined">content_copy</span>
Copy
</button>
<button class="btn-mass export" @click="$store.memoryDashboardStore.bulkExportMemories()"
title="Export Selected Memories">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
- stroke-width="2">
- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
- <polyline points="7,10 12,15 17,10"></polyline>
- <line x1="12" y1="15" x2="12" y2="3"></line>
- </svg>
+ <span class="material-symbols-outlined">download</span>
Export
</button>
<button class="btn-mass delete" @click="$store.memoryDashboardStore.bulkDeleteMemories()"
title="Delete Selected Memories">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
- stroke-width="2">
- <polyline points="3,6 5,6 21,6"></polyline>
- <path
- d="M19,6V20a2,2,0,0,1-2,2H7a2,2,0,0,1-2-2V6m3,0V4a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V6">
- </path>
- <line x1="10" y1="11" x2="10" y2="17"></line>
- <line x1="14" y1="11" x2="14" y2="17"></line>
- </svg>
+ <span class="material-symbols-outlined">delete</span>
Delete
</button>
<button class="btn-mass clear" @click="$store.memoryDashboardStore.clearSelection()"
title="Clear Selection">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
- stroke-width="2">
- <line x1="18" y1="6" x2="6" y2="18"></line>
- <line x1="6" y1="6" x2="18" y2="18"></line>
- </svg>
+ <span class="material-symbols-outlined">close</span>
Clear
</button>
</div>
@@ -264,27 +230,13 @@
<button class="btn-action copy"
@click="$store.memoryDashboardStore.copyToClipboard($store.memoryDashboardStore.formatMemoryForCopy(memory))"
title="Copy Memory">
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none"
- stroke="currentColor" stroke-width="2">
- <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>
- <path
- d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1">
- </path>
- </svg>
+ <span class="material-symbols-outlined">content_copy</span>
</button>
<button class="btn-action delete"
@click="$store.memoryDashboardStore.deleteMemory(memory)"
title="Delete Memory">
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none"
- stroke="currentColor" stroke-width="2">
- <polyline points="3,6 5,6 21,6"></polyline>
- <path
- d="M19,6V20a2,2,0,0,1-2,2H7a2,2,0,0,1-2-2V6M8,6V4a2,2,0,0,1,2-2h4a2,2,0,0,1,2,2V6">
- </path>
- <line x1="10" y1="11" x2="10" y2="17"></line>
- <line x1="14" y1="11" x2="14" y2="17"></line>
- </svg>
+ <span class="material-symbols-outlined">delete</span>
</button>
</div>
</td>
@@ -312,7 +264,7 @@
<!-- Export button -->
<div class="export-section">
- <button class="btn slim" @click="$store.memoryDashboardStore.exportMemories()">
+ <button class="btn primary" @click="$store.memoryDashboardStore.exportMemories()">
Export Memories (JSON)
</button>
</div>
@@ -331,137 +283,268 @@
.memory-dashboard {
padding: 1rem;
- max-width: 100%;
+ margin: 0 auto;
background: var(--color-background);
color: var(--color-text);
}
- .memory-dashboard h3 {
- color: var(--color-text);
- margin: 0;
- font-size: 1.5rem;
- font-weight: 600;
- }
-
-
-
- .stats-pagination-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
+ /* Compact Linear Filter Layout */
+ .memory-filters-header {
+ margin-bottom: 1rem;
padding: 1rem;
background: var(--color-panel);
border: 1px solid var(--color-border);
border-radius: 8px;
- border-bottom: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
}
- .memory-stats-compact {
- display: flex;
- gap: 1rem;
- flex-wrap: wrap;
+ /* Unified container using CSS Grid for desktop layout */
+ .filter-container-unified {
+ display: grid;
+ grid-template-columns: 35% 25% 10% auto;
+ grid-template-rows: auto auto;
+ gap: 0.75rem;
+ align-items: center;
}
- .pagination-controls-compact {
- display: flex;
- align-items: center;
- gap: 1rem;
+ /* 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; }
+ .btn-search { grid-column: 3; grid-row: 2; }
+ .btn-clear {
+ grid-column: 4;
+ grid-row: 1;
+ justify-self: end;
}
- .stat-item {
+ .filter-group-inline {
display: flex;
- flex-direction: column;
align-items: center;
- padding: 0.5rem;
- background: var(--color-panel);
+ gap: 0.5rem;
+ flex: 1;
+ }
+
+ .filter-group-inline label {
+ font-size: 0.85rem;
+ font-weight: 600;
+ color: var(--color-text);
+ opacity: 0.8;
+ white-space: nowrap;
+ }
+
+ .filter-group-inline select,
+ .filter-group-inline input {
+ padding: 0.4rem 0.6rem;
border: 1px solid var(--color-border);
- border-radius: 8px;
- min-width: 80px;
+ background: var(--color-input);
+ color: var(--color-text);
+ border-radius: 4px;
+ font-size: 0.9rem;
+ height: 36px;
+ flex: 0 auto;
+ min-width: 0;
}
- .stat-label {
- font-size: 0.8rem;
+ .filter-group-inline select:focus,
+ .filter-group-inline input:focus {
+ outline: none;
+ border-color: var(--color-primary);
+ background: var(--color-input-focus);
+ }
+
+ .filter-group-inline.filter-limit {
+ flex: 0 0 auto;
+ }
+
+ .filter-limit input {
+ flex: 0 0 200%;
+ }
+
+
+ #search-input {
+ flex: 1;
+ padding: 0.5rem 0.75rem;
+ border: 1px solid var(--color-border);
+ background: var(--color-input);
color: var(--color-text);
- opacity: 0.7;
- margin-bottom: 0.25rem;
+ border-radius: 4px;
+ font-size: 0.9rem;
+ height: 38px;
}
- .light-mode .stat-label {
+ #search-input:focus {
+ outline: none;
+ border-color: var(--color-primary);
+ background: var(--color-input-focus);
+ }
+
+ .filter-threshold {
+ display: flex;
+ align-items: center;
+ gap: 0.75rem;
+ padding: 0 0.5rem;
+ }
+
+ .filter-threshold label {
+ font-size: 0.85rem;
+ color: var(--color-text);
opacity: 0.8;
+ white-space: nowrap;
}
- .stat-value {
- font-size: 1.1rem;
- font-weight: bold;
+ .filter-threshold strong {
color: var(--color-primary);
+ font-weight: 600;
+ min-width: 3ch;
+ display: inline-block;
}
- .filters-section {
- margin-bottom: 1.5rem;
- padding: 1rem;
+ .filter-threshold input[type="range"] {
+ height: 4px;
+ -webkit-appearance: none;
+ appearance: none;
+ background: var(--color-border);
+ border-radius: 2px;
+ outline: none;
+ }
+
+ .filter-threshold input[type="range"]::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ appearance: none;
+ width: 16px;
+ height: 16px;
+ background: var(--color-primary);
+ border-radius: 50%;
+ cursor: pointer;
+ }
+
+ .filter-threshold input[type="range"]::-moz-range-thumb {
+ width: 16px;
+ height: 16px;
+ background: var(--color-primary);
+ border-radius: 50%;
+ cursor: pointer;
+ border: none;
+ }
+
+ /* Compact Status Bar */
+ .memory-status-bar {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0.75rem 1rem;
background: var(--color-panel);
border: 1px solid var(--color-border);
border-radius: 8px;
+ margin-bottom: 1rem;
+ font-size: 0.9rem;
}
- .filter-row {
+ .status-info {
display: flex;
- gap: 1rem;
- align-items: end;
+ align-items: center;
+ gap: 0.5rem;
flex-wrap: wrap;
}
- .filter-group {
+ .status-item {
display: flex;
- flex-direction: column;
+ align-items: center;
gap: 0.25rem;
+ color: var(--color-text);
+ opacity: 0.8;
}
- .filter-group label {
- font-size: 0.9rem;
- font-weight: 500;
- color: var(--color-text);
+ .status-item strong {
+ color: var(--color-primary);
+ font-weight: 600;
}
- .filter-group input,
- .filter-group select {
- padding: 0.5rem;
+ .status-item .material-symbols-outlined {
+ font-size: 18px;
+ opacity: 0.6;
+ }
+
+ .status-separator {
+ color: var(--color-border);
+ margin: 0 0.25rem;
+ }
+
+ .status-pagination {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ }
+
+ .btn-icon {
+ background: transparent;
border: 1px solid var(--color-border);
- background: var(--color-background);
+ border-radius: 4px;
+ padding: 0.25rem;
+ cursor: pointer;
color: var(--color-text);
- border-radius: 6px;
- font-size: 0.9rem;
- min-width: 200px;
- height: 40px;
- box-sizing: border-box;
+ display: flex;
+ align-items: center;
+ transition: all 0.2s;
}
- .filter-group input:focus,
- .filter-group select:focus {
- outline: none;
+ .btn-icon:hover:not(:disabled) {
+ background: var(--color-panel);
border-color: var(--color-primary);
- box-shadow: 0 0 0 2px rgba(115, 122, 129, 0.2);
- background: var(--color-input-focus);
}
- .light-mode .filter-group input:focus,
- .light-mode .filter-group select:focus {
- box-shadow: 0 0 0 2px rgba(56, 70, 83, 0.1);
+ .btn-icon:disabled {
+ opacity: 0.4;
+ cursor: not-allowed;
}
- .filter-actions {
- display: flex;
- gap: 0.5rem;
- align-items: stretch;
+ .btn-icon .material-symbols-outlined {
+ font-size: 20px;
}
- .filter-actions .btn {
- height: 40px;
+ .page-input-group {
display: flex;
align-items: center;
- justify-content: center;
+ gap: 0.5rem;
+ font-size: 0.85rem;
+ color: var(--color-text);
+ }
+
+ .page-input-group label {
+ opacity: 0.8;
+ }
+
+ .page-input {
+ width: 60px;
+ padding: 0.25rem 0.5rem;
+ text-align: center;
+ border: 1px solid var(--color-border);
+ background: var(--color-input);
+ color: var(--color-text);
+ border-radius: 4px;
+ font-size: 0.85rem;
+ height: 28px;
+ }
+
+ .page-input:focus {
+ outline: none;
+ border-color: var(--color-primary);
+ background: var(--color-input-focus);
+ }
+
+ /* Remove spinner arrows for cleaner look */
+ .page-input::-webkit-inner-spin-button,
+ .page-input::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+ margin: 0;
+ }
+
+ .page-input[type=number] {
+ -moz-appearance: textfield;
+ appearance: textfield;
}
.loading-text {
@@ -487,24 +570,14 @@
.init-message {
color: var(--color-primary);
- background: rgba(115, 122, 129, 0.2);
border-color: var(--color-primary);
}
- .light-mode .init-message {
- background: rgba(56, 70, 83, 0.1);
- }
-
.error-state {
color: var(--color-accent);
- background: rgba(207, 102, 121, 0.2);
border-color: var(--color-accent);
}
- .light-mode .error-state {
- background: rgba(176, 0, 32, 0.1);
- }
-
.loading-spinner {
width: 24px;
height: 24px;
@@ -625,9 +698,6 @@
border-left: 3px solid var(--color-primary);
}
- .light-mode .memory-row.selected {
- background: rgba(56, 70, 83, 0.1);
- }
/* Mass action toolbar */
.mass-action-toolbar {
@@ -642,9 +712,6 @@
animation: slideDown 0.3s ease;
}
- .light-mode .mass-action-toolbar {
- background: rgba(56, 70, 83, 0.1);
- }
.selection-info {
font-weight: 600;
@@ -659,18 +726,22 @@
.btn-mass {
display: flex;
align-items: center;
- gap: 0.5rem;
- padding: 0.5rem 1rem;
+ gap: 0.25rem;
+ padding: 0.4rem 0.8rem;
border: 1px solid var(--color-border);
background: var(--color-background);
color: var(--color-text);
- border-radius: 6px;
+ border-radius: 4px;
cursor: pointer;
- font-size: 0.9rem;
+ font-size: 0.85rem;
font-weight: 500;
transition: all 0.2s ease;
}
+ .btn-mass .material-symbols-outlined {
+ font-size: 18px;
+ }
+
.btn-mass:hover {
border-color: var(--color-primary);
background: var(--color-panel);
@@ -745,10 +816,6 @@
border: 1px solid rgba(255, 255, 255, 0.1);
}
- .light-mode .area-badge {
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
- border: 1px solid rgba(0, 0, 0, 0.1);
- }
.timestamp-cell {
font-size: 0.85rem;
@@ -784,10 +851,6 @@
border-color: var(--color-primary);
}
- .light-mode .source-type.knowledge {
- background: rgba(56, 70, 83, 0.1);
- color: var(--color-primary);
- }
.source-type.conversation {
background: rgba(101, 101, 101, 0.2);
@@ -796,11 +859,6 @@
border-color: var(--color-border);
}
- .light-mode .source-type.conversation {
- background: rgba(232, 234, 246, 0.5);
- color: var(--color-text);
- opacity: 0.9;
- }
.source-file {
font-size: 0.7rem;
@@ -875,18 +933,22 @@
.btn-action {
background: none;
border: 1px solid var(--color-border);
- padding: 0.3rem;
+ padding: 0.25rem;
margin: 0 0.1rem;
cursor: pointer;
- border-radius: 6px;
+ border-radius: 4px;
color: var(--color-text);
opacity: 0.7;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
- min-width: 32px;
- height: 32px;
+ min-width: 28px;
+ height: 28px;
+ }
+
+ .btn-action .material-symbols-outlined {
+ font-size: 18px;
}
.btn-action:hover {
@@ -947,9 +1009,6 @@
background: var(--color-input-focus);
}
- .light-mode .page-select:focus {
- box-shadow: 0 0 0 2px rgba(56, 70, 83, 0.1);
- }
@@ -963,23 +1022,6 @@
border-top: 1px solid var(--color-border);
}
- /* Enhanced Modal Styles */
- .modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.6);
- backdrop-filter: blur(4px);
- display: flex;
- align-items: flex-start;
- justify-content: center;
- z-index: 1000;
- overflow-y: auto;
- padding: 2rem 0;
- }
-
.modal-enter {
transition: all 0.3s ease;
}
@@ -1032,15 +1074,6 @@
}
}
- .modal-header-enhanced {
- background: var(--color-panel);
- padding: 1.5rem 2rem;
- border-bottom: 2px solid var(--color-border);
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- }
-
.header-left {
flex: 1;
}
@@ -1284,39 +1317,143 @@
/* Responsive design */
@media (max-width: 768px) {
- .modal-overlay {
- padding: 1rem 0;
- }
-
.memory-dashboard {
padding: 0.5rem;
}
- .stats-pagination-header {
+ .memory-filters-header {
+ padding: 0.75rem;
+ }
+
+ /* Transform grid to flex on mobile for reordering */
+ .filter-container-unified {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.75rem;
+ }
+
+ /* Reset grid positioning */
+ .filter-memory-dir,
+ .filter-area,
+ .filter-limit,
+ .filter-threshold,
+ #search-input,
+ .btn-search,
+ .btn-clear {
+ grid-column: auto;
+ grid-row: auto;
+ }
+
+ .filter-group-inline {
+ width: 100%;
+ flex-direction: row;
+ align-items: center;
+ gap: 0.5rem;
+ }
+
+ .filter-group-inline label {
+ font-size: 0.9rem;
+ margin-bottom: 0.25rem;
+ }
+
+ .filter-group-inline select,
+ .filter-group-inline input {
+ width: 100%;
+ max-width: 100%;
+ height: 42px;
+ font-size: 1rem;
+ }
+
+ .filter-group-inline.filter-limit {
+ flex: 33%;
+ }
+
+ .filter-limit input {
+ width: 100%;
+ flex: 1;
+ }
+
+ /* Mobile order and layout - force items to specific widths */
+ .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%;
+ }
+ .btn-clear {
+ order: 6;
+ flex: 40%;
+ min-width: 80px;
+ padding: 0;
+ height: 42px;
+ justify-content: center;
+ }
+ #search-input {
+ order: 5;
+ flex: auto;
+ width: 100%;
+ height: 42px;
+ font-size: 1rem;
+ }
+
+ /* Search button and threshold on same row */
+ .btn-search {
+ order: 7;
+ flex: 40%;
+ height: 42px;
+ padding: 0 1rem;
+ min-width: 80px;
+ }
+
+ .filter-threshold {
+ order: 4;
+ flex: 40%;
flex-direction: column;
- align-items: flex-start;
- gap: 1rem;
+ align-items: stretch;
+ gap: 0.5rem;
+ padding: 0;
}
- .memory-stats-compact {
+ .filter-threshold label {
+ font-size: 0.9rem;
width: 100%;
+ display: flex;
justify-content: space-between;
}
- .pagination-controls-compact {
- align-self: stretch;
- justify-content: center;
+ .filter-threshold input[type="range"] {
+ width: 100%;
}
- .filter-row {
+ .memory-status-bar {
flex-direction: column;
- align-items: stretch;
+ gap: 0.75rem;
+ padding: 0.75rem;
+ text-align: center;
}
- .filter-group input,
- .filter-group select {
- min-width: unset;
+ .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,
@@ -1592,22 +1729,6 @@
font-size: 0.9rem;
}
- /* Light mode adjustments for modal */
- .light-mode .modal-header-enhanced {
- background: linear-gradient(135deg, rgba(240, 240, 240, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
- }
-
- .light-mode .memory-content-display {
- background: rgba(248, 248, 248, 0.8);
- }
-
- .light-mode .metadata-sidebar {
- background: rgba(248, 248, 248, 0.8);
- }
-
- .light-mode .metadata-item {
- background: rgba(255, 255, 255, 0.9);
- }
/* Responsive design for modal */
@media (max-width: 768px) {
@@ -1644,4 +1765,5 @@
</div>
</body>
+</html>
</html>
\ No newline at end of file
diff --git a/webui/components/settings/memory/memory-detail-modal.html b/webui/components/settings/memory/memory-detail-modal.html
index 53da29fcd..fa705931e 100644
--- a/webui/components/settings/memory/memory-detail-modal.html
+++ b/webui/components/settings/memory/memory-detail-modal.html
@@ -5,61 +5,49 @@
</head>
<style>
- /* Memory Detail Modal Styles */
- .modal-header-enhanced {
+ /* Compact Modal Header */
+ .modal-header-compact {
display: flex;
justify-content: space-between;
- align-items: flex-start;
- padding: 1.5rem;
- border-bottom: 2px solid var(--color-border);
+ align-items: center;
+ padding: 1rem 1.5rem;
+ border-bottom: 1px solid var(--color-border);
background: var(--color-panel);
+ position: sticky;
+ top: 0;
+ z-index: 100;
}
- .memory-title {
+ .header-info {
display: flex;
align-items: center;
- gap: 1rem;
- margin-bottom: 0.5rem;
+ gap: 0.5rem;
+ font-size: 0.9rem;
}
- .area-badge-large {
+ .area-badge {
color: white;
- padding: 0.5rem 1rem;
- border-radius: 20px;
- font-size: 0.8rem;
- font-weight: bold;
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
- }
-
- .memory-meta-quick {
- display: flex;
- gap: 1rem;
- align-items: center;
- }
-
- .timestamp-badge, .source-badge {
- padding: 0.25rem 0.75rem;
- border-radius: 12px;
+ padding: 0.35rem 0.75rem;
+ border-radius: 16px;
font-size: 0.75rem;
- font-weight: 500;
- background: var(--color-panel);
- border: 1px solid var(--color-border);
- color: var(--color-text);
- opacity: 0.8;
+ font-weight: bold;
+ text-transform: uppercase;
}
- .source-badge.knowledge {
- background: rgba(115, 122, 129, 0.1);
- color: var(--color-primary);
- border-color: var(--color-primary);
- opacity: 1;
+ .header-separator {
+ color: var(--color-border);
+ opacity: 0.6;
}
- .source-badge.conversation {
- background: rgba(101, 101, 101, 0.1);
+ .timestamp-text,
+ .source-text {
color: var(--color-text);
opacity: 0.8;
- border-color: var(--color-border);
+ font-size: 0.75rem;
+ padding: 0.25rem 0.6rem;
+ background: var(--color-background);
+ border: 1px solid var(--color-border);
+ border-radius: 12px;
}
.header-actions {
@@ -68,13 +56,17 @@
}
.btn-action-header {
- background: var(--color-background);
+ background: transparent;
border: 1px solid var(--color-border);
color: var(--color-text);
- padding: 0.5rem;
- border-radius: 8px;
+ padding: 0.4rem 0.6rem;
+ border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
+ display: flex;
+ align-items: center;
+ gap: 0.25rem;
+ font-size: 0.85rem;
}
.btn-action-header:hover {
@@ -82,6 +74,15 @@
background: var(--color-panel);
}
+ .btn-action-header .material-symbols-outlined {
+ font-size: 18px;
+ }
+
+ .btn-action-header.delete:hover {
+ border-color: var(--color-accent);
+ color: var(--color-accent);
+ }
+
.modal-body-enhanced {
display: flex;
min-height: 60vh;
@@ -214,6 +215,11 @@
font-size: 0.9rem;
}
+ /* Wider modal for better readability */
+ .modal-inner.modal-wide {
+ max-width: 1200px;
+ }
+
/* Responsive design for modal */
@media (max-width: 768px) {
.modal-body-enhanced {
@@ -228,14 +234,14 @@
border-top: 1px solid var(--color-border);
}
- .modal-header-enhanced {
- padding: 1rem;
+ .modal-header-compact {
+ padding: 0.75rem 1rem;
+ flex-wrap: wrap;
+ gap: 0.75rem;
}
- .memory-title {
- flex-direction: column;
- align-items: flex-start;
- gap: 0.5rem;
+ .header-info {
+ flex-wrap: wrap;
}
.content-section-main,
@@ -249,20 +255,16 @@
<div x-data>
<template x-if="$store.memoryDashboardStore && $store.memoryDashboardStore.detailMemory">
<div>
- <!-- Modal Header with Memory Info -->
- <div class="modal-header-enhanced">
- <div class="header-left">
- <div class="memory-title">
- <span class="area-badge-large"
- :style="`background-color: ${$store.memoryDashboardStore.getAreaColor($store.memoryDashboardStore.detailMemory?.area)}`"
- x-text="$store.memoryDashboardStore.detailMemory?.area?.toUpperCase() || 'UNKNOWN'"></span>
- </div>
- <div class="memory-meta-quick">
- <span class="timestamp-badge" x-text="$store.memoryDashboardStore.formatTimestamp($store.memoryDashboardStore.detailMemory?.timestamp, true)"></span>
- <span class="source-badge"
- :class="$store.memoryDashboardStore.detailMemory?.knowledge_source ? 'knowledge' : 'conversation'"
- x-text="$store.memoryDashboardStore.detailMemory?.knowledge_source ? 'Knowledge' : 'Conversation'"></span>
- </div>
+ <!-- Compact Modal Header -->
+ <div class="modal-header-compact">
+ <div class="header-info">
+ <span class="area-badge"
+ :style="`background-color: ${$store.memoryDashboardStore.getAreaColor($store.memoryDashboardStore.detailMemory?.area)}`"
+ x-text="$store.memoryDashboardStore.detailMemory?.area?.toUpperCase() || 'UNKNOWN'"></span>
+ <span class="header-separator">•</span>
+ <span class="timestamp-text" x-text="$store.memoryDashboardStore.formatTimestamp($store.memoryDashboardStore.detailMemory?.timestamp, true)"></span>
+ <span class="header-separator">•</span>
+ <span class="source-text" x-text="$store.memoryDashboardStore.detailMemory?.knowledge_source ? 'Knowledge' : 'Conversation'"></span>
</div>
<div class="header-actions">
<!-- View Mode Buttons -->