MHSanaei 要求拆分 3x-ui PR,Node Routing 须先讨论设计

MHSanaei 要求将 3x-ui PR #7109 拆为入站列表排序、安全修改入站 ID、Node Routing 三个 PR;前两项可独立审查,Node Routing 须先开展设计讨论。他指出当前提案中,master 使用带 n<id>- 前缀的入站 tag、节点使用裸 tag,可能导致规则无法命中;一次推送会遗漏离线、新增或恢复的节点,页面也无法显示策略漂移;节点管理员看不到或移除不了所存策略;控制开关只在浏览器执行,关闭后既不阻止 API 推送,也不撤回已有策略。这些意见针对尚未合并的提案。

作者原文

Thanks for the work on this, and for turning the review findings around so quickly.

This PR carries three independent features, and they cannot be reviewed, tested or merged as one unit. Please split it into three PRs:

  1. Inbound list order — the inboundListOrder setting and its General tab control.
  2. Safe inbound ID change — ChangeInboundTag, the pre-flight check, ChangeInboundIdModal, and the toast fix that belongs to it.
  3. Node Routing — the new page, PushRoutingRules, the master_routing_rules column and the merge into GetXrayConfig.

The first two are small, reuse paths the panel already has, and can be looked at on their own right away.

Node Routing is a new product surface, so it needs its own PR and a design discussion before code review. The open questions from the review are still there:

  • A rule written on the master matches on the n<id>- prefixed inbound tags the operator sees there, but the node's Xray uses the bare tag, so such a rule silently matches nothing.
  • Delivery is one-shot: a node that is offline during the push, added later, or restored from a backup never gets the policy, and the page cannot show that drift.
  • The policy lives on the node in a setting the node's own admin can neither see nor remove.
  • The "Node routing control" switch is only enforced in the browser; turning it off neither blocks an API push nor reverts what was already pushed.

Each PR should be based on current main (this branch is behind and has conflicts by now) and carry only its own i18n keys, endpoints.ts entries and generated files. I'll close this one once the split PRs are open.