Skip to content

fix(verify): handle invalid capture filter errors - #1224

Open
harshgupta6789 wants to merge 1 commit into
Greenstand:masterfrom
harshgupta6789:fix/936-verify-capture-filter-errors
Open

fix(verify): handle invalid capture filter errors#1224
harshgupta6789 wants to merge 1 commit into
Greenstand:masterfrom
harshgupta6789:fix/936-verify-capture-filter-errors

Conversation

@harshgupta6789

Copy link
Copy Markdown

Description

  • Added numeric validation for Capture ID and comma-separated Grower ID filters.
  • Added inline helper text for invalid filter values.
  • Wrapped capture list and count API calls in try/catch/finally blocks.
  • Reset captures/counts safely when API errors occur.

Issue(s) addressed

  • Prevent invalid alphanumeric Capture ID and Grower ID filters from submitting

  • Clear loading state when capture list/count requests fail

  • Apply the same error handling to Verify capture loading/count requests

  • Resolves Verify: The captures hang when an error happens. #936

What kind of change(s) does this PR introduce?

  • Bug fix

Issue

  • Current behaviour: Submitting invalid alphanumeric values in the Capture ID or Grower ID filters can cause the captures/verify pages to stay stuck on a loading spinner when the API returns an error.

  • New behaviour: Invalid Capture ID and Grower ID filter values are validated before submitting. API errors while loading captures or capture counts are also handled so the loading spinner is cleared and the page does not hang.

Breaking change

No

Screenshot 2026-07-03 at 12 19 03 PM Screenshot 2026-07-03 at 12 19 33 PM Screenshot 2026-07-03 at 12 20 19 PM

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.

Verify: The captures hang when an error happens.

1 participant