[PR #3131] [MERGED] feat: add commint into client list #5355

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3131
Author: @egregors
Created: 6/20/2025
Status: ✅ Merged
Merged: 6/21/2025
Merged by: @sh1shd

Base: main ← Head: add-comments-into-client-list


📝 Commits (1)

  • d448b69 feat: enhance client display with comments and improved styling across protocols

📊 Changes

6 files changed (+146 additions, -20 deletions)

View changed files

📝 web/html/component/aClientTable.html (+31 -8)
📝 web/html/form/protocol/shadowsocks.html (+6 -1)
📝 web/html/form/protocol/trojan.html (+6 -1)
📝 web/html/form/protocol/vless.html (+6 -1)
📝 web/html/form/protocol/vmess.html (+6 -1)
📝 web/html/inbounds.html (+91 -8)

📄 Description

What is the pull request?

Issue #3120 Prev. PR: #3121

Enhanced client display throughout the interface by showing client comments directly under their email addresses, providing better visibility of client information without adding new columns.

According to @shishkevichd proposal, I have removed column "comments" and added comment like a second line in client cell (check screenshots out).

Details

Main Client Table Enhancement

Modified aClientTable component: Comments now appear under client emails in the expandable client table
Smart text truncation: Comments longer than 50 characters are truncated with "..."
Hover tooltips: Full comment text displayed on hover for truncated comments
Mobile info panel: Comments included in mobile information popover

Popover Lists Enhancement

Updated all client status popovers in inbounds.html:

  • Disabled clients popover
  • Depleted clients popover
  • Expiring soon clients popover
  • Online clients popover
  • Each popover now shows:

Client email in bold
Comment below email in italics
Clean visual separation between clients

Protocol Forms Enhancement

Updated client tables in all protocol configuration forms:

  • VLESS protocol form
  • VMess protocol form
  • Trojan protocol form
  • Shadowsocks protocol form

Styling & Theme Support

CSS classes: Added .client-cell, .client-email, .client-comment with proper styling
Dark theme support: Proper color scheme for both light and dark themes
Responsive design: Consistent display across desktop and mobile views
Visual hierarchy: Email prominent, comments subtle but visible

Helper Function

Added getClientWithComment() function to retrieve client data with comments for popovers

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

grafik grafik

🔄 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/3131 **Author:** [@egregors](https://github.com/egregors) **Created:** 6/20/2025 **Status:** ✅ Merged **Merged:** 6/21/2025 **Merged by:** [@sh1shd](https://github.com/sh1shd) **Base:** `main` ← **Head:** `add-comments-into-client-list` --- ### 📝 Commits (1) - [`d448b69`](https://github.com/MHSanaei/3x-ui/commit/d448b6968cab4a91632e22c9e82829dfd5fbdf6f) feat: enhance client display with comments and improved styling across protocols ### 📊 Changes **6 files changed** (+146 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `web/html/component/aClientTable.html` (+31 -8) 📝 `web/html/form/protocol/shadowsocks.html` (+6 -1) 📝 `web/html/form/protocol/trojan.html` (+6 -1) 📝 `web/html/form/protocol/vless.html` (+6 -1) 📝 `web/html/form/protocol/vmess.html` (+6 -1) 📝 `web/html/inbounds.html` (+91 -8) </details> ### 📄 Description ## What is the pull request? Issue #3120 Prev. PR: #3121 Enhanced client display throughout the interface by showing client comments directly under their email addresses, providing better visibility of client information without adding new columns. According to @shishkevichd [proposal](https://github.com/MHSanaei/3x-ui/pull/3121#issuecomment-2986442516), I have removed column "comments" and added comment like a second line in `client` cell (check screenshots out). ## Details **Main Client Table Enhancement** Modified `aClientTable` component: Comments now appear under client emails in the expandable client table Smart text truncation: Comments longer than 50 characters are truncated with "..." Hover tooltips: Full comment text displayed on hover for truncated comments Mobile info panel: Comments included in mobile information popover **Popover Lists Enhancement** Updated all client status popovers in `inbounds.html`: - Disabled clients popover - Depleted clients popover - Expiring soon clients popover - Online clients popover - Each popover now shows: Client email in bold Comment below email in italics Clean visual separation between clients **Protocol Forms Enhancement** Updated client tables in all protocol configuration forms: - VLESS protocol form - VMess protocol form - Trojan protocol form - Shadowsocks protocol form **Styling & Theme Support** CSS classes: Added `.client-cell`, `.client-email`, `.client-comment` with proper styling Dark theme support: Proper color scheme for both light and dark themes Responsive design: Consistent display across desktop and mobile views Visual hierarchy: Email prominent, comments subtle but visible **Helper Function** Added `getClientWithComment()` function to retrieve client data with comments for popovers ## Which part of the application is affected by the change? - [x] Frontend - [ ] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [ ] Other ## Screenshots <img width="1188" alt="grafik" src="https://github.com/user-attachments/assets/ee1aa84b-13fa-4207-ad5d-d3bca4b2a4e7" /> <img width="1095" alt="grafik" src="https://github.com/user-attachments/assets/a932cdc9-f5b3-4e24-8bde-7a70cd21c9f5" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46:24 +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#5355
No description provided.