Skip to content

Enhance: Improve loading UX by disabling submit button during scan#69

Open
Khushi5623 wants to merge 5 commits into
Stanzin7:masterfrom
Khushi5623:enhance-loading-ux
Open

Enhance: Improve loading UX by disabling submit button during scan#69
Khushi5623 wants to merge 5 commits into
Stanzin7:masterfrom
Khushi5623:enhance-loading-ux

Conversation

@Khushi5623
Copy link
Copy Markdown

Changes Made

  • Disabled scan submit button while scanning is in progress
  • Re-enabled button after scan completes or fails
  • Covered all cases: success, error, timeout, and network failure

Problem

Previously, users could trigger multiple scan requests by clicking the submit button multiple times during an ongoing scan. This could lead to duplicate requests and poor user experience.

Solution

Added logic to disable the submit button during scanning and re-enable it once the process completes or fails.

Impact

  • Prevents duplicate scan requests
  • Improves user experience
  • Adds professional loading behavior
  • Ensures consistent UI state across all scenarios

@Stanzin7
Copy link
Copy Markdown
Owner

Stanzin7 commented Apr 6, 2026

@Khushi5623 can you upload a reference screenshot of before and after for a faster review. Second thing please make sure the npm audit is run and make sure all the checks are passing above.

@Stanzin7 Stanzin7 added enhancement New feature or request frontend labels Apr 6, 2026
@sapnilbiswas
Copy link
Copy Markdown
Collaborator

@Khushi5623 contains conflict and please fix the failed tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants