Commit Graph
2516 Commits
Author SHA1 Message Date
vicrodh 33e80b0836 fix: lower default visualizer FPS from 60 to 15 for better performance 2026-02-28 07:48:03 -06:00
vicrodh 99196db70f fix: graceful shutdown on RunEvent::Exit to prevent heap corruption
Handle RunEvent::Exit (fires on SIGTERM from tauri dev hot reload)
to stop audio playback and visualizer before process teardown. The
previous CloseRequested handler only fires on user-initiated close,
not on SIGTERM, leaving ALSA/CPAL C threads active during cleanup
which causes "free(): corrupted unsorted chunks" heap corruption.

- Switch from .run(context) to .build(context).run(callback)
- Stop visualizer and both legacy/V2 players on Exit event
- Destroy miniplayer window on Exit event
2026-02-28 07:48:03 -06:00
vicrodh 6c8354f825 feat: add booklet download button, remove pdfjs-dist dependency
- Add save/download button to booklet toolbar with native file dialog
- Add v2_booklet_save command to copy PDF to user-chosen location
- Remove pdfjs-dist npm package (replaced by MuPDF backend)
- Delete static/pdfjs/ files (~1.9MB: worker, WASM decoders, fallbacks)
- Add bookletDownload i18n keys to all 4 locales
2026-02-28 07:48:03 -06:00
vicrodh 53fc99446b fix: disable alpha in booklet renderer for opaque white background 2026-02-28 07:48:03 -06:00
vicrodh bb723c7ca5 feat: switch booklet viewer from pdfjs-dist to MuPDF backend
Replace browser-side pdfjs-dist canvas rendering with server-side
MuPDF rendering for high-quality PDF booklet display. MuPDF renders
pages to PNG at configurable DPI in Rust, producing much sharper
results than the JavaScript canvas approach which had persistent
JPEG 2000 WASM decoder issues.

- Add mupdf crate with sys-lib features (avoid GTK symbol conflicts)
- Create pdf_viewer.rs with v2_booklet_open/render_page/close commands
- Download PDF to temp file, render pages on demand via MuPDF
- Display rendered PNGs as img tags instead of canvas
- DPI scales with zoom and devicePixelRatio for crisp output
- Support rotation via MuPDF transformation matrix
2026-02-28 07:48:03 -06:00
vicrodh e78dc626ff fix: serve pdfjs worker from static/ for proper WASM resolution
The worker was loaded via Vite's blob: URL transform, which
prevented it from resolving sibling WASM files (openjpeg.wasm,
jbig2.wasm). Now the worker is served from static/pdfjs/ as a
real HTTP resource alongside the WASM files, so JPEG 2000 and
JBIG2 decoders initialize correctly.

Removed disableWorker hack — worker runs properly now.
2026-02-28 07:48:03 -06:00
vicrodh 93f4b1bf68 fix: auto-fit booklet page to viewer width on load
PDF was rendering tiny because zoom=1 means 1 PDF point = 1 CSS
pixel. Now calculates zoom to fill the container width on load.
Fit-to-width button does the same recalculation.
2026-02-28 07:48:03 -06:00
vicrodh 7d981ee641 fix: restore workerSrc — pdfjs v5 requires it at init time
pdfjs v5 checks GlobalWorkerOptions.workerSrc before reading
document options like disableWorker. Set it to satisfy the
init check even though the worker is disabled per-document.
2026-02-28 07:48:03 -06:00
vicrodh c438b8896c fix: disable pdfjs worker for reliable WASM image decoding
The web worker runs in a blob: URL context where /pdfjs/ WASM
paths don't resolve, causing JPEG 2000 images to decode at
degraded quality. Disable worker so all decoding runs on the
main thread where static assets are reachable.

Also bumped render scale from 2x to 3x for near-print quality.
2026-02-28 07:48:03 -06:00
vicrodh 8757108e00 fix: first page black screen and low quality rendering
First page was black because renderPage() ran while isLoading was
still true, so the canvas wasn't in the DOM yet. Fixed by setting
isLoading=false and awaiting tick() before rendering.

Increased render quality from 1.5x to 2x DPR multiplier for
sharper booklet pages.
2026-02-28 07:48:03 -06:00
vicrodh 4bafaac1cd fix: provide pdfjs WASM files for JPEG 2000 decoding in booklets
PDF booklets use JPEG 2000 images which require OpenJPEG WASM.
Copy pdfjs-dist WASM files to static/pdfjs/ so they are served
at a known URL, and set wasmUrl parameter on getDocument().
2026-02-28 07:48:03 -06:00
vicrodh 883f3546c5 fix: fetch booklet PDF through Tauri backend to bypass CORS
PDF loading was failing because pdfjs-dist cannot fetch from
static.qobuz.com due to CORS restrictions in the WebView.

Added v2_fetch_url_bytes command that fetches URL bytes through
Rust's reqwest (no CORS), then passes the binary data to pdfjs.

Also added rotation support (R key or toolbar button) for
vertical booklets.
2026-02-28 07:48:03 -06:00
vicrodh 7e34232823 feat: add booklet button and viewer to AlbumDetailView
Show a BookOpen icon button in album header when the album has
PDF goodies from Qobuz. Opens the BookletViewer modal to display
the booklet inline.
2026-02-28 07:48:03 -06:00
vicrodh f561e12850 feat: add booklet viewer i18n keys to all 4 locales 2026-02-28 07:48:03 -06:00
vicrodh 025aba7c1a feat: add BookletViewer component with pdfjs-dist
Modal PDF viewer for album booklets with page navigation,
zoom controls, and keyboard shortcuts. Uses pdfjs-dist to
render PDF pages from URL in canvas.
2026-02-28 07:48:03 -06:00
vicrodh cb86f402e6 feat: add goodies/booklet types to frontend and adapter
Add QobuzGoody interface, goodies field to QobuzAlbum and AlbumDetail,
and pass goodies through in convertQobuzAlbum adapter.
2026-02-28 07:48:02 -06:00
vicrodh 6a7c31220b feat: add Goody model to qbz-models for album booklets
Add Goody struct and goodies field to Album for Qobuz album
booklet/liner notes PDF support.
2026-02-28 07:48:02 -06:00
vicrodh dec2278624 feat: per-panel FPS settings for all immersive animations
All animations default to 60fps. Each panel reads its own setting
from userStorage via shared fpsConfig utility. Settings UI shows
a collapsed section with per-panel dropdowns:

- Background Blur, Spectrum, X/Y (Lissajous), Oscilloscope,
  Energy Bands, Transient Pulse, Album Reactive, Spectral Ribbon

Options: Disabled, 15, 30, 60, 120 FPS
i18n keys added to all 4 locales (en, es, de, fr)
2026-02-28 07:48:02 -06:00
vicrodh 8c179ecf00 feat: configurable ambient background FPS in settings
Add setting for immersive background animation frame rate:
- Disabled, 15 FPS (default), 30 FPS, 60 FPS, 120 FPS
- Persisted via userStorage, read at canvas init
- Disabled renders a single static frame
- Setting placed in Appearance section after immersive default view
- i18n keys added to all 4 locales (en, es, de, fr)

Visualizer panels reverted to 30fps (unrelated to ambient bg).
2026-02-28 07:48:02 -06:00
vicrodh fae4d912ab feat: bump all visualizer panels from 30fps to 60fps
Updated frame throttle in all immersive panels:
- LissajousPanel (X/Y)
- VisualizerPanel (spectrum)
- OscilloscopePanel
- EnergyBandsPanel
- TransientPulsePanel
- AlbumReactivePanel

SpectralRibbon was already at 60fps.
2026-02-28 07:48:02 -06:00
vicrodh 1ba4818228 feat: bump immersive visualizer to 60fps
Was hardcoded at 15fps (not the 30fps from config). Updated both
the canvas frame throttle and the default config to 60fps.
2026-02-28 07:48:02 -06:00
vicrodh 9ccc0537d4 fix: destroy miniplayer window before app exit
WebKit's WebProcess was crashing (SIGABRT) during EGL/GPU resource
cleanup when the app exited with the miniplayer window still alive.
Now explicitly destroy the miniplayer window before the main process
exits, giving WebKit time to clean up gracefully.
2026-02-28 07:48:02 -06:00
Victor RH 4563718f59 Merge pull request #137 from vicrodh/dependabot/npm_and_yarn/svelte-5.53.6
chore(deps-dev): bump svelte from 5.53.0 to 5.53.6
2026-02-28 07:47:52 -06:00
dependabot[bot] f63d8d7a0a chore(deps-dev): bump svelte from 5.53.0 to 5.53.6
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.0 to 5.53.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.6/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 04:35:44 +00:00
Victor RH 0c94d79075 Merge pull request #136 from arminfelder/feat/validateWindowSize
feat(settings): validate window size before saving
2026-02-27 18:52:25 -06:00
Armin Felder db32a29550 feat(settings): validate window size before saving 2026-02-28 00:43:42 +01:00
vicrodh 5ceafc881c fix: bump snapcraft.yaml version to 1.1.18
snapcraft.yaml had hardcoded version and source-tag still pointing
to 1.1.17, causing Snapcraft to build/publish the wrong version.
2026-02-26 06:36:48 -06:00
Victor RH a9c393b326 Merge pull request #130 from vicrodh/dependabot/npm_and_yarn/rollup-4.59.0
chore(deps-dev): bump rollup from 4.55.2 to 4.59.0
2026-02-26 03:56:34 -06:00
dependabot[bot] ab2a70bccf chore(deps-dev): bump rollup from 4.55.2 to 4.59.0
Bumps [rollup](https://github.com/rollup/rollup) from 4.55.2 to 4.59.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.55.2...v4.59.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-version: 4.59.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 09:43:18 +00:00
vicrodh 6d2128e90a chore: bump version to 1.1.18 2026-02-26 03:41:45 -06:00
vicrodh d21a8a3a49 Merge branch 'feature/miniplayer' into pre-release 2026-02-26 02:45:28 -06:00
vicrodh 630a8c16c5 refactor(i18n): replace get(t) with direct $t() calls in 6 components
Remove unnecessary get() wrapper from svelte/store when calling the
i18n translate function. Direct $t() works correctly in regular
functions (only $derived is problematic per ADR-001). Removes unused
get import from GenreFilterButton, FavoritesView, PlaylistDetailView,
PurchaseAlbumDetailView, PurchasesView, and SettingsView.
2026-02-26 02:44:17 -06:00
vicrodh 067264e7ec chore(scripts): add ghost-doctor and ultra-restore dev tooling
Add dev-ghost-doctor.sh (t-shadow check + runtime clean + restart) and
dev-ultra-restore.sh (deep clean with --full/--no-start/--check flags).
Improve check-no-t-shadow.sh patterns for broader t-variable detection.
Clean-dev-runtime now runs guardrail check automatically. Remove --force
from vite dev. Add npm script shortcuts for all new tools.
2026-02-26 02:44:06 -06:00
vicrodh 39a35e5467 fix(player): reduce now playing song card width for compact layouts
cx
2026-02-26 02:35:35 -06:00
vicrodh 67a159e270 fix(miniplayer): center micro window controls overlay
cx
2026-02-26 02:34:42 -06:00
vicrodh d6852500bf fix(miniplayer): refine queue artwork overlays and inline controls
cx
2026-02-26 02:22:52 -06:00
vicrodh e0cfc5d92b feat(miniplayer): add default surface setting and queue row play controls
cx
2026-02-26 02:14:09 -06:00
vicrodh 339f2b8106 fix(miniplayer): restore next/prev playback and remanent shuffle
cx
2026-02-26 02:03:15 -06:00
vicrodh 9302ffe5e6 fix(miniplayer): sync window theme with global app settings
cx
2026-02-26 01:58:37 -06:00
vicrodh 1ba6fe13d5 refactor(miniplayer): tighten compact spacing and simplify play button
cx
2026-02-26 01:54:11 -06:00
vicrodh d6b0e0f5ea feat(miniplayer): refine micro surface layout and controls
cx
2026-02-26 01:45:59 -06:00
vicrodh 99c8ae1ed3 feat(miniplayer): rebuild surfaces window with compact overlay polish
cx
2026-02-26 00:54:13 -06:00
vicrodh ddedca1b5e chore: fix remaining Rust warnings
- Allow dead_code on TokenValidationResponse.code (deserialized but not read)
- Remove unused MusicProvider import in commands_v2.rs
- Restore #[allow(non_snake_case)] on v2_plex_cache_get_tracks
- Replace drop(tokens) with let _ = tokens (drop on reference is no-op)
2026-02-25 20:57:30 -06:00
vicrodh e8979e88c0 feat(artist): add open in browser and save as to artist image context menu
Mirror the album cover context menu options: right-clicking the artist
photo now shows Open in Browser and Save As below the existing
custom image options, separated by a divider.
2026-02-25 20:27:24 -06:00
vicrodh af83cec692 feat(ui): subtle rounded corners and shadow when window is floating
Detect maximized state via Tauri window API. When the window is not
maximized (floating), apply 8px border-radius and a soft box-shadow.
Body/html backgrounds set to transparent so corners show through
the Tauri transparent window.
2026-02-25 20:20:59 -06:00
vicrodh 08c92b0bc2 fix(titlebar): match background color with sidebar across all themes
Replace hardcoded gradient with var(--bg-secondary) so the titlebar
background matches the sidebar in every theme.
2026-02-25 20:15:00 -06:00
vicrodh 6c3f7e8d40 fix(favorites): heart button works in tracks tab, animate out on unfavorite
Remove isFavoriteOverride={true} that forced all hearts filled,
preventing the toggle from having any visible effect. Subscribe to
favoritesStore so unfavorited tracks animate out (slide+fade) and
are removed from the list after 300ms without requiring a refresh.
2026-02-25 20:11:31 -06:00
vicrodh e829c5dc7f fix(home): diversify More From Favorites with per-artist cap and shuffle
Shuffle favorite artists randomly so all get a fair chance (was
deterministic, first artist dominated). Cap at 2 albums per artist.
Shuffle final results for variety on each load.
2026-02-25 20:03:48 -06:00
vicrodh 736753585e feat(titlebar): add window controls customization store and i18n keys 2026-02-25 20:00:15 -06:00
vicrodh 76cdfc73b2 fix(titlebar): reduce circular large button gap to 15px 2026-02-25 20:00:10 -06:00