mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5151] [MERGED] feat(routing): show tag (remark) in routing rules list #5796
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#5796
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/5151
Author: @aleskxyz
Created: 6/9/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei
Base:
main← Head:routing-inbound-remark-labels📝 Commits (5)
7583d46feat(routing): show tag (remark) in routing rules listb851366Merge branch 'main' into routing-inbound-remark-labelse50b8f2Merge branch 'main' into routing-inbound-remark-labels6878cc5Merge branch 'main' into routing-inbound-remark-labels7cb759efeat(inbounds): show "tag (remark)" consistently wherever an inbound is listed📊 Changes
16 files changed (+128 additions, -37 deletions)
View changed files
➕
frontend/src/lib/inbounds/label.ts(+12 -0)📝
frontend/src/pages/clients/BulkAttachInboundsModal.tsx(+2 -1)📝
frontend/src/pages/clients/BulkDetachInboundsModal.tsx(+2 -1)📝
frontend/src/pages/clients/ClientBulkAddModal.tsx(+2 -1)📝
frontend/src/pages/clients/ClientFormModal.tsx(+3 -2)📝
frontend/src/pages/clients/ClientInfoModal.tsx(+2 -1)📝
frontend/src/pages/clients/ClientsPage.tsx(+3 -2)📝
frontend/src/pages/clients/FilterDrawer.tsx(+2 -1)📝
frontend/src/pages/inbounds/clients/AttachClientsModal.tsx(+3 -2)📝
frontend/src/pages/inbounds/clients/AttachExistingClientsModal.tsx(+2 -1)📝
frontend/src/pages/xray/routing/CriterionRow.tsx(+2 -2)📝
frontend/src/pages/xray/routing/RouteTester.tsx(+6 -2)📝
frontend/src/pages/xray/routing/RuleCardList.tsx(+10 -2)📝
frontend/src/pages/xray/routing/RuleFormModal.tsx(+3 -8)📝
frontend/src/pages/xray/routing/helpers.ts(+53 -2)📝
frontend/src/pages/xray/routing/useRoutingColumns.tsx(+21 -9)📄 Description
Rules table and mobile cards showed raw inboundTag while the form already used remarks. Display "tag (remark)" when a remark exists; saved rules still store tags only.
Summary
Show inbound tags with their remark in the routing rules table and mobile cards (
tag (remark)), matching how inbounds are identified in the add/edit rule form. Saved routing rules are unchanged — they still store rawinboundTagvalues.Why
The rule form already lists inbounds by remark, but after saving a rule the table and mobile cards only showed the auto-generated tag (e.g.
in-443-tcp). That made it hard to tell which inbound a rule matched without cross-referencing the inbounds page.Completes the inbound remark labeling started in
61105c2bfor the rules list view.Type of change
Areas affected
How was this tested?
in-443-tcp (IR-VLESS-443).+Nchip with full list in tooltip.No new unit tests added (display-only change in routing helpers).
Screenshots / recordings
Breaking changes
None. Display labels only; routing config and Xray output are unchanged.
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.