mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6959] feat(xray): drag to reorder DNS servers #6541
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#6541
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/6959
Author: @eric15342335
Created: 10/26/2026
Status: 🔄 Open
Base:
main← Head:claude/dns-draggable-ordering-da6918📝 Commits (1)
f9d355bfeat(xray): drag to reorder DNS servers📊 Changes
3 files changed (+161 additions, -14 deletions)
View changed files
📝
frontend/src/pages/xray/dns/DnsTab.tsx(+54 -10)📝
frontend/src/pages/xray/dns/useDnsColumns.tsx(+41 -2)📝
frontend/src/test/dns-tab.test.tsx(+66 -2)📄 Description
Summary
DNS servers on Xray Configs → DNS can now be reordered by dragging a row's grab handle, the same way as the Routing rules table. Each row's menu also gets Move up and Move down.
Why
Xray queries DNS servers in list order, but the DNS table only had Edit and Delete, so changing a server's priority meant deleting and re-adding servers.
Type of change
Areas affected
How was this tested?
frontend/src/test/dns-tab.test.tsx:dns.serversorder after the drop, with an object server's fields kept intact.npm run typecheck,npm run lintandnpm run format:checkpass. The Vitest unit and components projects pass: 186 files, 1922 tests.usePointerRowReorderhook, and the styles are Routing's.drag-handle/drop-*classes.XrayPageloadsRoutingTab.csstogether withDnsTab, so the DNS table gets those styles. The translation keys already exist, so no locale files changed.Screenshots / recordings
Breaking changes
None.
Checklist
go build ./...and the test suite pass locally. (No Go files changed. The Go binary compiled in the Docker build, but I didn't run the Go tests because there's no Go toolchain on this machine.)npm run lint,npm run typecheck, andnpm run buildpass.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.