[GH-ISSUE #4997] [Feature]: Filter by Nodes #3514

Closed
opened 2026-10-31 20:32:58 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @artslay on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4997

I have several nodes and would like to sort then in the Clients tab.

Describe the solution you'd like

Add the "Nodes "option to the filters in the clients layout.

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @artslay on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4997 ### Is your feature request related to a problem? I have several nodes and would like to sort then in the Clients tab. ### Describe the solution you'd like Add the "Nodes "option to the filters in the clients layout. ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2026):

Thanks for the feature request!

Current state (as of the code):

The Clients tab already supports filtering by individual inbounds (the "Inbounds" filter in the filter drawer). However, there is no way to filter or sort clients by Node (i.e., a remote 3x-ui panel instance registered via the multi-node feature) as a single unit.

Internally, each inbound has an optional nodeId field (database/model/model.go), and clients are linked to inbounds via a junction table. So the data relationship exists — the Clients page just doesn't expose a node-level grouping/filter yet.

What this feature would require:

  1. Backend — add a nodeId (or nodeIds) parameter to ClientPageParams in web/service/client.go and filter the inbound join accordingly.
  2. Frontend — add a "Node" selector to the filter drawer (frontend/src/pages/clients/FilterDrawer.tsx) alongside the existing Inbounds filter, fetching the node list from the API.
  3. Optionally, add a "sort by node" option to the sort dropdown (9 options already exist in ClientsPage.tsx).

Note: This is different from issue #4348, which requests drag-and-drop reordering of inbounds for subscription output order.

If you'd like to implement this yourself, the main files to touch are:

  • web/service/client.go — ClientPageParams struct and the ListPaged filtering logic
  • web/controller/client.go — bind the new param
  • frontend/src/pages/clients/FilterDrawer.tsx — add the Node filter UI
  • frontend/src/schemas/client.ts — extend the filter schema if needed
<!-- gh-comment-id:4637687809 --> @github-actions[bot] commented on GitHub (Jun 6, 2026): Thanks for the feature request\! **Current state (as of the code):** The **Clients tab** already supports filtering by individual *inbounds* (the "Inbounds" filter in the filter drawer). However, there is no way to filter or sort clients by **Node** (i.e., a remote 3x-ui panel instance registered via the multi-node feature) as a single unit. Internally, each inbound has an optional `nodeId` field (`database/model/model.go`), and clients are linked to inbounds via a junction table. So the data relationship exists — the Clients page just doesn't expose a node-level grouping/filter yet. **What this feature would require:** 1. **Backend** — add a `nodeId` (or `nodeIds`) parameter to `ClientPageParams` in `web/service/client.go` and filter the inbound join accordingly. 2. **Frontend** — add a "Node" selector to the filter drawer (`frontend/src/pages/clients/FilterDrawer.tsx`) alongside the existing Inbounds filter, fetching the node list from the API. 3. Optionally, add a "sort by node" option to the sort dropdown (9 options already exist in `ClientsPage.tsx`). **Note:** This is different from issue #4348, which requests drag-and-drop reordering of inbounds for subscription output order. If you'd like to implement this yourself, the main files to touch are: - `web/service/client.go` — `ClientPageParams` struct and the `ListPaged` filtering logic - `web/controller/client.go` — bind the new param - `frontend/src/pages/clients/FilterDrawer.tsx` — add the Node filter UI - `frontend/src/schemas/client.ts` — extend the filter schema if needed
Author
Owner

@MHSanaei commented on GitHub (Jun 12, 2026):

Implemented in 4573c49a. Both pages can now be narrowed by node:

  • Inbounds page: a node selector in the toolbar (All / Local (this panel) / each node) filters the list. It only appears when the panel actually has nodes or node-attached inbounds.
  • Clients page: a "Nodes" multi-select in the filter drawer — pick one or more nodes (or Local) and the list shows only clients attached to inbounds hosted there. It combines with the existing inbound/protocol/group filters and is persisted like the other filters.

Will be in the next release.

<!-- gh-comment-id:4688637509 --> @MHSanaei commented on GitHub (Jun 12, 2026): Implemented in 4573c49a. Both pages can now be narrowed by node: - **Inbounds page**: a node selector in the toolbar (All / Local (this panel) / each node) filters the list. It only appears when the panel actually has nodes or node-attached inbounds. - **Clients page**: a "Nodes" multi-select in the filter drawer — pick one or more nodes (or Local) and the list shows only clients attached to inbounds hosted there. It combines with the existing inbound/protocol/group filters and is persisted like the other filters. Will be in the next release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3514
No description provided.