From 72641c0fb67b37eab768e48a8b2a51ba98df6bbb Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Sun, 7 Dec 2025 13:09:50 +0100 Subject: [PATCH] Fix button states to prevent actions during ongoing operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - FileUpload: Disable "Choose PES File" button during upload - ProgressMonitor: Disable Start/Resume/Trace buttons during pattern deletion - Add disabled states with opacity-50 and cursor-not-allowed styling Prevents race conditions and confusing UI states when operations are in progress. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/components/FileUpload.tsx | 4 ++-- src/components/ProgressMonitor.tsx | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/FileUpload.tsx b/src/components/FileUpload.tsx index 3a9df8e..d959594 100644 --- a/src/components/FileUpload.tsx +++ b/src/components/FileUpload.tsx @@ -178,12 +178,12 @@ export function FileUpload({ onChange={handleFileChange} id="file-input" className="hidden" - disabled={!pyodideReady || isLoading || patternUploaded} + disabled={!pyodideReady || isLoading || patternUploaded || isUploading} />