+
@@ -478,18 +479,18 @@ function autoSyncHistoryEntryHtml(entry, index = 0) {
Sync + wishlist
${_esc(summary)}
-
- ${autoSyncHistoryPreviewPill('Tracks', before.track_count, after.track_count, trackDelta)}
- ${autoSyncHistoryPreviewPill('Discovered', before.discovered_count, after.discovered_count, discoveredDelta)}
- ${autoSyncHistoryPreviewPill('Wishlisted', before.wishlisted_count, after.wishlisted_count, wishlistDelta)}
- ${autoSyncHistoryPreviewPill('Library', before.in_library_count, after.in_library_count, libraryDelta)}
-
${started ? `${_esc(started)} ` : ''}
${duration ? `${_esc(duration)} ` : ''}
${_esc(entry.trigger_source || 'pipeline')}
- Expand
+ View details
+
+
+ ${autoSyncHistoryPreviewPill('Tracks', before.track_count, after.track_count, trackDelta)}
+ ${autoSyncHistoryPreviewPill('Discovered', before.discovered_count, after.discovered_count, discoveredDelta)}
+ ${autoSyncHistoryPreviewPill('Wishlisted', before.wishlisted_count, after.wishlisted_count, wishlistDelta)}
+ ${autoSyncHistoryPreviewPill('Library', before.in_library_count, after.in_library_count, libraryDelta)}
@@ -521,6 +522,21 @@ function autoSyncNormalizeHistoryEntry(entry, index) {
};
}
+function bindAutoSyncHistoryCardInteractions(root = document) {
+ root.querySelectorAll('[data-history-toggle]').forEach(row => {
+ const entryId = row.dataset.historyToggle;
+ row.addEventListener('click', () => autoSyncToggleHistoryEntry(entryId));
+ row.addEventListener('keydown', event => autoSyncHistoryEntryKeydown(event, entryId));
+ });
+ root.querySelectorAll('[data-history-toggle-button]').forEach(button => {
+ const entryId = button.dataset.historyToggleButton;
+ button.addEventListener('click', event => {
+ event.stopPropagation();
+ autoSyncToggleHistoryEntry(entryId);
+ });
+ });
+}
+
function autoSyncParseHistoryObject(value) {
if (!value) return {};
if (typeof value === 'object') return value;
diff --git a/webui/static/style.css b/webui/static/style.css
index 9c85642a..570942fe 100644
--- a/webui/static/style.css
+++ b/webui/static/style.css
@@ -12080,9 +12080,8 @@ body.helper-mode-active #dashboard-activity-feed:hover {
.auto-sync-history-entry {
display: block;
- min-height: 84px;
border: 1px solid rgba(255, 255, 255, 0.07);
- border-radius: 10px;
+ border-radius: 12px;
background: rgba(22, 22, 22, 0.95);
overflow: hidden;
box-shadow: none;
@@ -12113,11 +12112,14 @@ body.helper-mode-active #dashboard-activity-feed:hover {
.auto-sync-history-row {
display: grid;
- grid-template-columns: auto minmax(0, 1fr) auto;
+ grid-template-columns: 16px minmax(280px, 1fr) minmax(160px, auto);
+ grid-template-areas:
+ "dot main meta"
+ ". preview meta";
align-items: center;
- gap: 12px;
- min-height: 96px;
- padding: 13px 14px;
+ gap: 10px 16px;
+ min-height: 118px;
+ padding: 18px 20px;
cursor: pointer;
}
@@ -12153,7 +12155,9 @@ body.helper-mode-active #dashboard-activity-feed:hover {
}
.auto-sync-history-main {
+ grid-area: main;
min-width: 0;
+ max-width: 760px;
}
.auto-sync-history-title-row {
@@ -12161,13 +12165,14 @@ body.helper-mode-active #dashboard-activity-feed:hover {
align-items: center;
gap: 8px;
min-width: 0;
+ margin-bottom: 8px;
}
.auto-sync-history-title-row strong {
min-width: 0;
color: rgba(255, 255, 255, 0.88);
- font-size: 13px;
- font-weight: 600;
+ font-size: 15px;
+ font-weight: 700;
line-height: 1.25;
overflow: hidden;
text-overflow: ellipsis;
@@ -12176,52 +12181,60 @@ body.helper-mode-active #dashboard-activity-feed:hover {
.auto-sync-history-main small {
display: block;
- margin-top: 3px;
+ margin-top: 8px;
color: rgba(255, 255, 255, 0.4);
- font-size: 11px;
- line-height: 1.3;
+ font-size: 12px;
+ line-height: 1.45;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
}
.auto-sync-history-preview {
+ grid-area: preview;
display: flex;
flex-wrap: wrap;
- gap: 6px;
- margin-top: 7px;
+ gap: 8px;
+ max-width: 760px;
}
.auto-sync-history-preview span {
- padding: 3px 7px;
+ padding: 6px 9px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.045);
- color: rgba(255, 255, 255, 0.42);
- font-size: 10px;
+ color: rgba(255, 255, 255, 0.52);
+ font-size: 11px;
font-weight: 700;
}
.auto-sync-history-meta {
+ grid-area: meta;
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
+ align-content: center;
+ align-items: center;
gap: 6px;
- max-width: 190px;
+ max-width: 240px;
}
.auto-sync-history-meta span,
-.auto-sync-history-result span {
+.auto-sync-history-result span,
+.auto-sync-history-meta button {
padding: 4px 7px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.055);
+ border: 0;
color: rgba(255, 255, 255, 0.48);
font-size: 10px;
font-weight: 700;
+ font-family: inherit;
}
.auto-sync-history-meta .auto-sync-history-expand-label {
border: 1px solid rgba(var(--accent-rgb), 0.18);
color: rgb(var(--accent-light-rgb));
+ cursor: pointer;
padding-right: 20px;
position: relative;
}
@@ -12248,9 +12261,13 @@ body.helper-mode-active #dashboard-activity-feed:hover {
border-color: rgba(var(--accent-rgb), 0.35);
}
+.auto-sync-history-entry .auto-sync-card-status-dot {
+ grid-area: dot;
+}
+
.auto-sync-history-detail {
display: none;
- padding: 16px;
+ padding: 18px 20px 20px 52px;
border-top: 1px solid rgba(255, 255, 255, 0.07);
}
@@ -12558,8 +12575,14 @@ body.helper-mode-active #dashboard-activity-feed:hover {
}
.auto-sync-history-row {
- grid-template-columns: 1fr;
+ grid-template-columns: 12px minmax(0, 1fr);
+ grid-template-areas:
+ "dot main"
+ ". preview"
+ ". meta";
align-items: flex-start;
+ min-height: 0;
+ padding: 16px;
}
.auto-sync-history-meta {
@@ -12567,6 +12590,10 @@ body.helper-mode-active #dashboard-activity-feed:hover {
max-width: none;
}
+ .auto-sync-history-detail {
+ padding: 16px;
+ }
+
.auto-sync-history-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}