M401: AcoustID recording-id lookup #137

Merged
bvandeusen merged 5 commits from dev into main 2026-10-07 09:50:12 -04:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit e8eee55325 - Show all commits
+2 -2
View File
@@ -162,7 +162,7 @@
<button type="button" class="underline hover:no-underline" onclick={load}>Try again</button> <button type="button" class="underline hover:no-underline" onclick={load}>Try again</button>
</p> </p>
{:else if overview === null} {:else if overview === null}
<p class="text-sm text-text-secondary">Loading…</p> <p class="text-sm text-text-secondary">Loading AcoustID settings…</p>
{:else} {:else}
{#if overview.status.problem} {#if overview.status.problem}
<p class="text-sm text-action-destructive" data-testid="acoustid-problem"> <p class="text-sm text-action-destructive" data-testid="acoustid-problem">
@@ -312,7 +312,7 @@
).toLocaleString()}) ).toLocaleString()})
</summary> </summary>
{#if unsettled === null} {#if unsettled === null}
<p class="mt-2 text-sm text-text-secondary">Loading…</p> <p class="mt-2 text-sm text-text-secondary">Loading tracks…</p>
{:else} {:else}
<ul class="mt-2 divide-y divide-border text-sm" data-testid="acoustid-unsettled"> <ul class="mt-2 divide-y divide-border text-sm" data-testid="acoustid-unsettled">
{#each unsettled as t (t.track_id)} {#each unsettled as t (t.track_id)}
@@ -29,7 +29,8 @@ vi.mock('$lib/api/admin', () => ({
createSMTPConfigQuery: vi.fn(), createSMTPConfigQuery: vi.fn(),
updateSMTPConfig: vi.fn(), updateSMTPConfig: vi.fn(),
testSMTPConfig: vi.fn(), testSMTPConfig: vi.fn(),
// AcoustIDCard loads on mount; a never-settling read leaves it on "Loading…". // AcoustIDCard loads on mount; a never-settling read leaves it on its own
// "Loading AcoustID settings…", which the page's /loading…/i queries skip.
getAcoustID: vi.fn(() => new Promise(() => {})), getAcoustID: vi.fn(() => new Promise(() => {})),
updateAcoustIDSettings: vi.fn(), updateAcoustIDSettings: vi.fn(),
runAcoustIDLookup: vi.fn(), runAcoustIDLookup: vi.fn(),