From f20b224ef5181c01d7cd29c2cee011828c47f9ae Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 26 Aug 2025 01:30:50 -0700 Subject: [PATCH] Basic show processing status in UI [ci skip] --- .../document-detail/document-detail.component.html | 10 +++++++--- .../document-card-large.component.html | 7 ++++++- .../document-card-small.component.html | 5 +++++ .../document-list/document-list.component.html | 5 +++++ src-ui/src/app/data/document.ts | 2 ++ 5 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index c926c82d9..7b179086b 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -1,4 +1,9 @@ + @if (document?.in_process) { + +
Processing... +
+ } @if (archiveContentRenderType === ContentRenderType.PDF && !useNativePdfViewer) { @if (previewNumPages) {
@@ -50,7 +55,7 @@
 Actions
- @@ -58,7 +63,7 @@  More like this -
@@ -90,7 +95,6 @@ }
-
diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html index ab9436f09..1d6f97e21 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html @@ -15,8 +15,13 @@ }
-
+
+ @if (document?.in_process) { + +
Processing... +
+ }
@if (document) { diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index b154324c7..09ab48d46 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -37,6 +37,11 @@ }
+ @if (document?.in_process) { + +
Processing... +
+ }

@if (document) { @if (displayFields.includes(DisplayField.CORRESPONDENT) && document.correspondent) { diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index c58d1ede1..4f380bee6 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -301,6 +301,11 @@ } @if (activeDisplayFields.includes(DisplayField.TITLE) || activeDisplayFields.includes(DisplayField.TAGS)) { + @if (d.in_process) { + +

Processing... + + } @if (activeDisplayFields.includes(DisplayField.TITLE)) {
{{d.title | documentTitle}} diff --git a/src-ui/src/app/data/document.ts b/src-ui/src/app/data/document.ts index 8aae31945..b7c7a9678 100644 --- a/src-ui/src/app/data/document.ts +++ b/src-ui/src/app/data/document.ts @@ -159,6 +159,8 @@ export interface Document extends ObjectWithPermissions { page_count?: number + in_process?: boolean + // Frontend only __changedFields?: string[] } -- 2.47.2