Repository navigation
fix: focus invalid HTTP target field after validation failure - #3831
Merged
Richard Lundeen (richlundeen) merged 7 commits intoNov 11, 2026
Merged
Richard Lundeen (richlundeen) merged 7 commits into
Richard Lundeen (richlundeen) merged 7 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A stale HTTP request error can hide the current fractional-rate validation error and focus the wrong field because it is not cleared when metadata validation fails.
1 open issue
What changed in this PR
This PR addresses #3710 by improving keyboard focus and accessible validation feedback in the target-creation dialog.
Changes:
- Associates HTTPTarget HTTP 400 errors with the Http Request field and focuses it; other failures use a focused form-level alert.
- Clears stale request errors on edits and disables target-type changes during submission.
- Adds regression coverage for keyboard submission, field-error recovery, and HTTP 500 handling.
| File | Description |
|---|---|
| frontend/src/components/Parameters/ParameterField.tsx | Supports external validation messages and a multiline-control focus ref. |
| frontend/src/components/Config/CreateTargetDialog.tsx | Connects validation errors to focus handling and guards pending submissions. |
| frontend/src/components/Config/CreateTargetDialog.test.tsx | Tests error accessibility, focus, recovery, and disabled controls. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Richard Lundeen (richlundeen)
approved these changes
Nov 11, 2026
Richard Lundeen (richlundeen)
left a comment
Contributor
There was a problem hiding this comment.
Automated review completed. No blocking concerns remain. This review records source coverage; merging is handled separately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Http Requestfield after an HTTPTarget HTTP 400 and associate the server validation detail with that field.Testing
npm test -- --runInBand(172 suites, 4,039 tests passed)npm run test:coverage -- --runInBand(172 suites, 4,039 tests passed)npm run type-checknpm run lintnpm run builde2e/config.spec.tsande2e/accessibility.spec.ts(30 tests passed)Issue: #3710
Fixes #3710