* fix(library): prefer codec over container in codec column and get info
Jellyfin and Navidrome adapters populate song.codec with the actual
codec name (e.g. AAC, Vorbis) while song.container holds the file
container (e.g. m4a, ogg). The codec column and the Get Info modal
were both reading song.container directly, so m4a files showed "m4a"
instead of "AAC" and ogg files showed "ogg" instead of "Vorbis".
Change both display sites to song.codec ?? song.container so the
real codec is shown when available and the container is used as a
fallback when the server does not supply a separate codec field.
No unit test harness exists for these UI components.
* feat(library): add codec column to item table list
Add TableColumn.CODEC support to ItemTableList by creating a new
CodecColumn component that displays song.codec ?? song.container,
matching the existing codec column behavior in ItemDetailList.
The artist native link still encodes the name, then replaces every %20
with +. The album native link applies the same replacement to the artist
and the album name and joins the two parts with +.
Fixes#2264
Co-authored-by: Matt Van Horn <[email protected]>
Playlist album cards are built client-side from their songs, but
duration, play count and track count were hardcoded to null (so those
grid rows could never render) and last played was copied from a single
song. Sum duration/play count over the group's songs, use the group
size for the track count, and the most recent last-played date.
Fixesjeffvli/feishin#2481
Co-authored-by: janviernine <[email protected]>
* feat(player): add Up Next queue for Play next
Play next now adds songs to an Up Next section that sits directly after
the current song, in the order they were added. Songs leave Up Next when
they start playing, shuffle and replacing the queue keep it next, and
playing another song moves it after that song. The play queue labels the
section. A new "Up next queue" setting (on by default) restores the
previous Play next behavior when turned off.
Closes#1595
* fix(player): keep album group column working with queue sections
getRowItem returned undefined for every row when group headers were
present and no getItem accessor was used, which is the play queue's
setup, so the album group column — the one column that renders purely
from getRowItem — went blank as soon as the Up Next sections were
shown. Fall back to the expanded row model like the no-groups branch.
Also resolve the album group header's play index through the row id
instead of the display row index, which no longer matches the data
index when group header rows are interleaved.
* style(player): restyle queue section rows
Paint full-width surface bands on group header rows (including across pinned columns), style the section label/count row, and label the tail section Queue instead of the removed Next from queue string
* fix(player): correct auto-follow scroll with queue group rows
Map data index to row index accounting for inserted group header rows, so scrollToIndex no longer lands on a group header or the wrong row when Up Next sections are present. Defer the follow scroll a tick so it applies to the updated queue row model instead of the stale pre-change layout, which caused the viewport to jump down, back up, and down again on track change
* fix(player): keep queue drops above the up next block
Bottom-edge drops in the first Queue section pull items into Up
Next, or reflow them under the block after regroup. Items dropped
there stay pinned above the block; regroup and sync preserve the
gap. Boundary check shared by desktop and remote reorder paths.
---------
Co-authored-by: jeffvli <[email protected]>
The scroll-mode title could render blank (particularly for short
titles): overflow was measured once per title with no re-check after
webfonts settled, and a previous title's scroll position/animation
could persist into the next one. Remount the scroll track per title,
snap back to origin plus cancel animations when the title fits, and
re-check overflow once webfonts are ready. The scroll viewport now also
spans the full available width (centered when the title fits) so the
overflow measurement is well-defined in every alignment.
Fixesjeffvli/feishin#2485
Co-authored-by: janviernine <[email protected]>
* feat(player): support Jellyfin player position item property to resume playback
When an item is resumable, Jellyfin returns an `item.UserData.PlaybackPositionTicks` property.
Map this to a new `resumePositionMs` song property and seek to it when playback begins.
* feat(player): report playback position for Jellyfin resumable media
Jellyfin persists the resume position from progress and stop reports for
item types that are resumable (e.g. AudioBook). Progress is reported
every 10 seconds, and the stop scrobble is sent. The stop is sent before
the new track's start because Jellyfin clears the session's now-playing
item on any stop report.
* feat(library): extend Jellyfin library type support to allow audiobooks
* feat(ui): show playlist icons in collapsed sidebar
When the sidebar playlist list setting is on, the collapsed sidebar now
lists playlist images with a name tooltip, the same context menu and
drag/drop, and an accent ring on the currently playing playlist. A
header links to the playlists page, toggles the list, and creates a
playlist. The expanded sidebar gets a divider above its playlist
section.
Owned/shared list logic is shared in useSidebarPlaylistItems instead of
being duplicated per section.
* feat(ui): add hover play overlay to collapsed sidebar playlists
Hovering a collapsed sidebar playlist icon scales it up and shows a play
button styled like the table image column. The button follows the play
button behavior setting, has the shared play tooltip, and holding it
shuffles. The name tooltip opens without delay and icons request the
table image size.
* fix(ui): pad collapsed sidebar playlists header like nav items
Long translations of the header label overflowed the collapsed sidebar.
The album group size input bumped general.imageRes.table whenever
the entered size was >= the current table resolution, silently
rewriting a global setting that affects every table.
getFrame() returned 'macOS' while the renderer's Platform.MACOS is 'macos'.
On a fresh macOS profile the settings sync saw a difference five seconds
after launch and showed the restart-required toast; dismissing it
restarted the app, often in the middle of adding a server.
Prevent unmounting Favorite Songs when switching to an empty source
(e.g. switching between favorites and ratings with 0 tracks).
- Query favorites and ratings in parallel when capabilities allow
- Only unmount when neither source has tracks
- Display centered empty state string when active source has no tracks
- Hide "View all" header button when there are no songs
Prevent unmounting Top Songs when switching to personal with 0 plays,
which previously destroyed the toggle and locked the user out.
- Query community and personal top songs in parallel
- Only unmount when both sources return no tracks
- Display centered empty state string when active source has no tracks
- Hide "View all" header button when there are no songs