mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6084] [MERGED] fix(inbounds): surface form validation errors #6077
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6077
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6084
Author: @narcotics0507
Created: 7/23/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @MHSanaei
Base:
main← Head:agent/inbound-form-validation-feedback📝 Commits (3)
f28e7d0inbounds: surface form validation errorsd8a7710Merge branch 'main' into agent/inbound-form-validation-feedbackb634fcdFix inbound form tab error navigation📊 Changes
2 files changed (+157 additions, -5 deletions)
View changed files
📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+51 -3)📝
frontend/src/test/inbound-form-modal.test.tsx(+106 -2)📄 Description
Summary
Why
After the React Hook Form migration in #5859, the inbound modal calls
methods.trigger()and returns immediately when field validation fails. If theinvalid field is on another tab, Save appears to do nothing: there is no toast
and the field error is not visible.
This change keeps the existing validation rules and payload path intact. It
uses the invalid callback from
handleSubmitto report the first field errorand reveal the relevant tab.
Type of change
Areas affected
How was this tested?
inbound with an invalid target, clicks Save, verifies that no update is sent,
checks the error toast, and confirms that the Security tab is selected.
reaches the existing update endpoint.
npm run lintnpm run typechecknpm test— 96 files and 889 tests passednpm run buildnpm run build-storybookgo build ./...in the official Go 1.26 Docker imageScreenshots / recordings
N/A — this is behavioral feedback in the existing modal, covered by the
component regression test; it does not change the static layout.
Breaking changes
None.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.