[PR #5661] [MERGED] feat(inbounds): add column sorting to inbounds table #5950

Closed
opened 2026-11-02 04:05:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5661
Author: @isultanov99
Created: 6/29/2026
Status: ✅ Merged
Merged: 7/8/2026
Merged by: @MHSanaei

Base: main ← Head: inbound-column-sorting


📝 Commits (1)

  • 8f95ee0 Add column sorting to inbounds table

📊 Changes

1 file changed (+32 additions, -0 deletions)

View changed files

📝 frontend/src/pages/inbounds/list/useInboundColumns.tsx (+32 -0)

📄 Description

What changed

This adds client-side sorting to the desktop Inbounds table columns that already have all of their data available in the list/slim response:

  • ID
  • remark
  • node
  • subscription sort index
  • port
  • protocol
  • clients
  • traffic
  • speed
  • expiry date

Why

The Inbounds page already fetches the full slim inbound list and paginates it in the browser, but the table headers cannot currently be used to sort rows. For panels with many inbounds, quick one-click sorting by port, node, traffic, clients, or expiry date makes the page easier to scan without adding any backend complexity.

This is intentionally display-only sorting. It does not change the database order, does not add API endpoints, and does not affect subscription output order.

Notes

  • Text columns use locale-aware comparison with numeric sorting enabled.
  • Client sorting uses the existing clientCount data, with the same fallback client count already used by the render path.
  • Expiry sorting treats unlimited inbounds as infinity, so they sort after dated inbounds when sorting ascending.
  • Speed sorting uses the current live up/down total and naturally reflects the live data shown in the table.

Validation

  • npm run typecheck
  • npm run build
  • npm exec -- eslint src/pages/inbounds/list/useInboundColumns.tsx

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5661 **Author:** [@isultanov99](https://github.com/isultanov99) **Created:** 6/29/2026 **Status:** ✅ Merged **Merged:** 7/8/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `inbound-column-sorting` --- ### 📝 Commits (1) - [`8f95ee0`](https://github.com/MHSanaei/3x-ui/commit/8f95ee03794a21bfc8e615d2c1b2a66044a83df7) Add column sorting to inbounds table ### 📊 Changes **1 file changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/inbounds/list/useInboundColumns.tsx` (+32 -0) </details> ### 📄 Description ## What changed This adds client-side sorting to the desktop Inbounds table columns that already have all of their data available in the `list/slim` response: - ID - remark - node - subscription sort index - port - protocol - clients - traffic - speed - expiry date ## Why The Inbounds page already fetches the full slim inbound list and paginates it in the browser, but the table headers cannot currently be used to sort rows. For panels with many inbounds, quick one-click sorting by port, node, traffic, clients, or expiry date makes the page easier to scan without adding any backend complexity. This is intentionally display-only sorting. It does not change the database order, does not add API endpoints, and does not affect subscription output order. ## Notes - Text columns use locale-aware comparison with numeric sorting enabled. - Client sorting uses the existing `clientCount` data, with the same fallback client count already used by the render path. - Expiry sorting treats unlimited inbounds as infinity, so they sort after dated inbounds when sorting ascending. - Speed sorting uses the current live up/down total and naturally reflects the live data shown in the table. ## Validation - `npm run typecheck` - `npm run build` - `npm exec -- eslint src/pages/inbounds/list/useInboundColumns.tsx` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:05:15 +07:00
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#5950
No description provided.