[PR #4300] [MERGED] feat: sortable inbounds table columns #5643

Closed
opened 2026-10-31 20:48:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4300
Author: @abdalrahmanx9
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @MHSanaei

Base: main ← Head: feat/sortable-inbounds


📝 Commits (1)

  • 71e1d11 feat: sortable inbounds table columns

📊 Changes

1 file changed (+65 additions, -15 deletions)

View changed files

📝 frontend/src/pages/inbounds/InboundList.vue (+65 -15)

📄 Description

Summary

  • Make all data columns in the inbounds table sortable (ascend/descend toggle)
  • Desktop <a-table> uses Ant Design Vue 4'''s controlled :sortOrder with @change handler
  • Mobile card list mirrors the same sort via the shared sortedInbounds computed
  • Sort resets when user searches or changes filter

Columns supported

Column Sort key
ID id (numeric)
Enable enable (boolean → 0/1)
Remark remark (localeCompare)
Port port (numeric)
Protocol protocol (localeCompare)
Traffic up + down (numeric)
All-time Traffic allTime (numeric)
Expiry Date expiryTime (0 → Infinity)
Node node name via nodesById (localeCompare)
Clients count via clientCount (numeric)
  • Action/Menu column is intentionally not sortable
  • expiryTime = 0 (unlimited) sorts last
  • showSorterTooltip: false hides the hover popup

🔄 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/4300 **Author:** [@abdalrahmanx9](https://github.com/abdalrahmanx9) **Created:** 5/12/2026 **Status:** ✅ Merged **Merged:** 5/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/sortable-inbounds` --- ### 📝 Commits (1) - [`71e1d11`](https://github.com/MHSanaei/3x-ui/commit/71e1d11c8bacc5aacf90856a3bf3584b17ad99a6) feat: sortable inbounds table columns ### 📊 Changes **1 file changed** (+65 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/inbounds/InboundList.vue` (+65 -15) </details> ### 📄 Description ## Summary - Make all data columns in the inbounds table sortable (ascend/descend toggle) - Desktop `<a-table>` uses Ant Design Vue 4'\''s controlled `:sortOrder` with `@change` handler - Mobile card list mirrors the same sort via the shared `sortedInbounds` computed - Sort resets when user searches or changes filter ### Columns supported | Column | Sort key | |---|---| | ID | `id` (numeric) | | Enable | `enable` (boolean → 0/1) | | Remark | `remark` (localeCompare) | | Port | `port` (numeric) | | Protocol | `protocol` (localeCompare) | | Traffic | `up + down` (numeric) | | All-time Traffic | `allTime` (numeric) | | Expiry Date | `expiryTime` (0 → Infinity) | | Node | node name via `nodesById` (localeCompare) | | Clients | count via `clientCount` (numeric) | - Action/Menu column is intentionally not sortable - `expiryTime = 0` (unlimited) sorts last - `showSorterTooltip: false` hides the hover popup --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:22 +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#5643
No description provided.