From fa3acfe13fed94fde14461dbe59b4f9ccf33cc0f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:12:26 -0700 Subject: [PATCH] Sure sonar --- .../ocr-template-editor-zone-list.component.spec.ts | 4 ++-- .../ocr-template-editor.component.html | 9 +++++---- .../manage/ocr-templates/ocr-templates.component.html | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts index 32a21b0c8..875566d96 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor-zone-list/ocr-template-editor-zone-list.component.spec.ts @@ -73,8 +73,8 @@ describe('OcrTemplateEditorZoneListComponent', () => { expect( fixture.nativeElement.querySelectorAll( '[title="Combined with other zones"]' - ).length - ).toBe(2) + ) + ).toHaveLength(2) }) it('warns only for zones without a field and clears the warning when assigned', () => { diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index 54a645863..788d911b9 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -190,11 +190,11 @@ of {{ previewPageCount() ?? '?' }} -
+
-
+ }
@@ -229,6 +229,7 @@ (pointerup)="onOverlayPointerUp($event)" (pointercancel)="onOverlayPointerCancel($event)" (lostpointercapture)="onOverlayPointerCancel($event)" + aria-label="Zone overlay" i18n-aria-label > @for (zone of template.zones; track $index; let i = $index) { @if (zoneDisplayRect(i); as rect) { @@ -281,9 +282,9 @@
@if (!pageLoaded()) {
-
+ Loading page... -
+
} } @else { diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html index 834af215b..086493f47 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html @@ -23,7 +23,7 @@ @if (loading() && templates().length === 0) {
  • -
    + Loading...
  • }