The app reported favorite artists as ids it computed with a looser
normalization than the catalog, so some never matched. getStarred now
sends artist names and the server maps them with its own rule; unstar
matches favorites by name as well.
Phones find Mornye on a computer over mDNS (bonsoir, _mornye._tcp),
pair with its 6-digit PIN and keep a live session with the chosen
desktop.
- Pinned HTTPS: first contact records the presented certificate and
checks it against info and the mDNS fingerprint; later requests and
the WebSocket accept only that SHA-256.
- Pairing posts the PIN proof, maps bad_proof, pairing_closed and 429
to clear errors, saves a Subsonic API-key network connection, adds it
to Library and scans it. Re-pairing replaces the key in place.
- LinkClientSession: Bearer JSON get/post with timeouts and
LinkException mapping, WebSocket hello/welcome, backoff from 1 s
doubling to 30 s, pause in the background, reconnect when discovery
sees the desktop again, address updates when it moves.
- LinkClientController publishes the active session through
linkActiveClientProvider and rescans on catalog.changed.
- Settings entry "Mornye on your computer" on Android and iOS with
nearby and paired computers, PIN and manual address dialogs, forget,
and local network permission, Wi-Fi and certificate warnings.
- iOS NSBonjourServices and the Android multicast permission.
registerLinkSyncHandlers answers the collections and history endpoints
and the Subsonic playlist, star, getStarred and scrobble ops on the
desktop, and announces changes through linkCollectionsChangedHookProvider.
linkSyncRunnerProvider keeps the phone in sync on connect, on
collections.changed and after local edits, with per-server cursors.
Collections schema v3 adds link_sync_state and link_sync_changes with
SQLite triggers on every collection table, so Dart, native publication
and restore writes are all recorded, one coalesced row per key with
tombstones. Existing rows are seeded on upgrade. Native jobs keep
reading and staging v2 copies of the collection tables.
Listening statistics v2 adds per-author running totals with a stable
(origin, day, track key) id. Stores page changes by cursor and apply
peer changes by last writer wins without echoing them as local.
Mornye Link lets the phone app use the desktop app over the local
network. This adds the mornye-link crate with the types its server and
Subsonic layers share, and the Dart protocol models, desktop request
router and phone client interface the feature units build on.
An invalidated keystore made reading or deleting the retired secret
throw and block settings from loading. The cleanup now logs the error
and continues without touching the other stored credentials.
Library shuffle pages through the queue Library query, so it plays
downloads as well as enabled scanned sources. It starts on a random
song with shuffle on and keeps the Library order underneath, so
turning shuffle off returns to it. The unused getAll query is gone.
When a shuffled queue wraps under repeat all, the next pass opens with
a random queued song other than the one that just finished and plays
in a new order, instead of looping the same order. AutoMix into the
wrap prepares that opener and starts the reshuffled pass.
The Library toolbar's connected button group moves to a shared
ToolButtonGroup, and Material search results use it for Sort and the
list or grid tool. Mornye keeps its text Sort and icon buttons.
A playlist link now replaces the Library page at once, before the tab
switches, so the Library root no longer flashes for a frame and the
page does not slide in.
Home, Library, Repo and Settings now take the Playlists rows' fill,
hover and ink ripple. On collapse the expanded row narrows with the
rail and fades while the compact indicator fades in around a fixed
icon, instead of morphing one pill that flattened into a line.
Desktop and short landscape windows shortened the page header, so the
large title ran into the back button. Pages with a back button keep the
full 120dp header; tab roots keep the shorter one.
Wide windows now open with the rail expanded. A menu button on top and
the sidebar shortcut toggle it, and the choice is kept across launches.
Collapsed, the rail shows icons alone, named by tooltips. Expanded, its
pills span the rail, and a Playlists section (All Playlists and the
user's playlists) fills the space under the destinations. Library
returns to the Library root while a playlist is open.
The Material phone player moves shuffle and repeat out of the transport
into a connected two-segment group in the footer, between the lyrics
toggle and the output button. The selected segment fills its own shape
with primaryContainer, and the pressed one widens. Without them the
transport spans the timeline. The title, artist and lyrics now start at
the leading edge, as in Mornye; a duet's second voice keeps the end.
Selected mode buttons take the content colour of their fill, so the icon
stays legible on light neutral cover schemes.
Playlist membership no longer removes tracks from library pages while their counts still include them. Keep the cached page content independent of playlist membership.
Verified with 43 library tests covering both styles, mobile and desktop layouts, list and grid views, and switching from Mornye to Material. Related to #726.
The phone Now Playing menu gains Hide volume and Show volume in both
styles, saved as the playerShowVolume setting. Mornye drops the slider in
portrait and landscape and moves the transport into its place; Material
keeps the gap above the footer. Desktop keeps its volume controls.
Extensions that require the new deferredPreview runtime feature return
mornye-preview:<extension>/<track> links instead of a sample URL. The
preview player resolves such a link through the extension's
resolvePreview function when the preview starts, so a search no longer
waits for one sample lookup per track.
Wide screens now open search results as the phone rows, as before the
cover layout landed. A list or grid button after Sort, like the Library's
view button, switches to the cover grids and shelves, and the choice is
kept in settings (searchViewMode). Phones never show the button.
Once the results are 840dp wide on a tablet or desktop window, the
album, artist and playlist filters show an adaptive grid of covers, and
the All view lists the first five songs, then one shelf per kind with
Show all switching to that filter. Songs use the desktop song table on
desktop and keep their rows elsewhere. Loading skeletons follow the
same geometry. Phones and narrow windows keep their rows unchanged.
Search songs move to TrackListTable on wide desktop windows. The table
can now show a dense preview button beside the title and save a row's
cover on a long press of its artwork, as the phone search rows do.
Eight one-line re-export files remained from an earlier move into controllers, models and providers. Every import now points at the real file, so the shims are deleted.
Forty-two call sites spelled out Navigator.push with a MaterialPageRoute
around a builder; one helper next to pushViaPreferredNavigator keeps the
same route type and builder closure with fewer lines.
The back handler read the insets through MediaQuery.viewInsetsOf on the
shell context, so the first back press at a tab root made keyboard frames
rebuild the shell again. It now shares the scroll observer's lookup.
The shell read the view insets in build, so each keyboard animation frame
rebuilt the tab navigators and the bottom bar and re-ran the service setup
in didChangeDependencies, including a method-channel call. The insets are
now read by the bottom bar and the scroll observer, and the setup reruns
only when the localizations or the locale change.
The downloaded and local album pages hand-built the same bar. A new
albumDelete flag keeps their full-width desktop delete and the downloaded
album delete labels, so the bars render as before.
The downloaded album, local album and library folder pages now hand the
mixin's title notifier to their header, so crossing the collapse threshold
no longer rebuilds the whole page mid-scroll. No importer of the screens
re-export of the mixin remains, so it is removed.
The heading's text style came from the page theme after the move to
showAppConfirmDialog; a Builder resolves it from the dialog again, as the
old dialog did.
Every clear row repeated the same subtitle, trailing button and confirm
wiring, and four rows repeated the size label. One row builder and one
size label replace them; the two confirm dialogs share the shared helper
and the overview drops its unused path fields.
The remaining settings pages and the concert set list build their header
and group pairs with settingsSectionSlivers and their yes/no dialogs with
showAppConfirmDialog. The about page also drops the unused translator
language field.
The library and lyrics pages now build their single-choice sheets with
showAppChoiceSheet and their confirm dialogs with showAppConfirmDialog, so
the private _AutoScanOption row and the write-only provider id go away.
The Mornye full player shades itself from the cover's source colour, which
it only started resolving inside its opening slide. Starting the same job
when the mini player shows a track lets the player open on its final colour.