fix(frontend): reposition search indicator into toolbar and fix album cover art lookup

Move search indicator from absolute-positioned overlay into sort toolbar
(or dedicated search-bar-row for artists/genres views). Shows indicator
on empty-state screens. Fix cover art not displaying for expanded album
tracks by checking expandedAlbumId before the albumName guard. Add
ScanWarning model bindings.
This commit is contained in:
2026-03-05 16:07:54 -05:00
parent 6977ba8bc1
commit a29137b2ba
8 changed files with 131 additions and 63 deletions
@@ -313,10 +313,12 @@ export class AlbumSelectionManager {
albumName: string,
expandedAlbumId: number | null,
): CoverArtUrls | null {
if (!albumName) return null;
// Prefer the expanded album (we know the track
// belongs to it) for an O(1) lookup.
// belongs to it) for an O(1) lookup. This must
// run before the albumName guard because
// GetAlbumTracks returns tracks without an Album
// field, so albumName may be empty even when the
// album ID is known.
if (expandedAlbumId !== null) {
const album = this.albumById.get(
expandedAlbumId,
@@ -333,6 +335,8 @@ export class AlbumSelectionManager {
}
}
if (!albumName) return null;
// Fallback: name-based search across all albums.
for (const album of this.albumById.values()) {
if (