From 9a22dc1c2b0dcbe777b55744a964b3258d83e872 Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Tue, 17 Nov 2026 06:59:36 -0700 Subject: [PATCH 1/2] Show the Validating... indicator during the form's initial validation On large forms the load-time validation of every record kept the submit buttons disabled with no indicator, because the indicator was suppressed until the form finished loading. --- ehr/resources/web/ehr/panel/DataEntryPanel.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ehr/resources/web/ehr/panel/DataEntryPanel.js b/ehr/resources/web/ehr/panel/DataEntryPanel.js index 6aa76d8e3..eaa13aefc 100644 --- a/ehr/resources/web/ehr/panel/DataEntryPanel.js +++ b/ehr/resources/web/ehr/panel/DataEntryPanel.js @@ -116,11 +116,7 @@ Ext4.define('EHR.panel.DataEntryPanel', { }, onValidationStart: function(){ - // Suppress the indicator during initial form load/background reconciliation. - if (!this.hasStoreCollectionLoaded || !this.storeCollection || !this.storeCollection.hasLoaded){ - return; - } - + // A no-op until the panel is built; onStoreCollectionInitialLoad shows the indicator for a validation already in flight. this.validationInProgress = true; this.setValidationIndicatorVisible(true); }, @@ -337,7 +333,8 @@ Ext4.define('EHR.panel.DataEntryPanel', { xtype: 'toolbar', dock: 'bottom', itemId: 'validationIndicator', - hidden: true, + // The initial load's validation of every record is usually still running here, and the submit buttons wait on it + hidden: !(this.storeCollection.validationRequestsInFlight > 0), border: false, plain: true, style: 'background-color: transparent; padding: 12px 0 0 0;', From fe272806b13dafc2c959f3a1d01470fb3f9b5758 Mon Sep 17 00:00:00 2001 From: Marty Pradere Date: Tue, 17 Nov 2026 07:20:48 -0700 Subject: [PATCH 2/2] Drop stale note that the Validating indicator stays hidden during form load --- .../src/org/labkey/test/tests/ehr/AbstractEHRTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java b/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java index e81411a9a..b556aa7c0 100644 --- a/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java +++ b/ehr/test/src/org/labkey/test/tests/ehr/AbstractEHRTest.java @@ -1160,10 +1160,9 @@ private boolean waitForValidationToSettleWith(BooleanSupplier settled, int timeo } /** - * Whether the form has finished reporting: no server validation outstanding and no open grid editor. - * StoreCollection counts validation requests itself, and DataEntryPanel's rendered validating indicator cannot - * stand in for that count because it stays hidden through the form's initial load. An open editor counts because - * DataEntryErrorPanel skips the repaint entirely while one is up, leaving the summary at its pre-edit contents. + * Whether the form has finished reporting: no server validation outstanding (StoreCollection's own request count) + * and no open grid editor. An open editor counts because DataEntryErrorPanel skips the repaint entirely while one + * is up, leaving the summary at its pre-edit contents. * *

Not quiet when the form's scripting is not on the page. Callers reach this mid-navigation, and a wait that * cannot yet tell has to keep polling rather than read the silence as a form that is done.