From 05598224e4d5532d2e2a3a7e5d3b5411240b1024 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Fri, 13 Mar 2026 08:27:47 -0400 Subject: [PATCH] fix(12-02): replace removed Scan() import with ScanAllLibraries() Scan() wrapper was deleted in Phase 11 but config-page.ts and library-manager.ts still imported it. Use ScanAllLibraries() for soft scan since multi-library model scans all libraries. --- frontend/src/components/config-page/config-page.ts | 3 +-- frontend/src/components/library-manager/library-manager.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/config-page/config-page.ts b/frontend/src/components/config-page/config-page.ts index 7c1d4fa..1de91ed 100644 --- a/frontend/src/components/config-page/config-page.ts +++ b/frontend/src/components/config-page/config-page.ts @@ -3,7 +3,6 @@ import { customElement, state } from 'lit/decorators.js'; import { repeat } from 'lit/directives/repeat.js'; import { EventsOn } from '@runtime/runtime'; import { - Scan, FullRescan, CancelCurrentScan, CancelAllScans, @@ -1427,7 +1426,7 @@ export class ConfigPage extends LitElement { private handleSoftScan = async (): Promise => { try { - await Scan(); + await ScanAllLibraries(); } catch (err) { this.statusMessage = 'Scan completed with errors.'; diff --git a/frontend/src/components/library-manager/library-manager.ts b/frontend/src/components/library-manager/library-manager.ts index f7f7b25..00d2cae 100644 --- a/frontend/src/components/library-manager/library-manager.ts +++ b/frontend/src/components/library-manager/library-manager.ts @@ -2,7 +2,6 @@ import { LitElement, html, css, nothing } from 'lit'; import { customElement, state } from 'lit/decorators.js'; import { EventsOn } from '@runtime/runtime'; import { - Scan, FullRescan, ScanAllLibraries, } from '@go/library/Library'; @@ -812,7 +811,7 @@ export class LibraryManager extends LitElement { private handleSoftScan = async (): Promise => { try { - await Scan(); + await ScanAllLibraries(); } catch (err) { this.statusMessage = 'Scan completed with errors.';