[PR #5942] [MERGED] feat(frontend): show client comments on mobile cards #6034

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5942
Author: @sanmaxdev
Created: 7/13/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @MHSanaei

Base: main ← Head: feat/mobile-client-comments


📝 Commits (2)

  • 0cabe14 feat(frontend): show client comments on mobile cards
  • 5f83539 fix(frontend): bound mobile comment height

📊 Changes

4 files changed (+55 additions, -1 deletions)

View changed files

➕ frontend/src/components/clients/ClientCardComment.tsx (+14 -0)
📝 frontend/src/pages/clients/ClientsPage.css (+11 -0)
📝 frontend/src/pages/clients/ClientsPage.tsx (+3 -1)
➕ frontend/src/test/client-card-comment.test.tsx (+27 -0)

📄 Description

Summary

  • Show each client's existing comment beneath the mobile card header.
  • Preserve multiline comments and wrap long text within the card.

Why

Mobile users currently need to open the client details modal to read comments.

Closes #5794

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)

How was this tested?

  • npm run test -- src/test/client-card-comment.test.tsx
  • npm run lint
  • npm run typecheck
  • npm run test (764 tests)
  • npm run build

Screenshots / recordings

Not included. The focused component test covers comments being present and absent.

Breaking changes

None.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • The relevant frontend test suite passes locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 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/5942 **Author:** [@sanmaxdev](https://github.com/sanmaxdev) **Created:** 7/13/2026 **Status:** ✅ Merged **Merged:** 7/14/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/mobile-client-comments` --- ### 📝 Commits (2) - [`0cabe14`](https://github.com/MHSanaei/3x-ui/commit/0cabe1449ffe29726b0b69e5502a40debcf355e7) feat(frontend): show client comments on mobile cards - [`5f83539`](https://github.com/MHSanaei/3x-ui/commit/5f8353951727e19e4c770a1837fb9a94de91c050) fix(frontend): bound mobile comment height ### 📊 Changes **4 files changed** (+55 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `frontend/src/components/clients/ClientCardComment.tsx` (+14 -0) 📝 `frontend/src/pages/clients/ClientsPage.css` (+11 -0) 📝 `frontend/src/pages/clients/ClientsPage.tsx` (+3 -1) ➕ `frontend/src/test/client-card-comment.test.tsx` (+27 -0) </details> ### 📄 Description ## Summary - Show each client's existing comment beneath the mobile card header. - Preserve multiline comments and wrap long text within the card. ## Why Mobile users currently need to open the client details modal to read comments. Closes #5794 ## Type of change - [ ] Bug fix - [x] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) ## How was this tested? - `npm run test -- src/test/client-card-comment.test.tsx` - `npm run lint` - `npm run typecheck` - `npm run test` (764 tests) - `npm run build` ## Screenshots / recordings Not included. The focused component test covers comments being present and absent. ## Breaking changes None. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] The relevant frontend test suite passes locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <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:53 +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#6034
No description provided.