docs: web comments say what the app does, not how it came to be (#6277)

Rewrites the web app's comments to rule 32. Task, milestone, rule and
spec ids are gone; regression stories are restated as the trap they
guard (public auth routes, the menu's stopPropagation, universal loads
under adapter-static, metric deltas with their margin). Flutter and
Tauri mentions now name the Android app or a native shell, operator
quotes and dates are dropped, and one library's counts no longer
appear outside test fixtures. Verified with a TypeScript-scanner token
comparison (template literals and regex literals re-scanned): only
comment text changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-23 12:42:12 -04:00
co-authored by Claude Opus 5.5
parent 6028d78844
commit 10d50dccbd
164 changed files with 602 additions and 624 deletions
+2 -2
View File
@@ -102,8 +102,8 @@
if (!audioEl) return;
// Per-position fade scalar: 1 normally, ramping in/out of the
// crossfade window at track boundaries. Pure function of position
// + duration + the operator's chosen crossfade duration.
// Leveling (#4999) multiplies in last; the prefetch element is muted
// + duration + an admin's chosen crossfade duration.
// Leveling multiplies in last; the prefetch element is muted
// and never leveled.
const scalar = deriveFadeScalar(player.position, player.duration, player.crossfadeSec);
applyGain(audioEl, player.volume * scalar, gainDbAt(player.index));
+6 -7
View File
@@ -43,8 +43,8 @@
(systemPlaylistsQ.data?.owned ?? []).find((p) => p.system_variant === 'discover') ?? null
);
// Songs-like mixes get their own dedicated row (#1491) — no longer
// capped to 3 carousel slots, so take all the server generated.
// Songs-like mixes get their own dedicated row, so take all the server
// generated.
const songsLikePlaylists = $derived(
(systemPlaylistsQ.data?.owned ?? [])
.filter((p) => p.system_variant === 'songs_like_artist')
@@ -56,8 +56,7 @@
// No placeholders for these — they depend on library shape (Deep
// cuts needs deep albums, On this day needs prior history, etc.) so
// a missing one means "not enough data," not "still building."
// Mirrors Android's SECONDARY_SYSTEM_VARIANTS (HomeScreen.kt). Operator
// request 2026-06-01 for web parity.
// Mirrors Android's SECONDARY_SYSTEM_VARIANTS (HomeScreen.kt).
const SECONDARY_SYSTEM_VARIANTS = [
'deep_cuts',
'rediscover',
@@ -109,7 +108,7 @@
out.push({ kind: 'placeholder', label: 'Discover', variant: placeholderVariant('discover') });
}
// Songs-like moved to its own dedicated row below (#1491).
// Songs-like has its own dedicated row below.
// Secondary system kinds in server-registry order, when generated.
for (const p of secondarySystemPlaylists) {
@@ -124,7 +123,7 @@
return out;
});
// Dedicated Songs-like row (#1491): every generated "Songs like {artist}"
// Dedicated Songs-like row: every generated "Songs like {artist}"
// mix — the best-performing surface, promoted out of the Playlists
// carousel to show a wider spread. Shows a few placeholders while the
// mixes haven't generated yet (building / seed-needed).
@@ -169,7 +168,7 @@
</HorizontalScrollRow>
</section>
<!-- Songs like…: the best-performing surface, its own row (#1491).
<!-- Songs like…: the best-performing surface, its own row.
Depends on the system-playlists query (same as Playlists above), so
it sits outside the home-sections {#if data} block. -->
<section class="space-y-3">
+2 -2
View File
@@ -7,11 +7,11 @@
let { children } = $props<{ children: import('svelte').Snippet }>();
// Admin (#5605): one page per section down a left rail, as Settings and
// Admin: one page per section down a left rail, as Settings and
// the Collection are, so the sections sit in the same place everywhere
// and fit a phone. Each queue carries how many wait on you, from one
// summary read that is refreshed whenever you move between admin pages.
// The library's health queues are under Collection (M504).
// The library's health queues are under Collection.
const summaryStore = createAdminSummaryQuery();
const summary = $derived($summaryStore.data);
+5 -5
View File
@@ -8,12 +8,12 @@
import { liveDownloadLine } from '#lib/wanted/downloadState.js';
import type { Download } from '#lib/api/types.js';
// The admin Overview (#5605) answers "does anything need me?" first: a
// The admin Overview answers "does anything need me?" first: a
// verdict, then each queue that waits on you with how long its oldest has
// waited, then the empty ones on one line (#189). The queues themselves
// are worked on their own pages; the Overview no longer repeats them.
// waited, then the empty ones on one line. The queues themselves
// are worked on their own pages; the Overview does not repeat them.
//
// Below the verdict, the server's state (M504): who is listening, what is
// Below the verdict, the server's state: who is listening, what is
// downloading, what the library holds and how much room is left, and the
// server's version, uptime and recent errors. A download waiting on you, a
// download client not answering, or a library folder unreadable or nearly
@@ -27,7 +27,7 @@
const clear = $derived(QUEUES.filter((d) => countOf(summary, d.key) === 0));
// A failed library scan needs you as much as a queue does. The scan
// itself, and the jobs after it, are on Admin › Library (#5607).
// itself, and the jobs after it, are on Admin › Library.
const scanStore = createScanStatusQuery();
const scan = $derived($scanStore.data);
@@ -5,7 +5,7 @@
import ReacquisitionSettingsCard from '#lib/components/ReacquisitionSettingsCard.svelte';
import SettingsColumns from '#lib/components/settings/SettingsColumns.svelte';
// Admin › Acquisition (#5607): how Minstrel gets music. Where it searches
// Admin › Acquisition: how Minstrel gets music. Where it searches
// and what downloads, how it searches and what it takes, and what happens
// to a file that goes missing.
</script>
+3 -3
View File
@@ -143,7 +143,7 @@ describe('admin Overview page', () => {
expect(screen.getByTestId('all-clear').textContent).not.toMatch(/requests/);
});
// The library's health queues live under Collection (M504); the Overview
// The library's health queues live under Collection; the Overview
// still lists them, linking there.
test('a library queue that waits on you opens its Collection page', () => {
setupOverview(summary({ duplicates: { count: 5, since: ago(4) } }));
@@ -181,7 +181,7 @@ describe('admin Overview page', () => {
});
});
// Below the verdict, the server's state (M504).
// Below the verdict, the server's state.
describe('admin Overview status', () => {
test('who is listening, and the last day of plays', () => {
setupOverview(summary(), vi.fn(), status({
@@ -248,7 +248,7 @@ describe('admin Overview status', () => {
expect(textOf('downloads-line')).toBe('1 downloading. In the last day, 4 imported. Activity');
});
// Worded as the wanted list words a download (M505).
// Worded as the wanted list words a download.
test('each live download says what it is doing, as the wanted list says it', () => {
const d = (id: string, import_state: Download['import_state'], import_reason = ''): Download => ({
id, want_id: null, want_title: `Album ${id}`, want_artist: 'Blur', name: id, indexer: '', client: 'qbittorrent',
@@ -16,7 +16,7 @@
import { errMessage } from '#lib/api/errors.js';
import { pushToast } from '#lib/stores/toast.svelte.js';
// Device diagnostics timeline (M9). The operator enables debug-mode on
// Device diagnostics timeline. An admin enables debug-mode on
// an account (remotely, here), then watches the account's device(s)
// stream connectivity / UPnP-sync / power events. The point of the page
// is the EXPORT: filter to the window in question and copy/download the
@@ -52,7 +52,7 @@
const DEFAULT_LIMIT = 500;
// Filter state. Users links here with ?account=<id> to open on that
// account's events (#5608).
// account's events.
let accountId = $state(page.url.searchParams.get('account') ?? '');
let clientId = $state('');
let kind = $state('');
@@ -111,7 +111,7 @@
return Number.isNaN(d.getTime()) ? iso : d.toLocaleString();
}
// A device by what the operator knows it as, not its client id.
// A device by what an admin knows it as, not its client id.
function deviceLabel(d: { username: string; os_version: string; app_version: string; last_seen: string; event_count: number }): string {
const parts = [d.username, d.os_version, d.app_version && `app ${d.app_version}`, `seen ${relativeTime(d.last_seen)}`];
return `${parts.filter(Boolean).join(' · ')} (${d.event_count} events)`;
+1 -1
View File
@@ -6,7 +6,7 @@
import NetworkSettingsCard from '#lib/components/NetworkSettingsCard.svelte';
import SettingsColumns from '#lib/components/settings/SettingsColumns.svelte';
// Admin › Email & network (#5607): the mail server and when mail goes
// Admin › Email & network: the mail server and when mail goes
// out, and how Minstrel sits behind the rest of the network: the address
// links point at, and the proxies in front of it.
</script>
+3 -3
View File
@@ -22,10 +22,10 @@
import { relativeTime } from '#lib/utils/relativeTime.js';
import { stageState, type StageKey } from '../stage-state';
// Admin › Library (#5607): the folders Minstrel reads, the scan that reads
// Admin › Library: the folders Minstrel reads, the scan that reads
// them with a row for each of its jobs, and the background work that
// follows a scan: fingerprints, loudness and cover art. Moved here from
// the Overview, which now only says what needs you.
// follows a scan: fingerprints, loudness and cover art. The Overview only
// says what needs you.
const client = useQueryClient();
const button =
+1 -1
View File
@@ -14,7 +14,7 @@
import ProviderGroup from '#lib/components/admin/ProviderGroup.svelte';
import SettingsColumns from '#lib/components/settings/SettingsColumns.svelte';
// Admin › Metadata sources (#5607): the outside sources Minstrel asks
// Admin › Metadata sources: the outside sources Minstrel asks
// about your music. AcoustID names a recording from its sound; the cover
// art and tag sources share one block.
+2 -2
View File
@@ -14,7 +14,7 @@
// Approval queue. Tabs filter by status; rows expose Approve/Reject, and an
// artist request can be approved on a chosen release-type profile. Approving
// puts the request on the wanted list (M502 #5520): an album or track wants
// puts the request on the wanted list: an album or track wants
// its album, an artist is followed.
const client = useQueryClient();
@@ -59,7 +59,7 @@
async function invalidate() {
// Invalidate every status bucket so e.g. an approve flips a row from the
// pending list to the approved list once the operator switches tabs.
// pending list to the approved list once an admin switches tabs.
await client.invalidateQueries({ queryKey: ['adminRequests'] });
await client.invalidateQueries({ queryKey: ['adminWants'] });
}
+10 -11
View File
@@ -20,10 +20,10 @@
import SettingsGroup from '#lib/components/settings/SettingsGroup.svelte';
import SettingRow from '#lib/components/settings/SettingRow.svelte';
// The defaults-discovery lab (#1250): DB-backed scoring-weight
// profiles + taste-build knobs with live effect. This card exists to
// FIND good values — found-good values get baked into shipped
// defaults, so end users and other operators never need it.
// The defaults-discovery lab: DB-backed scoring-weight profiles +
// taste-build knobs with live effect. This card exists to FIND good
// values — found-good values get baked into shipped defaults, so nobody
// needs it to get good recommendations.
const weightFields: { key: keyof WeightProfile; label: string; hint: string }[] = [
{ key: 'base_weight', label: 'Base weight', hint: 'Floor score every candidate starts from.' },
@@ -163,7 +163,7 @@
}
}
// Trends (#1251): weekly skip-rate sparklines per surface with
// Trends: weekly skip-rate sparklines per surface with
// knob-turn markers — the verify half of the tune→verify loop.
let trends = $state<TrendsResponse | null>(null);
@@ -232,11 +232,10 @@
}
// The "latest" columns are ONE WEEK while the Plays column is the whole
// window, which is a trap: a 40% skip rate off 17 plays sat next to a
// four-figure Plays total and read as a solid signal. It isn't — I misread
// exactly this and briefly concluded Deep cuts was the worst surface, when
// over 180 days it's one of the best (#2495). So the week's own play count
// comes back with the rates and is rendered beside them.
// window, which is a trap: a 40% skip rate off 17 plays beside a
// four-figure Plays total reads as a solid signal, and it isn't. So the
// week's own play count comes back with the rates and is rendered beside
// them.
function latest(s: TrendSeries): { skip: number; completion: number; plays: number } {
const last = s.points[s.points.length - 1];
return last
@@ -339,7 +338,7 @@
</div>
{/if}
<!-- Weekly trends (#1251): the verify half. Sparklines share one week
<!-- Weekly trends: the verify half. Sparklines share one week
axis and a fixed 0–100% skip-rate axis; dashed ticks mark knob turns,
so cause and effect read off the chart. -->
<SettingsGroup
+10 -12
View File
@@ -99,10 +99,9 @@ describe('Admin tuning page', () => {
});
// Songs-like is a separate weight profile precisely so it can be tuned
// apart from For-You (#3881). If its card stopped rendering its OWN values
// — or quietly fell back to daily_mix's — the split would exist in the
// backend and be unreachable in the UI, which is the same as not shipping
// it (rule 27).
// apart from For-You. If its card stopped rendering its OWN values — or
// quietly fell back to daily_mix's — the split would exist in the backend
// and be unreachable in the UI, which is the same as not shipping it.
test('the songs-like card carries its own weights, not daily_mix\'s', async () => {
(getTuning as ReturnType<typeof vi.fn>).mockResolvedValue(snapshot());
render(TuningPage);
@@ -141,9 +140,9 @@ describe('Admin tuning page', () => {
await waitFor(() => expect(pushToast).toHaveBeenCalledWith('Nothing changed.'));
});
// Targets the button by its accessible name, not its position. This used to
// click the LAST reset button and assume that meant taste — which silently
// became the wrong scope the moment a card was added below it.
// Targets the button by its accessible name, not its position: clicking the
// LAST reset button and assuming it meant taste would silently pick the
// wrong scope the moment a card was added below it.
test('reset calls resetTuning for the scope', async () => {
(getTuning as ReturnType<typeof vi.fn>).mockResolvedValue(snapshot());
(resetTuning as ReturnType<typeof vi.fn>).mockResolvedValue(snapshot());
@@ -226,7 +225,7 @@ describe('Admin tuning page', () => {
expect(screen.getByTestId('sparkline-radio')).toBeInTheDocument();
expect(screen.getByTestId('sparkline-discover')).toBeInTheDocument();
// The skip column is the LAST WEEK's rate, now carrying that week's play
// count so a rate off a handful of plays reads as what it is (#2495).
// count so a rate off a handful of plays reads as what it is.
// Radio's latest week: 40% skip over 15 plays; Discover's: 60% over 5.
expect(screen.getByText('/15')).toBeInTheDocument();
expect(screen.getByText('/5')).toBeInTheDocument();
@@ -238,8 +237,7 @@ describe('Admin tuning page', () => {
// play-count span. Assert the count rather than pretending it's unique.
expect(screen.getAllByText('40%')).toHaveLength(2);
// The window/last-week distinction has to be visible in the headers, or the
// Plays total reads as the denominator of the skip rate. That misreading is
// what #2495 was filed over.
// Plays total reads as the denominator of the skip rate.
//
// Queried as column headers rather than by text: the caption below also
// mentions "Plays", and matching on the word finds the prose too.
@@ -264,7 +262,7 @@ describe('Admin tuning page', () => {
expect(screen.getByText(/trends appear once listening accumulates/i)).toBeInTheDocument()
);
});
// --- Discover scope (#2377) ---
// --- Discover scope ---
test('renders the Discover card with its two knobs', async () => {
(getTuning as ReturnType<typeof vi.fn>).mockResolvedValue(snapshot());
@@ -288,7 +286,7 @@ describe('Admin tuning page', () => {
);
});
// 0 is the operator's off switch for the whole tag term, so the form must be
// 0 is an admin's off switch for the whole tag term, so the form must be
// able to send it — a falsy-value bug here would silently make the feature
// impossible to disable.
test('a Discover weight of 0 is sent, not dropped as falsy', async () => {
+1 -1
View File
@@ -165,7 +165,7 @@
}
}
// Debug mode makes the account's devices report diagnostics (#5608): a
// Debug mode makes the account's devices report diagnostics: a
// row action here, with the badge linking to that account's events.
async function onToggleDebug(u: AdminUser) {
saving = true;
+1 -1
View File
@@ -114,7 +114,7 @@
<p>
<a href={`/artists/${album.artist_id}`} class="hover:underline">{album.artist_name}</a>
</p>
<!-- Year and genre are quick-jumps into the browse axes (#367): from
<!-- Year and genre are quick-jumps into the browse axes: from
an album you like, one click to everything else from that year or
in that genre. -->
{#if album.year}
+3 -3
View File
@@ -56,8 +56,8 @@ describe('album detail page', () => {
render(AlbumPage);
expect(screen.getByRole('heading', { level: 1 })).toHaveTextContent('Kind of Blue');
// Two links point at /artists/md: the back chevron and the inline hero link.
// getAllByRole returns both; both should target the artist page.
// Two links point at /artists/md: the back chevron and the inline hero
// link. getAllByRole returns both; both should target the artist page.
const artistLinks = screen.getAllByRole('link', { name: /Miles Davis/ });
expect(artistLinks.length).toBeGreaterThanOrEqual(1);
artistLinks.forEach((l) => expect(l).toHaveAttribute('href', '/artists/md'));
@@ -122,7 +122,7 @@ describe('album detail page', () => {
}
});
// Quick-jumps into the browse axes (#367). The genre href must be encoded:
// Quick-jumps into the browse axes. The genre href must be encoded:
// a slash-bearing tag is why browse selection lives in the query string.
test('year and genre are quick-jump links into the browse axes', () => {
const detail: AlbumDetail = {
+1 -1
View File
@@ -89,7 +89,7 @@
<p class="text-sm text-text-secondary">
{plural(detail.album_count, 'album', 'albums')}
</p>
<!-- Genre quick-jumps (#367). No year link here: an artist spans many,
<!-- Genre quick-jumps. No year link here: an artist spans many,
so a single year would be a lie about the discography. -->
{#if detail.genres?.length}
<ul class="mt-2 flex flex-wrap gap-1.5">
+3 -4
View File
@@ -167,9 +167,8 @@ describe('artist detail page', () => {
}
});
// Play and Shuffle are the shared PlayActions (milestone 494). Play keeps
// the server's order; before, the artist's only button was "Play" and it
// shuffled.
// Play and Shuffle are the shared PlayActions. Play keeps the server's
// order; Shuffle shuffles.
describe('Play and Shuffle', () => {
const detail: ArtistDetail = {
id: 'abc', name: 'Alice', sort_name: 'Alice', album_count: 1, cover_url: '',
@@ -196,7 +195,7 @@ describe('artist detail page', () => {
});
});
// Following is for the wanted list (M502 #5520): an admin control, keyed by
// Following is for the wanted list: an admin control, keyed by
// the artist's MusicBrainz id.
describe('Follow', () => {
const detail = (mbid: string): ArtistDetail => ({
+3 -3
View File
@@ -7,7 +7,7 @@
let { children } = $props<{ children: import('svelte').Snippet }>();
// The Collection (M502, #5572): what the library holds and wants, and what
// The Collection: what the library holds and wants, and what
// Minstrel is fetching for it. Web-only and admin-only. The catalogue of
// artists is the main section, and the sections down the left show state. The
// catalogue's first page carries every section's count; the Catalogue
@@ -23,7 +23,7 @@
}
const parts = [plural(counts.wanted, 'album wanted', 'albums wanted')];
if (counts.activity) parts.push(`${counts.activity} downloading`);
// Library albums no MusicBrainz album matched wait on a person too (#5579).
// Library albums no MusicBrainz album matched wait on a person too.
if (counts.unmatched) {
const n = plural(counts.unmatched, 'album in your library needs', 'albums in your library need');
return parts.join(', ') + `. ${n} matching.`;
@@ -32,7 +32,7 @@
});
const needsYou = $derived(!!counts?.attention || !!counts?.unmatched);
// The library's health queues (M504) count from the admin summary, the
// The library's health queues count from the admin summary, the
// same read Admin's Overview makes. The line under the verdict names the
// ones with something in them; each links to its page.
const summaryStore = createAdminSummaryQuery();
+1 -1
View File
@@ -2,7 +2,7 @@ import { redirect } from '@sveltejs/kit';
import { user } from '#lib/auth/store.svelte.js';
import type { LayoutLoad } from './$types';
// Hard route gate: the Wanted view is an admin's (M502). Runs before the
// Hard route gate: the Wanted view is an admin's. Runs before the
// layout renders; auth is bootstrapped by the root +layout.ts, so user.value is
// either a settled User object or null.
export const load: LayoutLoad = () => {
@@ -3,7 +3,7 @@
import { pageTitle } from '#lib/branding.js';
import WantList from '#lib/components/wanted/WantList.svelte';
// One artist in the Collection's catalogue (#5572): every album of theirs
// One artist in the Collection's catalogue: every album of theirs
// on the list, held or not, with its tracks a click away.
const mbid = $derived(page.params.mbid ?? '');
</script>
+1 -1
View File
@@ -88,7 +88,7 @@ describe('/collection layout', () => {
expect(screen.getByRole('link', { name: /see unmatched/i }).getAttribute('href')).toBe('/collection/unmatched');
});
// The library's health queues moved here from Admin (M504): their counts
// The library's health queues moved here from Admin: their counts
// come from the admin summary, accented, and a line names the ones waiting.
test('the library health queues carry what waits on you, and a line links to each', () => {
setup(counts, '/collection', {
@@ -27,26 +27,26 @@
import ListContinuation from '#lib/components/ListContinuation.svelte';
import TabStrip from '#lib/components/TabStrip.svelte';
// Tracks the duplicate sweep believes hold one recording (#3912). The
// resolver (M498, M502) settles what is safe on its own: a song held twice on
// Tracks the duplicate sweep believes hold one recording. The
// resolver settles what is safe on its own: a song held twice on
// one album, and a video rip with a clean copy elsewhere. What is left comes
// in two tabs: groups that need the operator, and the same song on different
// in two tabs: groups that need an admin, and the same song on different
// releases, which is kept on purpose. A third tab lists what the resolver
// did.
//
// Dismissing a group says "these are not duplicates", and the sweep will not
// propose that set again. On the cross-release tab it reads "Not the same
// song" and also undoes the link that made the copies one song (#5438). Merging (#3911) keeps one copy, moves the others'
// likes, plays and playlist entries onto it, and deletes their files, so it
// asks twice.
// song" and also undoes the link that made the copies one song. Merging
// keeps one copy, moves the others' likes, plays and playlist entries onto
// it, and deletes their files, so it asks twice.
//
// Except for one recording filling several of an album's slots (class
// mismatch, #6184), where a merge is the wrong answer: it keeps one copy's
// title whether or not it is the audio's, and fetches nothing. There the
// operator says which song the recording is, or that they can't tell, and the
// mismatch), where a merge is the wrong answer: it keeps one copy's
// title whether or not it is the audio's, and fetches nothing. There an
// admin says which song the recording is, or that they can't tell, and the
// group settles as the resolver would have: copies in other songs' slots are
// removed, the release they came from is set aside, and the album is fetched
// again. Operator, 2026-10-21: "for some of these I don't have any idea".
// again.
type Tab = DuplicatesView | 'resolved';
const fromUrl = page.url.searchParams.get('view');
@@ -63,7 +63,7 @@
let confirmingMerge = $state<string | null>(null);
let merging = $state<string | null>(null);
// Per wrong-slot group: the copy whose title the recording is, absent when
// the operator can't tell, and the same two-click confirm.
// an admin can't tell, and the same two-click confirm.
let slotPick = $state<Record<string, string>>({});
let confirmingRefetch = $state<string | null>(null);
let refetching = $state<string | null>(null);
@@ -153,7 +153,7 @@
return title.toLowerCase().replace(/&/g, 'and').replace(/[^\p{L}\p{N}]/gu, '');
}
// The copies that go: every one when the operator can't tell, else those
// The copies that go: every one when an admin can't tell, else those
// under another title. A copy under the picked title is the song held twice,
// and the next sweep merges it.
function refetchRemoves(g: AdminDuplicateGroup): AdminDuplicateMember[] {
@@ -198,8 +198,8 @@
}
// What the match rests on, said outright: the copies' sizes and lengths sit
// beside them, and an operator reading only those took the match for a guess
// made from them (2026-10-20, #6168).
// beside them, and read alone they make the match look like a guess made
// from them.
function evidence(g: AdminDuplicateGroup): string {
if (g.tier === 'exact') {
return 'Matched on the audio itself: these files hold the same audio data, byte for byte, once their tags are set aside.';
@@ -209,9 +209,10 @@
// The same audio under different titles means at least one file's tags are
// wrong, and the recording the other title names may not be in the library at
// all. #3885: "WWW" was a second copy of the instrumental, and the vocal was
// missing with nothing to say so. Savant's Mortals held one recording as 16
// of its tracks, each cut to its own song's length (#6169). An acoustic match
// all: a file titled "WWW" can be a second copy of "WWW (instrumental)",
// with the vocal missing and nothing to say so, and one recording can fill
// many of an album's tracks, each cut to its own song's length. An acoustic
// match
// spans encodings, where a "Remastered" suffix is routine rather than a lie,
// so there it is raised only when the resolver found different songs on one
// album (class mismatch).
@@ -248,7 +249,7 @@
return path.slice(path.lastIndexOf('/') + 1);
}
// Hearing the copies settles what the fingerprints claim (#6168).
// Hearing the copies settles what the fingerprints claim.
function play(m: AdminDuplicateMember) {
const track: TrackRef = {
id: m.track_id,
@@ -592,8 +593,8 @@
{/if}
{#if keep}
<!-- The copy the merge will keep: the proposed one with the
rule that chose it, or the one the operator picked. The
badge follows the pick, as the merge does (#5604). -->
rule that chose it, or the one an admin picked. The
badge follows the pick, as the merge does. -->
<span
class="shrink-0 rounded-full bg-accent-tint px-2 py-0.5 text-xs text-accent-fg"
data-testid="survivor-badge"
@@ -647,7 +648,7 @@
/>
{/if}
<!-- Fingerprinting is set under Library (#5607); the line says where,
<!-- Fingerprinting is set under Library; the line says where,
since turning it back on is how an empty report gets out of that state. -->
<p class="text-xs text-text-secondary" data-testid="fingerprint-settings-link">
Fingerprinting is {prints?.enabled === false ? 'off' : 'on'}. It's set under
@@ -142,7 +142,7 @@ describe('admin duplicates', () => {
expect(history).toEqual(['2 likes · 14 plays', 'no likes or plays']);
});
// Size and length come from the shared formatters (M505).
// Size and length come from the shared formatters.
test('each copy shows its format, size and length', () => {
const group = response().groups[0];
group.members = [member('www-01'), member('www-02', { file_size: 812_000, duration_sec: 3665 })];
@@ -177,7 +177,7 @@ describe('admin duplicates', () => {
expect(text(screen.getByTestId('duplicate-tier'))).toBe('Same music · 96% match');
});
// The operator took the match for a guess from size and length (#6168).
// Read alone, size and length make the match look like a guess.
test('each group says what the match rests on', () => {
const r = response();
r.groups.push({ ...r.groups[0], id: 'g-2', tier: 'acoustic', worst_bit_error_rate: 0.04 });
@@ -200,7 +200,7 @@ describe('admin duplicates', () => {
);
});
// #3885: identical audio titled "WWW" and "WWW (instrumental)". One file
// Identical audio titled "WWW" and "WWW (instrumental)". One file
// claimed to be the vocal and wasn't, and nothing said the vocal was missing.
describe('identical audio under different titles', () => {
function www() {
@@ -255,7 +255,7 @@ describe('admin duplicates', () => {
});
// Unless the resolver found different songs on one album: Savant's Mortals
// held one recording as 16 tracks, each cut to its own song's length (#6169).
// held one recording as 16 tracks, each cut to its own song's length.
test('an acoustic group the resolver found to be different songs says so', () => {
const r = www();
r.groups[0] = { ...r.groups[0], tier: 'acoustic', worst_bit_error_rate: 0, class: 'mismatch' };
@@ -266,9 +266,9 @@ describe('admin duplicates', () => {
});
});
// One recording in several of an album's slots (#6184). A merge would keep
// One recording in several of an album's slots. A merge would keep
// one title whether or not it is the audio's and fetch nothing, so it is not
// offered: the operator says which song it is, or that they can't tell.
// offered: an admin says which song it is, or that they can't tell.
describe('one recording in several slots', () => {
function slots() {
const r = response();
@@ -336,7 +336,7 @@ describe('admin duplicates', () => {
});
// Switched off, the backlog never shrinks. "Still being fingerprinted" would
// promise work nothing is doing (#3913).
// promise work nothing is doing.
test('with fingerprinting off the page says so instead of promising progress', () => {
renderWith(
response({
@@ -416,7 +416,7 @@ describe('admin duplicates', () => {
expect(screen.getByRole('button', { name: 'Merge…' })).toBeTruthy();
});
// M498: the resolver's three outcomes are three tabs, each with its size.
// The resolver's three outcomes are three tabs, each with its size.
describe('tabs', () => {
test('each tab shows its count, and Across releases asks for that view', async () => {
renderWith(response());
@@ -21,11 +21,10 @@
import type { AdminMissingGroup, Want } from '#lib/api/types.js';
// Files the scan looked for and could not find, by folder, with where each
// folder's album stands on the wanted list (M504: this page and the
// Collection's list of missing wants were one subject on two pages). A
// folder's album stands on the wanted list. A
// missing file keeps its track row, its play history and its likes,
// because the file may come back: the scanner clears the mark by itself,
// and adopts the row if it returns under a new name (#2528). Nothing on
// and adopts the row if it returns under a new name. Nothing on
// this page deletes a track; its actions are the wanted list's own.
const PAGE_SIZE = 50;
@@ -41,7 +40,7 @@
const shown = $derived(groups.reduce((n, g) => n + g.tracks.length, 0));
const hasMore = $derived(offset + shown < total);
// What happens to these is set under Acquisition (#5607); the line above
// What happens to these is set under Acquisition; the line above
// the list says what it is now, since this is where the question comes up.
let policy = $state<ReacquisitionSettings | null>(null);
onMount(async () => {
@@ -14,7 +14,7 @@ vi.mock('#lib/api/admin.js', () => ({
unnameable_albums: 0
})
}));
// A folder's want is acted on here as on the wanted list (M504).
// A folder's want is acted on here as on the wanted list.
vi.mock('#lib/api/wanted.js', () => ({
removeWant: vi.fn().mockResolvedValue(undefined),
searchWant: vi.fn().mockResolvedValue({
@@ -148,7 +148,7 @@ describe('/collection/missing', () => {
// The deciding fact for whether a missing file is worth chasing.
// The page's lengths come from the shared formatter: an hour-long track
// reads 1:01:05, not 61:05 (M505).
// reads 1:01:05, not 61:05.
test('each track shows its length, hours and all', () => {
const long = structuredClone(response);
long.groups[1].tracks[0].duration_sec = 3665;
@@ -30,10 +30,10 @@
} from '#lib/admin/reports.js';
import type { QuarantineReason } from '#lib/api/types.js';
// Admin › Reports (#5606): every broken track in one queue, whether a
// Admin › Reports: every broken track in one queue, whether a
// listener flagged it or it failed to play on a client, one row per track
// with one set of actions. Before, the two were separate pages with their
// own delete paths and counts that disagreed with the rail.
// with one set of actions, so the delete path and the count agree with the
// rail.
const client = useQueryClient();
@@ -11,16 +11,15 @@
import ListContinuation from '#lib/components/ListContinuation.svelte';
import type { AdminSuspectGroup, AdminSuspectTrack, SuspectVerdict } from '#lib/api/types.js';
// Files whose names say they were ripped from a video (#5410): "(Official
// Video)", "[Audio]", "Visualizer", a reaction. Humanz was 62 of them in one
// folder, with junk disc numbers and a reaction video filed as a song.
// Files whose names say they were ripped from a video: "(Official
// Video)", "[Audio]", "Visualizer", a reaction.
//
// The duplicate resolver holds each one back from radio and the mixes, and
// merges it away where the library has a clean copy (M498 #5439). A marker
// merges it away where the library has a clean copy. A marker
// is a reason to look, not proof, so each row says what was done and offers
// the undo: "This one is fine" lets the track back for good. A rip's album
// stays wanted for a clean copy, searched for weekly and filed over the rip
// when it comes (#5524).
// when it comes.
const queryStore = createSuspectSourcesQuery();
const query = $derived($queryStore);
@@ -43,7 +42,7 @@
return out;
});
// The verdict the operator just set, shown at once while the list refetches.
// The verdict an admin just set, shown at once while the list refetches.
let changed = $state<Record<string, SuspectVerdict>>({});
let saving = $state<string | null>(null);
@@ -117,7 +117,7 @@ describe('Suspect sources page', () => {
expect(screen.queryByRole('button', { name: /more/i })).not.toBeInTheDocument();
});
// M498 #5439: a flagged track is held back from radio and the mixes, and the
// A flagged track is held back from radio and the mixes, and the
// operator can let it back.
test('This one is fine lets a held-back track back in', async () => {
mocked.mockReturnValue(
@@ -139,7 +139,7 @@ describe('Suspect sources page', () => {
expect(screen.getByRole('button', { name: 'Hold back again' })).toBeInTheDocument();
});
// #5524: a rip's album is wanted for a clean copy, and the row says when
// A rip's album is wanted for a clean copy, and the row says when
// one was last looked for.
test('shows that a clean copy is wanted, and when it was looked for', () => {
const t = track('Strobelite', 'Gorillaz - Strobelite (Official Video).mp3', ['music video']);
+1 -1
View File
@@ -91,7 +91,7 @@
const next = new Set(optimisticRequested);
next.add(r.mbid);
optimisticRequested = next;
// Surface the new request on /requests right away (+ start its poll) (#369).
// Surface the new request on /requests right away (+ start its poll).
queryClient.invalidateQueries({ queryKey: qk.myRequests() });
} catch {
// Swallow for v1: error toasts land in a later UX pass. The card stays
+2 -2
View File
@@ -21,7 +21,7 @@ vi.mock('#lib/api/catalogue.js', () => ({
createCatalogueSearchQuery: vi.fn()
}));
// SuggestionFeed reaches for the snooze surface too (#2375). These are
// SuggestionFeed reaches for the snooze surface too. These are
// stubbed here even though this page-level suite asserts nothing about
// snoozing: a factory-shaped module mock must export everything the
// component tree imports, or rendering the feed throws before any
@@ -40,7 +40,7 @@ vi.mock('#lib/api/requests.js', () => ({
vi.mock('#lib/api/client.js', () => apiClientMock());
// The page calls useQueryClient() to invalidate qk.myRequests() after a
// submit (#369); stub it so rendering doesn't require a real QueryClient and
// submit; stub it so rendering doesn't require a real QueryClient and
// we can assert the invalidation fires.
const queryClientMock = vi.hoisted(() => ({ invalidateQueries: vi.fn() }));
vi.mock('@tanstack/svelte-query', async (importOriginal) => {
+6 -7
View File
@@ -5,13 +5,12 @@
// Tab bar for the Library section. Mirrors Android's LibraryScreen
// (artists / albums / liked / history / playlists) — Playlists lives
// here so the operator can find their personal collection in one
// place rather than tracking a separate top-level route.
// here so a listener finds their personal collection in one place rather
// than tracking a separate top-level route.
// Genres and Years sit next to Albums — all three are ways of walking the
// same collection — rather than at the end beside the personal tabs (Liked,
// History, Playlists). NOTE: these two are web-only for now; Android's
// LibraryScreen has no equivalent, so the "mirrors Android" claim above is
// currently aspirational for this pair. Parity is an open call (#367).
// History, Playlists). These two are web-only: Android's LibraryScreen has
// no equivalent.
const tabs = [
{ href: '/library/artists', label: 'Artists' },
{ href: '/library/albums', label: 'Albums' },
@@ -20,8 +19,8 @@
{ href: '/library/liked', label: 'Liked' },
{ href: '/library/history', label: 'History' },
{ href: '/library/playlists', label: 'Playlists' },
// Moved out of Settings (#5597): a report on your listening, and the
// tracks you've hidden, belong with the rest of your library.
// A report on your listening, and the tracks you've hidden, belong with
// the rest of your library rather than in Settings.
{ href: '/library/listening', label: 'Your listening' },
{ href: '/library/hidden', label: 'Hidden' }
];
+3 -4
View File
@@ -5,10 +5,9 @@ import { redirect } from '@sveltejs/kit';
// (Artists, matching Android's LibraryScreen default). 308 = permanent
// + preserve method, so SPA navigations and direct loads behave the same.
//
// Drift #559: this was a +page.server.ts which DOES NOT run in
// production — the app is configured as adapter-static + ssr=false
// (see +layout.ts). +page.ts (universal load) runs client-side, which
// is what the SPA actually executes when a route is hit.
// A universal load (+page.ts), not +page.server.ts: the app is
// adapter-static with ssr=false (see +layout.ts), so a server load never
// runs.
export const load = () => {
throw redirect(308, '/library/artists');
};
+1 -1
View File
@@ -52,7 +52,7 @@
{:else if !query.isPending && total === 0}
<!-- Library folders are server config (library.scan_paths), not a
setting, so only an admin can act: they run a scan from Admin.
Everyone else is told whose job it is (#5604). -->
Everyone else is told whose job it is. -->
{#if user.value?.is_admin}
<EmptyState
title="No albums yet"
+2 -2
View File
@@ -27,8 +27,8 @@ afterEach(() => {
setUser(null);
});
// Library folders are server config, not a setting (#5604): the empty
// library no longer sends anyone to Settings.
// An empty library sends an admin to Admin to run a scan, and nobody to
// Settings.
describe('/library/albums with an empty library', () => {
test('an admin is sent to Admin to run a scan', () => {
setUser({ id: 'u1', username: 'root', is_admin: true } as User);
+1 -1
View File
@@ -50,7 +50,7 @@
{:else if !query.isPending && total === 0}
<!-- Library folders are server config (library.scan_paths), not a
setting, so only an admin can act: they run a scan from Admin.
Everyone else is told whose job it is (#5604). -->
Everyone else is told whose job it is. -->
{#if user.value?.is_admin}
<EmptyState
title="No artists yet"
+2 -2
View File
@@ -34,8 +34,8 @@
// Count-first by default because that's what the server returns and it's the
// right default: the head of this list is genuinely where you're going. But a
// real library runs to several hundred genres with a long tail of one-offs
// (391 / ~3.7 per track on the operator's), and at that size "I know roughly
// real library runs to several hundred genres with a long tail of
// one-offs, and at that size "I know roughly
// what it's called" needs A-Z as much as filtering does.
//
// View state only, not a query parameter — same as `filter` above. Neither is
+3 -3
View File
@@ -104,8 +104,8 @@ describe('/library/genres index', () => {
expect(screen.getByRole('link', { name: /^rock 2$/ })).toBeInTheDocument();
});
// #2468: the operator's real library is 391 genres at ~3.7 per track, so the
// count-first default buries anything you can already name. A–Z is the ask.
// A real library runs to hundreds of genres, so the count-first default
// buries anything you can already name.
test('A–Z sort reorders the list without mutating the source array', async () => {
const data = [
{ genre: 'Rock', track_count: 8974 },
@@ -207,7 +207,7 @@ describe('/library/genres drill-down', () => {
render(GenresPage);
await screen.findByText('One');
// No button (#5416): reaching the bottom of the grid loads the next page.
// No button: reaching the bottom of the grid loads the next page.
expect(screen.queryByRole('button', { name: /load more/i })).not.toBeInTheDocument();
await waitFor(() => {
io.scrollToEnd();
+1 -1
View File
@@ -95,7 +95,7 @@
{/if}
{#if !allEmpty}
<!-- One list at a time (#5416): stacked, a long Artists list that loads as
<!-- One list at a time: stacked, a long Artists list that loads as
you scroll would bury Albums and Tracks until every artist had loaded. -->
<TabStrip
bind:value={() => tab, (v) => (chosenTab = v)}
+1 -1
View File
@@ -66,7 +66,7 @@ function setup(opts: {
}
describe('liked library page', () => {
// #5416: one list at a time. Stacked, a long Artists list that loads as you
// One list at a time. Stacked, a long Artists list that loads as you
// scroll would bury Albums and Tracks.
test('tabs carry each count and show one list at a time', async () => {
setup({ artists: page([ar], 1), albums: page([al], 1), tracks: page([tr], 1) });
+1 -1
View File
@@ -166,7 +166,7 @@ describe('/library/years drill-down', () => {
render(YearsPage);
await screen.findByText('One');
// No button (#5416): reaching the bottom of the grid loads the next page.
// No button: reaching the bottom of the grid loads the next page.
expect(screen.queryByRole('button', { name: /load more/i })).not.toBeInTheDocument();
await waitFor(() => {
io.scrollToEnd();
+2 -2
View File
@@ -43,7 +43,7 @@
);
// The backdrop takes the cover's dominant colour, as Android's Now
// Playing does (#5592). The colour is held until the next cover's
// Playing does. The colour is held until the next cover's
// resolves, so a track change fades old to new rather than dipping to
// the plain background between them; a track with no cover clears it.
let tint = $state('transparent');
@@ -137,7 +137,7 @@
<!-- The column is as wide as the cover, and the cover as big as the
screen allows: the window's height less what the title and
controls beneath it need (26rem), never under 16rem, never over
52rem, never wider than the pane (#5592). -->
52rem, never wider than the pane. -->
<div
class="flex flex-col items-center gap-6"
style="width: min(100%, max(16rem, calc(100dvh - 26rem)), 52rem);"
+4 -3
View File
@@ -58,7 +58,7 @@ afterEach(() => vi.clearAllMocks());
describe('home Playlists section', () => {
test('renders 5 placeholder cards when no playlists exist', () => {
// For-You + Discover in the Playlists row, plus 3 in the dedicated
// Songs-like row (#1491) = 5 placeholders total.
// Songs-like row = 5 placeholders total.
render(Page);
const placeholders = screen.queryAllByTestId('playlist-placeholder-card');
expect(placeholders).toHaveLength(5);
@@ -131,7 +131,8 @@ describe('home Playlists section', () => {
created_at: '2026-05-04T00:00:00Z',
updated_at: '2026-05-04T00:00:00Z'
});
// Six generated mixes — the old carousel capped at 3; the dedicated row shows all.
// Six generated mixes — the old carousel capped at 3; the dedicated row
// shows all.
const owned = Array.from({ length: 6 }, (_, i) => makeSongsLike(`sl${i}`, `Songs like ${i}`));
(createPlaylistsQuery as unknown as ReturnType<typeof vi.fn>).mockImplementation(
(kind?: string) =>
@@ -154,7 +155,7 @@ describe('home Playlists section', () => {
});
test('renders secondary system kinds (deep_cuts / new_for_you) in the Playlists row', () => {
// Operator backflow 2026-06-01: web Home surfaces the 5 secondary
// Web Home surfaces the 5 secondary
// system kinds when generated. No placeholders for them — they
// depend on library shape, so missing means "not enough data."
const makePlaylist = (id: string, variant: string, name: string): Playlist => ({
+5 -5
View File
@@ -1,14 +1,14 @@
import { redirect } from '@sveltejs/kit';
// /playlists (list) moved to /library/playlists on 2026-06-01 as part of
// the nav restructure (Scribe 518). The detail route /playlists/[id]
// /playlists (the list) redirects to /library/playlists. The detail route
// /playlists/[id]
// still lives here at /routes/playlists/[id]/+page.svelte — that URL
// matches the server API shape and is unchanged.
// 308 = permanent + preserve method; old bookmarks land on the new URL.
//
// Drift #559: this was a +page.server.ts which DOES NOT run in
// production (adapter-static + ssr=false, see +layout.ts). +page.ts
// universal load runs client-side and IS what the SPA executes.
// A universal load (+page.ts), not +page.server.ts: the app is
// adapter-static with ssr=false (see +layout.ts), so a server load never
// runs.
export const load = () => {
throw redirect(308, '/library/playlists');
};
+6 -6
View File
@@ -52,7 +52,7 @@
const moved = cur.splice(fromPos, 1)[0];
cur.splice(clamped, 0, moved);
// Show the new order on drop rather than after the round trip, so the
// dragged row lands in its slot at once (#5393). Positions are
// dragged row lands in its slot at once. Positions are
// renumbered the way the server renumbers them; the invalidate below
// replaces this with the server's copy either way.
const previous = playlistQuery.data;
@@ -81,8 +81,8 @@
}
// Every entry that can be played, in playlist order. playlistTrackToRef
// drops both kinds of dead entry, removed tracks and missing files
// (#2527), so neither is ever queued.
// drops both kinds of dead entry, removed tracks and missing files,
// so neither is ever queued.
function playable(data: PlaylistDetail): { refs: TrackRef[]; positions: number[] } {
const refs: TrackRef[] = [];
const positions: number[] = [];
@@ -97,7 +97,7 @@
}
function startQueue(data: PlaylistDetail, tracks: TrackRef[], startIdx: number) {
// #968: a system playlist played from its detail page is tagged with its
// A system playlist played from its detail page is tagged with its
// source (so play_started advances the rotation, matching the home tile and
// the Android detail screen) and gets the self-heal closure so a stale
// snapshot re-pulls on total failure.
@@ -180,7 +180,7 @@
}
}
// --- System-playlist refresh (#411 R2: generic by-kind) ---
// --- System-playlist refresh (generic by-kind) ---
let refreshingSystem = $state(false);
async function onRefreshSystem(variant: string) {
@@ -197,7 +197,7 @@
}
}
// --- #980: stale-view banner for an open system-playlist detail page ---
// --- Stale-view banner for an open system-playlist detail page ---
// The daily rebuild rotates the playlist id, so this page's cached data goes
// stale and can't be refetched in place (the old id 404s). Watch the global
// rebuild counter; when it advances while we're on a system playlist, offer a
@@ -35,7 +35,8 @@ vi.mock('#lib/player/store.svelte.js', () => ({
player: { current: undefined }
}));
// Cascade through PlaylistTrackRow's mocks (LikeButton + TrackMenu transitively).
// Cascade through PlaylistTrackRow's mocks (LikeButton + TrackMenu
// transitively).
vi.mock('#lib/api/likes.js', () => ({
createLikedIdsQuery: () => ({ subscribe: () => () => {}, data: { track_ids: [], album_ids: [], artist_ids: [] } }),
likeEntity: vi.fn(),
@@ -62,9 +63,9 @@ const ownDetail: PlaylistDetail = {
afterEach(() => vi.clearAllMocks());
describe('Playlist detail page', () => {
// A missing file (#2527) stays in the list but is never queued: the
// page used to build its queue with its own converter, which only
// skipped removed tracks.
// A missing file stays in the list but is never queued: the page builds
// its queue through playlistTrackToRef, which skips it as it skips a
// removed track.
test('Play queues every playable entry and skips a missing file', async () => {
const withMissing: PlaylistDetail = {
...ownDetail,
+1 -1
View File
@@ -48,7 +48,7 @@ describe('search albums overflow', () => {
expect(screen.getByRole('link', { name: /Kind of Blue/ })).toHaveAttribute('href', '/albums/al1');
});
// #5416: no button; reaching the end of the list loads the next page.
// No button; reaching the end of the list loads the next page.
test('scrolling to the end loads the next page', async () => {
const io = installIntersectionObserverMock();
const fetchNextPage = vi.fn();
@@ -40,7 +40,7 @@ describe('search artists overflow', () => {
expect(screen.getByRole('link', { name: /Miles Mosley/ })).toBeInTheDocument();
});
// #5416: no button; reaching the end of the list loads the next page.
// No button; reaching the end of the list loads the next page.
test('scrolling to the end loads the next page', async () => {
const io = installIntersectionObserverMock();
const fetchNextPage = vi.fn();
+1 -1
View File
@@ -60,7 +60,7 @@ describe('search tracks overflow', () => {
expect(playRadio).toHaveBeenCalledWith('t1');
});
// #5416: no button; reaching the end of the list loads the next page.
// No button; reaching the end of the list loads the next page.
test('scrolling to the end loads the next page', async () => {
const io = installIntersectionObserverMock();
const fetchNextPage = vi.fn();
+1 -1
View File
@@ -3,7 +3,7 @@
let { children } = $props<{ children: import('svelte').Snippet }>();
// Settings (#5595): one page per section down a left rail, laid out as
// Settings: one page per section down a left rail, laid out as
// the Collection is. Account is first and is where /settings lands. The
// admin's settings are a separate area (/admin) a listener never sees.
const items = [
+2 -2
View File
@@ -1,7 +1,7 @@
import { redirect } from '@sveltejs/kit';
// /settings has no page of its own: it opens on Account, the first section
// (#5595). A universal load, as the app is adapter-static with ssr off.
// /settings has no page of its own: it opens on Account, the first section.
// A universal load, as the app is adapter-static with ssr off.
export const load = () => {
throw redirect(308, '/settings/account');
};
+3 -3
View File
@@ -11,7 +11,7 @@
import SettingsGroup from '#lib/components/settings/SettingsGroup.svelte';
import SettingRow from '#lib/components/settings/SettingRow.svelte';
// Settings › Account (#5595), where /settings lands: the Android app,
// Settings › Account, where /settings lands: the Android app,
// the profile, the password and the devices signed in.
const queryClient = useQueryClient();
@@ -22,8 +22,8 @@
// Profile -------------------------------------------------------------------
// The form is filled from what is stored before it can be saved, and a
// save sends only what changed (#5596): it used to start blank, and a
// blank field clears that field on the server.
// save sends only what changed: a blank field clears that field on the
// server.
let stored = $state<MyProfile | null>(null);
let loadFailed = $state(false);
@@ -41,8 +41,8 @@ describe('Settings › Account', () => {
expect(screen.getByRole('button', { name: /save profile/i })).toBeDisabled();
});
// #5596: the form used to start blank, and Save sent the blanks, which
// the server reads as "clear": one click wiped the name and the email.
// A blank field reads as "clear" on the server, so a form that sent blanks
// would wipe the name and the email in one click.
test('changing the display name sends the display name alone, never a blank email', async () => {
setup();
vi.mocked(updateProfile).mockResolvedValue({ ...alice, display_name: 'Al' });
@@ -22,9 +22,9 @@
import SettingsGroup from '#lib/components/settings/SettingsGroup.svelte';
import SettingRow from '#lib/components/settings/SettingRow.svelte';
// Settings › Connections (#5595): what reaches this account from outside
// Settings › Connections: what reaches this account from outside
// the web app. ListenBrainz leads with one line saying whether plays are
// going out (#189); the Subsonic apps' two ways to sign in follow.
// going out; the Subsonic apps' two ways to sign in follow.
const queryClient = useQueryClient();
const button =
@@ -80,7 +80,7 @@
}
}
// Subsonic password (#5026) -------------------------------------------------
// Subsonic password -------------------------------------------------
// null until the status loads. The value is only held right after
// Generate, for the same reason as the API token.