Skip to content

feat: web parity for the headless server - #27

Merged
kushiemoon-dev merged 4 commits into
mainfrom
feat/web-parity
Nov 20, 2026
Merged

kushiemoon-dev merged 4 commits into
mainfrom
feat/web-parity

Conversation

@kushiemoon-dev

@kushiemoon-dev kushiemoon-dev commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

What

Makes the headless web app usable like the desktop app.

  • Server file browser replaces the native pickers in the browser. Tools stay inside the download folder and library paths; picking a download folder or library works anywhere on the server and lists folders only.
  • GET /api/config/export and POST /api/config/import, same file format as the desktop app, credentials blanked, server token never included.
  • Live logs through LogBuffer.Subscribe (flacidal-core v0.31.0): /ws in the browser, the log event in the desktop app.
  • Discography, artist images and FFmpeg install over HTTP, sharing code with the desktop app. FFmpeg progress goes through /ws, a second install is refused.
  • Buttons that open the local file manager or the in-app update are hidden in the browser.

Behaviour changes

  • Importing a config no longer erases saved credentials when the file has them blank (desktop and browser).
  • The Browse button for the download folder is enabled in the browser.
  • Fixed a data race in the /ws client counter.

Testing

go vet, go test -race (cmd/server coverage 87.6 %), vitest 330, svelte-check, 131 mocked e2e, 40 HTTP e2e including axe in both themes, keyboard only and a server restart round trip.

Not covered: a manual screen reader pass, a real browser against a remote headless, and a real FFmpeg download.

Hardening after review

  • Config import keeps a saved secret that the file leaves blank only when the hosts that receive it are unchanged (Qobuz credentials follow the Qobuz endpoints and the proxy, the Jellyfin key follows the Jellyfin URL and the proxy). A shared file can no longer point saved credentials at another server.
  • Config export now blanks the Jellyfin API key and removes user and password from every URL field and list.
  • On the desktop app, every event sent to the window (progress, log lines, queue pause, FFmpeg install) goes through one goroutine, so ExecuteJS calls never overlap on Linux. Repeated progress ticks are merged, and "Now downloading" is logged once per track.

Known limits: the results of bound Wails methods still reach the window outside that queue, and exports made by the mobile Core do not blank the Jellyfin key or URL credentials yet.

Add a server file browser (tools scope confined to the allowed folders,
folders scope anywhere, folders only), config export and import, and the
discography, artist image and FFmpeg install routes, with the logic shared
with the desktop app through internal/app. Every log entry is now sent to
/ws clients and to the desktop log event through LogBuffer.Subscribe.
Importing a config keeps the credentials already saved when the file
leaves them blank. Bump flacidal-core to v0.31.0.
Replace the native pickers in the browser with an accessible file browser
dialog, wire export and import of the config, live logs with history
reload after a reconnect, discography, artist images and the FFmpeg
install. Hide the buttons that only make sense in the desktop app.
@gitguardian

gitguardian Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Config import keeps a saved secret that the file leaves blank only when
the hosts that receive it are unchanged: Qobuz credentials follow the
Qobuz endpoints and the proxy, the Jellyfin key follows the Jellyfin URL
and the proxy. URL credentials that the export removed come back only
for the same URL behind the same proxy, matched by value.

Config export now blanks the Jellyfin API key and removes user and
password from every URL field and list. Values that hide a password
from the URL parser are blanked.

Desktop events (progress, log lines, queue pause, FFmpeg install) go
through one goroutine, so ExecuteJS calls never overlap on Linux.
Repeated progress ticks of a download or of the FFmpeg install are
merged, and "Now downloading" is logged once per track.
@kushiemoon-dev
kushiemoon-dev merged commit 309b9e5 into main Nov 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant