Skip to content

fix(ui): hold scan feedback for one second - #57

Merged
terrytan95 merged 1 commit into
mainfrom
terry-min-scan-feedback
Jul 28, 2026
Merged

fix(ui): hold scan feedback for one second#57
terrytan95 merged 1 commit into
mainfrom
terry-min-scan-feedback

Conversation

@terrytan95

Copy link
Copy Markdown
Owner

Keeps the manual scan processing state visible long enough for users to perceive that the action was accepted. The shared refresh flow measures elapsed scan time and delays only the terminal success or error state when manual status feedback is requested.

Key Changes

  • Enforce a one-second minimum processing state for manual scans
  • Preserve immediate completion when the actual scan already exceeds one second
  • Apply the same timing to success and failure without delaying startup scans

Verification & Testing

  • yarn typecheck
  • yarn test src/InventoryWorkspace.test.tsx --run

Impact & Risk

None.

@terrytan95
terrytan95 merged commit 0a49540 into main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant