feat: instant mix, remote control and stable music library
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped

- Instant Mix button on albums, artists, the audio player and full-screen player
- Remote control dialog (cast icon in app bar/header/item/player): lists other
  sessions, play/pause/next/prev/seek/stop, and Play-on-device for an item
- Music library: repair persisted view types (CollectionFolder/undefined) and
  fall back to Songs when a music library has no album grouping
- Music jitter: remove full-screen backdrop-filters (audio bar and player page)
  and the body ResizeObserver in the virtualized grid
This commit is contained in:
1xDed committed 2026-11-27 13:18:09 +03:00
1 parent cc1391bb7d
commit a98663691d
18 files changed
+681 -22

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ import { DndProvider } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
import Backdrop from "@/components/backdrop";
import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice";
import RemoteControlDialog from "@/components/remoteControl";
import RouterLoading from "@/components/routerLoading";
import Search from "@/components/search";
import Updater from "@/components/updater";
@@ -56,6 +57,7 @@ export const Route = createRootRouteWithContext<ApiContext>()({
<Updater />
<Backdrop />
<Search />
<RemoteControlDialog />
<AppBar />
<AudioPlayer />
<Outlet />
+2
View File
@@ -6,6 +6,7 @@ import Typography from "@mui/material/Typography";
import { useQuery } from "@tanstack/react-query";
import React, { useLayoutEffect, useMemo } from "react";
import LikeButton from "@/components/buttons/likeButton";
import InstantMixButton from "@/components/buttons/instantMixButton";
import PlayButton from "@/components/buttons/playButton";
import { Card } from "@/components/card/card";
import CardScroller from "@/components/cardScroller/cardScroller";
@@ -186,6 +187,7 @@ function MusicAlbumTitlePage() {
itemType={item.data.Type ?? "Audio"}
userId={user?.Id}
/>
<InstantMixButton item={item.data} />
<LikeButton
itemId={item.data.Id}
isFavorite={item.data.UserData?.IsFavorite}
+2
View File
@@ -21,6 +21,7 @@ import React, {
} from "react";
import LikeButton from "@/components/buttons/likeButton";
import InstantMixButton from "@/components/buttons/instantMixButton";
import PlayButton from "@/components/buttons/playButton";
import { Card } from "@/components/card/card";
import ItemHeader from "@/components/itemHeader";
@@ -276,6 +277,7 @@ function ArtistTitlePage() {
</IconButton>
</span>
</Tooltip>
<InstantMixButton item={item.data} />
<LikeButton
itemName={item.data.Name}
itemId={item.data.Id}
+6 -4
View File
@@ -15,16 +15,18 @@
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6); // Dark overlay
backdrop-filter: blur(60px);
-webkit-backdrop-filter: blur(60px);
// No live backdrop-filter here: blurring a full-screen layer over a
// repainting page made the whole player shimmer.
background: rgba(0, 0, 0, 0.55);
}
&-image {
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1.1); // Prevent white edges from blur
// Blur the image itself instead of the layer behind the page.
filter: blur(70px) brightness(0.55) saturate(1.2);
transform: scale(1.2); // Hide blurred edges
}
}
+4
View File
@@ -13,6 +13,8 @@ import {
import { useQuery } from "@tanstack/react-query";
import { createFileRoute, Link, useNavigate } from "@tanstack/react-router";
import React, { useEffect, useMemo, useState } from "react";
import CastButton from "@/components/buttons/castButton";
import InstantMixButton from "@/components/buttons/instantMixButton";
import LikeButton from "@/components/buttons/likeButton";
import LyricsPanel, {
getLyricsQueryOptions,
@@ -204,6 +206,8 @@ function AudioPlayerRoute() {
</Typography>
{item && <TrackSubtitle item={item} />}
</div>
{item && <InstantMixButton item={item} />}
{item && <CastButton item={item} />}
<LikeButton
itemId={item?.Id ?? undefined}
itemName={item?.Name}