Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 6b6e839e437cfc5e4e20bad4bc3e14ed9a5085ad
parent 586c1ebc57d7befa1fd66538401895fe590b6fa3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 11 Nov 2026 09:03:19 -0500

local media: the import job says what makes records searchable today

Review fix 1. The job log pointed at "Update searchable library", a button
left for slice 4. It now says the imported recordings are searchable after the
next index build (`pnpm ops build-index`, or a site build). The job test
asserts the new line and that the old one is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Diffstat:
Mcommon/controller/localMediaImport.test.ts | 4+++-
Mcommon/controller/localMediaImportJob.ts | 3++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/common/controller/localMediaImport.test.ts b/common/controller/localMediaImport.test.ts @@ -163,7 +163,9 @@ test("managed job owns its queued selection, reports progress, and declares inge await job.fn(line => log.push(line), new AbortController().signal, snap => progress.push(snap.current!), jobContext()); assert.deepEqual(progress, [0, 1]); assert.ok(log.some(line => line.includes("Imported 1"))); - assert.ok(log.some(line => line.includes('Click "Update searchable library"'))); + // Points at what exists today (the index build), never slice 4's button. + assert.ok(log.some(line => line.includes("searchable after the next index build (`pnpm ops build-index`")), log.join("\n")); + assert.ok(!log.some(line => line.includes("Update searchable library"))); assert.ok(log.every(line => !line.includes(f.source))); }); diff --git a/common/controller/localMediaImportJob.ts b/common/controller/localMediaImportJob.ts @@ -53,7 +53,8 @@ export function localMediaJobOptions(paths: Paths, slug: string, request: LocalM const occupied = result.records.filter(r => r.status === "occupied").length; const rejected = result.records.length - imported - occupied; onLog(`Imported ${imported}; already occupied ${occupied}; rejected ${rejected}; unprocessed ${selected.length - result.records.length}.`); - if (result.needsIndexUpdate) onLog("Import complete. Click \"Update searchable library\" on the Local media library page to make the imported recordings searchable on your selected site."); + // What works today: the records are searchable after the next index build. + if (result.needsIndexUpdate) onLog("Import complete. The imported recordings are searchable after the next index build (`pnpm ops build-index`, or a site build)."); // The existing managed-job completion hook requests a channel snapshot, // including on failure/cancellation. This job does not build/publish a site. if (result.cancelled) { onLog("Import cancelled."); return; }