Commit Graph
2785 Commits
Author SHA1 Message Date
zarzet 334db07283 fix(player): give the phone navigation bar the cover scheme
The Material mini player took the playing cover's scheme while the
navigation bar under it kept the app's, so the bottom chrome changed
color halfway down. The bar, its indicator and the shared backdrop now
take the same artwork scheme as the mini player, and return to the app
scheme when nothing with readable artwork is playing. Only this scope
listens to the track, so a cover change does not rebuild the shell.
2026-10-23 23:14:38 +07:00
zarzet e3b8e28072 refactor(player): make the metadata title always ellipsize
All three PlayerMetadataTitle callers passed TextOverflow.ellipsis, so the
parameter goes and the widget uses it directly.
2026-10-23 23:08:48 +07:00
zarzet e624e062a7 refactor: drop parameters every caller leaves at the default
_stopConnectivityMonitoring always cleared the Wi-Fi pause, LibraryDatabase.getAll
was never paged and MethodChannelBackend never received other event channels.
2026-10-23 23:08:48 +07:00
zarzet 3ab9956a75 chore(screens): drop write-only private widget data fields
_RewindMessage.background and _FilterContentData.historyItems were stored
but never read.
2026-10-23 23:08:48 +07:00
zarzet 5d8c22a452 chore(services): drop write-only result and config fields
Duplicate entries, donation config, spectrogram, audio route, cover save,
share and redownload results carried fields that nothing reads; the
duplicate query no longer selects the unused album name.
2026-10-23 23:08:48 +07:00
zarzet a6db7fe878 chore(services): remove unused service members and write-only fields
UpdateInfo.publishedAt/isPrerelease, UpdateChecker.currentVersion,
BackupBundle.isEmpty, LocalLibraryItem.matchKey and two unused desktop
debug setters are never read.
2026-10-23 23:08:48 +07:00
zarzet 671b712485 chore(providers): remove unused provider members
MusicPlayerController.play/pause/stop, PreviewPlayerState.progress, the
manual extension cleanup, setUseExtensionProviders and the repo store's
unused category list, clearError and write-only fields have no caller.
2026-10-23 23:08:48 +07:00
zarzet 02232c76ac chore: remove unused widget and utility members
AppIconButton.outlined, LogBuffer.export, TtlCache.remove/clear and the
translationThreshold constant have no caller in lib or tests.
2026-10-23 23:08:48 +07:00
zarzet 156b976977 refactor(settings): build the plain-page glass group from MornyeGlassPanel
MornyeGlassPanel now forwards samplesBackdrop, so the group no longer needs
its own Consumer around MornyeGlass.
2026-10-23 23:00:46 +07:00
zarzet 3c11d9936f refactor(convert): share the batch convert choice section
The six option sections repeated the same card, label and chip wrap,
differing only in values, labels and the selection update.
2026-10-23 23:00:46 +07:00
zarzet 24c8b76215 refactor(search): loop the collection result sections
The artist, album and playlist sections and their missing-source guards
differed only in data, so one loop and one guard helper replace the copies.
2026-10-23 23:00:46 +07:00
zarzet 2f6e19eb57 perf(mornye): skip the backdrop pass for the extension overview glass
The overview card scrolls over the plain page background, where sampling
the backdrop only filters a flat color.
2026-10-23 23:00:46 +07:00
zarzet c22df6c5f5 refactor(extensions): share the feature row and priority link widgets
The hook and quality rows differed only in icons, extra lines and pill
colors, and the three priority links only in their kind.
2026-10-23 23:00:46 +07:00
zarzet 0be275a3b1 chore: remove unread extension manifest model fields
The health check, hook, setting and track matching fields were parsed from
backend JSON but never read, and quality options only need a settings count.
2026-10-23 23:00:46 +07:00
zarzet 7a92132798 perf(mornye): fade full-bleed artwork without a shader mask
The ShaderMask rendered the artwork offscreen on every raster frame, at video
rate for motion artwork. Painting the animated background gradient over the
artwork with the inverse fade as alpha composites the same pixels within
8-bit rounding; only the tilted gradient of the lyrics transition still
uses a small layer.
2026-10-23 22:55:15 +07:00
zarzet c7503d9f0f perf(mornye): skip the backdrop read on plain-page glass
The Library search fields, the Install extension panel and the band count and
theme mode pickers sit on a flat page or an opaque group card, so filtering
that backdrop costs a read for an identical result. They now keep the tint and
rim like the Home and Settings fields.
2026-10-23 22:52:33 +07:00
zarzet a29a5179c4 refactor(mornye): drop the MornyeGlass default constructor
Its last app callers went with the dead library chip row; the remaining test
callers use MornyeGlass.navigation, whose defaults match.
2026-10-23 22:52:33 +07:00
zarzet 4707feeaa3 refactor(library): share the collection selection bar toggle
Album, playlist and artist pages each rebuilt the same select all toggle
around SelectionBottomBar; SelectionModeMixin.buildSelectionBar now does it
once. The Library selection bar's mobile delete reuses
DestructiveSelectionButton with its own label.
2026-10-23 22:49:09 +07:00
zarzet cdb250c4ed refactor(library): share the album and playlist header action row
Album and playlist headers each spelled out the same love, download and add
to playlist buttons for desktop, Mornye and Material. CollectionHeaderActions
builds them once; the per-page icons, tonal download and callbacks are
parameters.
2026-10-23 22:49:09 +07:00
zarzet 04277f40bd perf(pages): rebuild only the toolbar title when it flips
The collapsing title flip used setState, rebuilding the whole album,
playlist, artist or track metadata page mid-scroll. The mixin now keeps the
flag in a ValueNotifier that these headers listen to; screens that still read
the bool keep the page rebuild.
2026-10-23 22:49:09 +07:00
zarzet 4c80fe39df style(settings): keep the song.link regions as a const list
The packed split string saved only formatter-forced data lines and broke
the const, one-literal-per-code style used elsewhere. showAppConfirmDialog
also asserts that message and content are not both passed.
2026-10-23 22:45:10 +07:00
zarzet 101740d87b refactor(settings): move download, metadata and files pages to shared helpers
The pages now use settingsSectionSlivers, showAppChoiceSheet and
showAppConfirmDialog, the settings page and the download picker share one
quality label function, and the picker's service chip builds its icon once.
The song.link region codes are one split string instead of 183 lines.
2026-10-23 22:45:10 +07:00
zarzet 34442580bf perf(mornye): stop glass settings groups sampling the flat page
Glass settings groups scroll over the opaque page color, so their
backdrop blur filtered a uniform color every frame. They now keep the
glass tint without a backdrop pass, as the Home and Settings fields do.
2026-10-23 22:45:10 +07:00
zarzet 77ea16dc23 refactor(settings): share confirm dialog, choice sheet and section helpers
Two-button confirmations, single-choice settings sheets and header plus
group slivers were hand-written at every call site. showAppConfirmDialog,
showAppChoiceSheet and settingsSectionSlivers build the same trees, and
SettingsGroup's four inset wrappers become one.
2026-10-23 22:45:10 +07:00
zarzet 19d25eae57 chore(download): remove test-only DownloadQueueNotifier.updateProgress
Production progress flows through the native progress poller, so only tests
called it; the clearAll test now uses updateItemStatus for late progress.
2026-10-23 22:44:37 +07:00
zarzet 5700c9a87c refactor(download): pass AppSettings to the output folder builders
Every caller expanded the same settings fields into named arguments, so the
builders now read them from AppSettings; requeue resets, SAF publish result
parsing and the MIME switch are shared or shortened too. The settings matrix
test pins identical folder output.
2026-10-23 22:44:37 +07:00
zarzet a41e5d9b16 test(download): pin relative output folders for a settings matrix
Records every folder the builder produces across organization, structure,
flag and playlist combinations before the builders change shape.
2026-10-23 22:44:37 +07:00
zarzet 987040e556 chore(ffmpeg): remove unused FFmpegProbe.isLosslessAudioCodec
Its only caller was the removed FFmpegService facade; callers use the
audio_format_utils function directly.
2026-10-23 22:44:37 +07:00
zarzet a397cf0d74 refactor(ffmpeg): call the FFmpeg modules directly
FFmpegService only forwarded each call to FFmpegProbe, FFmpegMetadata,
FFmpegConversion, FFmpegDecryption or FFmpegReplayGain with identical
defaults, so callers now use those modules and the test-only markers move
to the owning statics.
2026-10-23 22:44:37 +07:00
zarzet 759d7ca488 docs(library): fold the collections JSON export comment
The comment left from the removed map export ran into the JSON export
description; merge them into one paragraph.
2026-10-23 22:43:23 +07:00
zarzet 8a6b774d9f chore(lyrics): move the active lyric reference into its test
Playback queries LyricTimelineIndex; the linear activeLyricIndices only served
as a test oracle. Scenario tests now exercise the production index directly.
2026-10-23 22:43:23 +07:00
zarzet d407d8b374 chore(library): remove the test-only collections map export
Backups embed the worker JSON fragment from exportLibraryCollectionsJson, so
the map export mode and its benchmark only served tests.
2026-10-23 22:43:23 +07:00
zarzet 17b210749f chore(backup): remove test-only legacy envelope helpers
New backups are written as archives; buildEnvelope and encode were only test
fixtures. The legacy restore test now spells out the old JSON envelope.
2026-10-23 22:43:23 +07:00
zarzet f19c3375a3 chore(motion): remove the test-only withMotionArtworkProxy wrapper
The artwork store starts and closes the proxy itself; the test now checks
that close releases the injected client and loopback server directly.
2026-10-23 22:43:23 +07:00
zarzet b696d38e75 chore(library): remove test-only single-item collection mutators
Production removes wishlist, loved, playlist and playlist-track entries through
the batch paths. Device benchmarks now use the production one-item calls as
their per-track baseline.
2026-10-23 22:43:23 +07:00
zarzet b882b01f32 chore(history): remove the unused streaming history restore
Backup restore goes through restoreFromBackupOperation with the native or
upsertBatch codec, so the streamed replaceAll path was only reached by tests.
The iOS restore test now drives the production operation with a seeded fake.
2026-10-23 22:43:22 +07:00
zarzet 86231be479 chore(library): remove unused collection JSON factories
Collections live in SQLite and backup restore feeds the raw maps to the
database, so nothing parses the old JSON shape; the picker summary dates
were also never read.
2026-10-23 22:43:22 +07:00
zarzet 9319d92198 chore(library): remove unused loadPlaylistTracks
Production reads playlist tracks through loadPlaylistTracksSnapshot and the
test fake keeps its own row helper, so the visibleForTesting wrapper had no caller.
2026-10-23 22:43:22 +07:00
zarzet 9917a76f08 test(mornye): find lyric blur snapshots by render object type
Looks the snapshot render object up by its class instead of a widget type
name string, and narrows the LyricBlur doc to the changes that actually drop
the cached image.
2026-10-23 22:43:00 +07:00
zarzet 4815c26bc8 perf(mornye): draw settled lyric blurs from a cached image
With liquid glass every defocused lyric line ran its own blur pass on each
composited frame, all song long while word-synced lyrics play. A line whose
blur has settled is now rasterized once and drawn as an image until it
changes; lines still easing, or rebuilt, blur live as before.
2026-10-23 22:43:00 +07:00
zarzet 72e2b3b1ba perf(mornye): decode the details sheet cover at thumbnail size
The 70 dp artwork in the Mornye details sheet decoded the original cover,
up to about 36 MB for a 3000 px image. Decoding at the display size times
the device pixel ratio keeps it sharp without the large transient bitmap.
2026-10-23 22:43:00 +07:00
zarzet 720f34f193 fix(android): coalesce background work progress notifications 2026-10-23 22:35:26 +07:00
zarzet dfa5e0d994 perf(library): reuse the prepared page data across rebuilds
Each Library rebuild combined every loaded page, filtered playlist tracks
and regrouped the in-memory History snapshot up to three times, so the
section cache never hit and every row's month was formatted again. The
results are now memoized per input identity, with identical output.
2026-10-23 22:31:44 +07:00
zarzet 64d5e66d46 refactor(library): build songs, singles and collection cells once
The Songs and Singles pages wrote the same grid, table, sectioned and list
layouts twice, and the completion-bridge, special collection and playlist
drop-target cells were written once per grid and list. One builder now
serves each pair with the same widget trees.
2026-10-23 22:31:44 +07:00
zarzet ba59251f82 refactor(library): remove the unreachable Mornye page chip row
QueueTab returns MornyeLibraryScreen for the Mornye root Library, and the
page switcher renders only on that root, so its Mornye chip branch and
_FilterChip could never build.
2026-10-23 22:31:43 +07:00
zarzet 632f24ccdd refactor(library): share the staged ingestion steps
Incremental upserts and full source replacement created, filled and merged
their temp stage with the same code. One set of helpers now does it, with the
source replacement delete still first inside the merge transaction.
2026-10-23 22:28:48 +07:00
zarzet 0af9ac4bed chore: remove unused library database write wrappers
The single-row and batch upserts, replaceAll, the replaceSourceStream
wrapper, delete, getAllFilePaths and searchFtsTable have no callers in lib,
test or integration_test; scans use the staged ingestion paths instead.
2026-10-23 22:28:47 +07:00
zarzet f70c93ac3c refactor(library): share queue store sort terms, paging and counts
Track and album sort modes differ only in the name and key columns, and the
History shadowing anti-join, page query and count summing were written out
several times. The pinned SQL test shows the generated statements and
arguments are unchanged apart from whitespace.
2026-10-23 22:28:47 +07:00
zarzet ebd973f0c1 perf(mornye): keep position ticks and lyric control fades local
Synced lyrics depended on the covered height that animates while the
controls fade, rebuilding the whole list every frame; only the loading
and empty states read it now. Position ticks and digit rolls re-recorded
the entire player because rebuilds under the body LayoutBuilder relayout
it and the seek slider's unused LayoutBuilder relaid out up to the
scaffold; the slider drops it, and the body content and timeline keep
their own layers.
2026-10-23 22:28:23 +07:00
zarzet 26695a8d34 refactor(player): share the current queue index rule
The Mornye player layout and its queue repeated the same "reported index
while it still names the current item, else first match" rule; one
provider now derives it, with a test for stale, shuffled and empty queues.
2026-10-23 22:28:23 +07:00