feat: v1.30.0 — Discord RPC, offline bulk download, artist images, lazy loading, crossfade fix

- Discord Rich Presence (opt-in) — requested by @Bewenben (#49)
- Bulk offline download for playlists and artist discographies — requested by @Apollosport (#54)
- Offline Library filter tabs: All / Albums / Playlists / Discographies with artist grouping
- Artist images on Artists overview (opt-in, off by default) — reported by @Apollosport (#53)
- Image lazy loading via IntersectionObserver (300px margin) across all pages
- Fix: crossfade no longer triggers on manual track skip — reported by @netherguy4 (#35)
- Fix: playlist offline cache now stored as single entry (not per-album)
- Fix: image cache AbortController no longer blocks IDB writes
- Update toast: experimental auto-update hint + GH download link always visible (Win/Mac)
- Queue tech strip: genre removed
- Facebook theme: contrast, opaque badge/back button, queue tab labels
- "Save discography offline" label (was "Download discography")
- Fix: clearing empty playlists via updatePlaylist.view (Axios empty array workaround)
- starredOverrides propagated to AlbumDetail, Favorites, RandomMix

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-03 14:53:19 +02:00
parent 651b3cb050
commit c365140870
29 changed files with 1099 additions and 338 deletions
+121
View File
@@ -723,6 +723,63 @@
color: var(--color-error, #e05050);
}
/* Filter tabs */
.offline-filter-tabs {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.offline-filter-tab {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 20px;
border: 1px solid var(--border);
background: none;
color: var(--text-secondary);
font-size: 13px;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.offline-filter-tab:hover {
color: var(--text-primary);
border-color: var(--accent);
}
.offline-filter-tab.active {
background: var(--accent);
color: var(--ctp-base);
border-color: var(--accent);
font-weight: 600;
}
.offline-filter-tab-count {
font-size: 11px;
opacity: 0.75;
}
.offline-filter-tab.active .offline-filter-tab-count {
opacity: 0.85;
}
/* Artist discography groups */
.offline-artist-group {
display: flex;
flex-direction: column;
gap: 12px;
}
.offline-artist-group-heading {
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
padding-bottom: 6px;
border-bottom: 1px solid var(--border);
}
.album-detail {
display: flex;
flex-direction: column;
@@ -1496,6 +1553,70 @@
min-height: unset;
}
/* ── Random Mix — clickable artist name ── */
.rm-artist-btn {
background: none;
border: none;
padding: 0;
margin: 0;
font-size: 12px;
color: var(--text-secondary);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
text-align: left;
text-decoration: underline;
text-decoration-style: dotted;
text-decoration-color: transparent;
transition: color 0.15s, text-decoration-color 0.15s;
}
.rm-artist-btn:hover {
color: var(--accent);
text-decoration-color: var(--accent);
}
.rm-artist-btn.is-blocked {
color: var(--danger);
text-decoration-color: var(--danger);
cursor: default;
}
.rm-artist-btn.just-added {
color: var(--accent);
text-decoration-color: var(--accent);
}
/* ── Random Mix — genre pill chip ── */
.rm-genre-chip {
display: inline-block;
background: var(--bg-hover);
border: none;
border-radius: var(--radius-sm);
padding: 2px 8px;
font-size: 11px;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
transition: background 0.15s, color 0.15s;
}
.rm-genre-chip:hover {
background: color-mix(in srgb, var(--accent) 20%, transparent);
color: var(--accent);
}
.rm-genre-chip.is-blocked {
background: color-mix(in srgb, var(--danger) 15%, transparent);
color: var(--danger);
cursor: default;
}
.rm-genre-chip.just-added {
background: color-mix(in srgb, var(--accent) 20%, transparent);
color: var(--accent);
}
/* ─ Modal ─ */
.modal-overlay {
position: fixed;
+24
View File
@@ -293,6 +293,15 @@
.app-updater-actions {
padding-left: 19px;
margin-top: 2px;
display: flex;
flex-direction: column;
gap: 4px;
}
.app-updater-hint {
font-size: 10px;
color: var(--text-muted);
font-style: italic;
margin: 0 0 2px;
}
.app-updater-btn-primary {
display: inline-flex;
@@ -309,6 +318,21 @@
transition: opacity var(--transition-fast);
}
.app-updater-btn-primary:hover { opacity: 1; }
.app-updater-btn-secondary {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 11px;
font-weight: 400;
color: var(--text-secondary);
background: none;
border: none;
cursor: pointer;
padding: 0;
opacity: 0.75;
transition: opacity var(--transition-fast);
}
.app-updater-btn-secondary:hover { opacity: 1; color: var(--text-primary); }
.app-updater-progress-wrap {
display: flex;
align-items: center;
+35 -6
View File
@@ -8384,11 +8384,11 @@ input[type="range"]:hover::-webkit-slider-thumb {
--ctp-surface1: #D8DADF;
--ctp-surface2: #CED0D4;
--ctp-overlay0: #B0B3B8;
--ctp-overlay1: #65676B;
--ctp-overlay2: #4B4C4F;
--ctp-overlay1: #4B4C4F;
--ctp-overlay2: #3A3B3D;
--ctp-text: #050505;
--ctp-subtext1: #65676B;
--ctp-subtext0: #8A8D91;
--ctp-subtext1: #44464A;
--ctp-subtext0: #65676B;
--ctp-mauve: #1877F2;
--ctp-lavender: #2D88FF;
@@ -8418,8 +8418,8 @@ input[type="range"]:hover::-webkit-slider-thumb {
--volume-accent: #1877F2;
--text-primary: #050505;
--text-secondary: #65676B;
--text-muted: #606369;
--text-secondary: #44464A;
--text-muted: #65676B;
--border: #CED0D4;
--border-subtle: #E4E6EB;
@@ -8533,6 +8533,35 @@ input[type="range"]:hover::-webkit-slider-thumb {
border: 1px solid var(--border-subtle);
}
/* Album chip — opaque Facebook blue pill */
[data-theme='the-book'] .badge,
[data-theme='the-book'] .album-detail-badge {
background: #1877F2;
color: #ffffff;
}
/* Back button — opaque Facebook-style pill */
[data-theme='the-book'] .album-detail-back {
background: #E7F3FF;
color: #1877F2;
}
[data-theme='the-book'] .album-detail-back:hover {
background: #D8EAFD;
color: #0d6ae0;
}
/* Queue/Lyrics tab bar — white text on blue sidebar */
[data-theme='the-book'] .queue-tab-btn {
color: rgba(255, 255, 255, 0.65);
}
[data-theme='the-book'] .queue-tab-btn:hover {
color: #ffffff;
background: rgba(255, 255, 255, 0.1);
}
[data-theme='the-book'] .queue-tab-btn.active {
color: #ffffff;
}
/* ── ReadIt (Social Media) ──────────────────────────────────── */
[data-theme='readit'] {
color-scheme: dark;