Local non-commit evidence page for ICMD upload-state fixes and the previous dismissible mismatch-warning fix.
7. When ICMD is enabled, the user uploads a file and disables the ICMD switch while AI analysis is running. The modal can remain in analyzing state until the row is deleted or the modal is cancelled.
8. When the user opens the upload workflow from a locked HRC category, such as Lab Tests, ICMD can start analyzing and never complete.
The shared unified-file workflow now treats switch-off as an explicit cancellation of the ICMD outcome. If a late in-flight ICMD response resolves after the switch is disabled, the row is completed through the manual/non-ICMD path instead of applying the AI result.
Regression coverage also verifies that locked Lab Tests uploads still run ICMD inference and complete as ready entries.
Changed files:
useUnifiedFileWorkflow.js,
AddDocumentTypeModal.test.js
This recording was produced from a new MCP-controlled Chromium context
with Playwright recordVideo, then converted to MP4 with
ffmpeg in the PHP runtime container.
The patient-mismatch alert text overlapped the alert icon, and the close control did not dismiss the warning.
The alert now uses the native AntD alert spacing and native
closable behavior instead of custom padding/icon overrides.