The live test waited for the notices after Choose and Retry unmatched in the
imports store and read the playlist titles from the library store. It now
waits for the visible status notices and reads the titles of the rendered
playlist rows. Against an instance that already has an administrator it
stops at once with an explanation instead of a 30-second timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browser scenario of the import page runs on isolated API fixtures, so
nothing checked the page with the real handlers, the background worker and
the publisher together. tests/browser-library-import-live.cjs seeds a few
library tracks on a fresh disposable instance, uploads a Spotify export
ZIP built in the test and checks that only the playlist files are sent,
the statistics after the worker finishes, the private playlists in source
order without repeats, the filters, a manual choice published by the next
pass, the export flagged as already imported, Retry unmatched, history
deletion that keeps the playlists and the page at phone width.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wizard dialog leaves the DOM without close(), so focus fell to the
page body. Closing it now returns focus to the button that opened it, or
to New import, unless it closes to navigate, and each new step focuses the
dialog title. Leaving the details clears a pending entry search, and
entries are not loaded without an import, so /api/imports/null/items is
never requested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stored entry is copied by its compressed size, so a record that declares
an original size of zero could still bring hundreds of megabytes, once per
central directory record that points at it. Each extracted file is now
charged the larger of its sizes, a stored entry must declare equal sizes,
and unknown methods and duplicate names are refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Import library sits between Followed and Settings in the account menu and
opens #imports: the sources, the history with statistics and links to the
created playlists, and #imports/N with progress, per-playlist results, a
deleted-playlist notice with Create again, and the entries with status and
playlist filters, search, paging and the candidates of doubtful entries to
choose from. Retry unmatched (with the federated search consent), Cancel,
Delete history and a new Spotify sign-in for waiting imports call the
existing /api/imports endpoints. The page polls every 3 s while an import
runs. It follows the player's views, skeletons, dialogs, switches and
phrase table in English and Russian.
The New import wizard picks a source, then the data export or the Spotify
sign-in, then the playlists: imported ones cannot be selected, similar ones
need an explicit confirmation, and federated search is off until the user
turns it on. A ZIP export is opened in the browser with fflate 0.8.2,
vendored with its MIT licence and served at /vendor/fflate-0.8.2.js only
when an archive is picked. Only Playlist*.json and YourLibrary.json are
extracted; archives over 256 MiB, with more than 2,000 entries, more than
256 playlist files or more than 32 MiB declared for them are refused before
anything is decompressed, and a request over 32 MiB is not sent.
Federated tracks can now be removed from a playlist in edit mode:
DELETE /api/player/tracks/content/playlist checks the owner and records the
existing PlaylistTrackRemoved operation. The body-level dialogs get an
Alpine root, which also makes Get app open again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>