[GH-ISSUE #5743] [Feature]: Add text search to node Select components #3993

Closed
opened 2026-10-31 20:36:23 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @jshir700 on GitHub (Jul 2, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5743

When managing many nodes, both the "Deploy To" dropdown in the add/edit inbound dialog and the node filter dropdown in the inbound list page only allow mouse-click selection. Typing on the keyboard does nothing, forcing users to scroll through the entire list to find a specific node. This becomes frustrating with 20+ nodes.

Describe the solution you'd like

Add showSearch to both node-related Select components so users can type to filter the list by node name:

1. Add/Edit Inbound Dialog — "Deploy To" field (frontend/src/pages/inbounds/form/InboundFormModal.tsx lines 540-552):

<Select
  showSearch                        // ← add this
  disabled={mode === 'edit'}
  placeholder={t('pages.inbounds.localPanel')}
  allowClear
  options={selectableNodes.map(n => ({
    value: n.id,
    label: `${n.name}${n.status === 'offline' ? ' (offline)' : ''}`,
    disabled: n.status === 'offline',
  }))}
/>

2. Inbound List Page — Node filter dropdown (frontend/src/pages/inbounds/list/InboundList.tsx lines 173-179):

<Select
  value={nodeFilter}
  onChange={(v) => setNodeFilter(v)}
  options={nodeFilterOptions}
  showSearch                        // ← add this
  popupMatchSelectWidth={false}
  aria-label={t('pages.clients.filters.nodes')}
/>

Both selects already populate label with the node name, so Ant Design's default showSearch behavior (filtering by label) works out of the box.

Alternatives you've considered

  • Adding filterOption manually — unnecessary since showSearch already defaults to filtering by label.
  • Virtual scrolling for long lists — would help with rendering performance but doesn't solve the core problem of finding a specific node by name.

Concrete use case

A user manages 30 proxy nodes across different regions (Tokyo, Singapore, Frankfurt, etc.). They need to deploy a new inbound to "法兰克福1-ARM1" — with the current dropdown they must scroll past 29 other nodes. With showSearch, they can type "法兰克福" or "frankfurt" and the list filters instantly.

Mockups, screenshots, or examples

Similar showSearch is already used correctly elsewhere in the codebase:

  • HostFormModal.tsx:168 — Host page inbound selector
  • GeneralTab.tsx:200 — Settings page
  • NodeFormModal.tsx:397 — Node form
  • FallbacksCard.tsx:74 — Inbound fallback selectors

Which parts of the panel would this affect?

Frontend (UI / panel pages)

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 @jshir700 on GitHub (Jul 2, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5743 ### Is your feature request related to a problem? When managing many nodes, both the "Deploy To" dropdown in the add/edit inbound dialog and the node filter dropdown in the inbound list page only allow mouse-click selection. Typing on the keyboard does nothing, forcing users to scroll through the entire list to find a specific node. This becomes frustrating with 20+ nodes. ### Describe the solution you'd like Add `showSearch` to both node-related `Select` components so users can type to filter the list by node name: **1. Add/Edit Inbound Dialog — "Deploy To" field** (`frontend/src/pages/inbounds/form/InboundFormModal.tsx` lines 540-552): ```tsx <Select showSearch // ← add this disabled={mode === 'edit'} placeholder={t('pages.inbounds.localPanel')} allowClear options={selectableNodes.map(n => ({ value: n.id, label: `${n.name}${n.status === 'offline' ? ' (offline)' : ''}`, disabled: n.status === 'offline', }))} /> ``` **2. Inbound List Page — Node filter dropdown** (`frontend/src/pages/inbounds/list/InboundList.tsx` lines 173-179): ```tsx <Select value={nodeFilter} onChange={(v) => setNodeFilter(v)} options={nodeFilterOptions} showSearch // ← add this popupMatchSelectWidth={false} aria-label={t('pages.clients.filters.nodes')} /> ``` Both selects already populate `label` with the node name, so Ant Design's default `showSearch` behavior (filtering by `label`) works out of the box. ### Alternatives you've considered - Adding `filterOption` manually — unnecessary since `showSearch` already defaults to filtering by `label`. - Virtual scrolling for long lists — would help with rendering performance but doesn't solve the core problem of finding a specific node by name. ### Concrete use case A user manages 30 proxy nodes across different regions (Tokyo, Singapore, Frankfurt, etc.). They need to deploy a new inbound to "法兰克福1-ARM1" — with the current dropdown they must scroll past 29 other nodes. With `showSearch`, they can type "法兰克福" or "frankfurt" and the list filters instantly. ### Mockups, screenshots, or examples Similar `showSearch` is already used correctly elsewhere in the codebase: - `HostFormModal.tsx:168` — Host page inbound selector - `GeneralTab.tsx:200` — Settings page - `NodeFormModal.tsx:397` — Node form - `FallbacksCard.tsx:74` — Inbound fallback selectors ### Which parts of the panel would this affect? Frontend (UI / panel pages) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] 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 (Jul 2, 2026):

Confirmed against the current source. Both Select components are as described:

  • frontend/src/pages/inbounds/form/InboundFormModal.tsx (around line 542) — the "Deploy To" Select in the add/edit inbound dialog has no showSearch.
  • frontend/src/pages/inbounds/list/InboundList.tsx (around line 173) — the node filter Select on the inbound list toolbar has no showSearch.

The proposed fix matches an existing convention already used in this codebase — e.g. frontend/src/pages/nodes/NodeFormModal.tsx:397 adds bare showSearch to a Select backed by a plain options array (no filterOption override), and Ant Design's default search filters on option.label in that case. Since both target selects already populate label with the node name, adding showSearch alone should behave as described without extra filtering logic.

This is a small, self-contained, low-risk frontend change, so it's labeled for anyone who wants to pick it up.

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:4865924850 --> @github-actions[bot] commented on GitHub (Jul 2, 2026): Confirmed against the current source. Both `Select` components are as described: - `frontend/src/pages/inbounds/form/InboundFormModal.tsx` (around line 542) — the "Deploy To" `Select` in the add/edit inbound dialog has no `showSearch`. - `frontend/src/pages/inbounds/list/InboundList.tsx` (around line 173) — the node filter `Select` on the inbound list toolbar has no `showSearch`. The proposed fix matches an existing convention already used in this codebase — e.g. `frontend/src/pages/nodes/NodeFormModal.tsx:397` adds bare `showSearch` to a `Select` backed by a plain `options` array (no `filterOption` override), and Ant Design's default search filters on `option.label` in that case. Since both target selects already populate `label` with the node name, adding `showSearch` alone should behave as described without extra filtering logic. This is a small, self-contained, low-risk frontend change, so it's labeled for anyone who wants to pick it up. *This reply was generated automatically. A maintainer may follow up.*
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#3993
No description provided.