mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5524] [MERGED] feat(clients): bulk-set XTLS flow from the Adjust dialog #5913
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#5913
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/5524
Author: @rqzbeh
Created: 6/23/2026
Status: ✅ Merged
Merged: 6/24/2026
Merged by: @MHSanaei
Base:
main← Head:feat/bulk-client-flow-adjust📝 Commits (2)
fab06f0feat(clients): bulk-set XTLS flow from the Adjust dialog99e9978fix(clients): keep days/traffic write when bulk flow is ineligible📊 Changes
11 files changed (+360 additions, -31 deletions)
View changed files
📝
frontend/public/openapi.json(+3 -2)📝
frontend/src/hooks/useClients.ts(+3 -3)📝
frontend/src/pages/api-docs/endpoints.ts(+2 -2)📝
frontend/src/pages/clients/ClientBulkAdjustModal.tsx(+22 -4)📝
frontend/src/pages/clients/ClientsPage.tsx(+2 -2)📝
frontend/src/schemas/client.ts(+2 -1)📝
internal/web/controller/client.go(+2 -1)📝
internal/web/service/client_bulk.go(+102 -14)➕
internal/web/service/client_bulk_flow_test.go(+217 -0)📝
internal/web/service/sync_scale_postgres_test.go(+1 -1)📝
internal/web/translation/en-US.json(+4 -1)📄 Description
Summary
Add a "Set flow" dropdown to the bulk Adjust dialog so an admin can set or clear the XTLS flow on all selected clients at once, alongside the existing days/traffic adjustments.
Why
Flow can already be set per client in the credential tab, but there was no way to change it for many clients at once. Admins migrating inbounds to XTLS Vision (or away from it) had to edit clients one by one. This reuses the existing bulk-adjust path to make it a single action.
The dropdown is empty by default (saving has no effect on flow). Options:
Type of change
Areas affected
How was this tested?
internal/web/service/client_bulk_flow_test.go:go test ./internal/web/service ./internal/web/controller— all pass (363).npm run lint,npm run typecheckpass;npm run genproduces no diff (codegen gate clean).Screenshots / recordings
Breaking changes
None. Flow rides the existing inbound-settings →
SyncInboundpath (ClientRecord.Flow+client_inbounds.flow_override); no new endpoint, DB column, or migration. The/panel/api/clients/bulkAdjustrequest gains an optionalflowfield (omitted = unchanged). Setting a vision flow is gated byinboundCanEnableTlsFlow: ineligible inbounds are left untouched and reported as skipped; clearing is always allowed. A real flow change requests an xray restart (local) or a node reconcile (remote).Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheckpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.