mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6271] [MERGED] feat(routing): add client picker to user rules #6207
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#6207
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/6271
Author: @ZaneL1u
Created: 8/20/2026
Status: ✅ Merged
Merged: 8/22/2026
Merged by: @MHSanaei
Base:
main← Head:feat/routing-user-picker📝 Commits (4)
5760d39feat(routing): add client picker to user rules994200efeat(routing): polish user picker states75fdc6aMerge branch 'main' into feat/routing-user-picker39359ccfix(routing): keep custom user identifiers📊 Changes
16 files changed (+206 additions, -4 deletions)
View changed files
➕
frontend/src/api/queries/useClientOptions.ts(+33 -0)📝
frontend/src/pages/xray/routing/RuleFormModal.tsx(+36 -1)📝
frontend/src/test/rule-form-preserve-fields.test.tsx(+98 -3)📝
internal/web/translation/ar-EG.json(+3 -0)📝
internal/web/translation/en-US.json(+3 -0)📝
internal/web/translation/es-ES.json(+3 -0)📝
internal/web/translation/fa-IR.json(+3 -0)📝
internal/web/translation/id-ID.json(+3 -0)📝
internal/web/translation/ja-JP.json(+3 -0)📝
internal/web/translation/pt-BR.json(+3 -0)📝
internal/web/translation/ru-RU.json(+3 -0)📝
internal/web/translation/tr-TR.json(+3 -0)📝
internal/web/translation/uk-UA.json(+3 -0)📝
internal/web/translation/vi-VN.json(+3 -0)📝
internal/web/translation/zh-CN.json(+3 -0)📝
internal/web/translation/zh-TW.json(+3 -0)📄 Description
Summary
usercriterion with a searchable tag-style multi-select.Why
Typing client identifiers by hand is error-prone and inconsistent with the neighboring inbound-tag picker. This change gives user-based routing rules the same direct-selection workflow while reusing the existing clients endpoint, without removing support for HTTP/Mixed or raw-template users that are not client records.
This PR intentionally covers only client/user selection. It does not add client-group routing support.
Refs #6237
Type of change
Areas affected
How was this tested?
userarray, and preserve pre-existing values absent from the current client list.GOFLAGS=-p=1 make verifysuccessfully, including:Screenshots / recordings
N/A — this changes the existing field interaction without changing the surrounding layout; the selection and serialization behavior is covered by the component regression test.
Breaking changes
None.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.