[PR #6736] [MERGED] fix(inbounds): list clients in the detach/attach modals when they mount open #6435

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6736
Author: @drakeo338
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @MHSanaei

Base: main ← Head: claude/6733-fix


📝 Commits (3)

  • 0f55b2a fix(inbounds): list clients in the detach modal when it mounts open
  • b23a3cb fix(inbounds): list clients in the attach modal when it mounts open
  • 0717e31 Merge branch 'main' into claude/6733-fix

📊 Changes

4 files changed (+81 additions, -2 deletions)

View changed files

📝 frontend/src/pages/inbounds/clients/AttachClientsModal.tsx (+1 -1)
📝 frontend/src/pages/inbounds/clients/DetachClientsModal.tsx (+1 -1)
➕ frontend/src/test/attach-clients-modal.test.tsx (+43 -0)
➕ frontend/src/test/detach-clients-modal.test.tsx (+36 -0)

📄 Description

Summary

The detach and attach client modals now load their client rows when first mounted already open.

Why

Fixes #6733. DetachClientsModal (and AttachClientsModal, same pattern) seeded its synced-source state so a modal first mounted open saw no change on first render and never loaded the rows; the table stayed empty until closed and reopened. Both now load on mount when open.

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)
  • Telegram bot

How was this tested?

Added detach-clients-modal and attach-clients-modal tests that mount the modal open; both fail on the base commit and pass with the fix.

Screenshots / recordings

N/A

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).
  • go build ./... and the test suite pass 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.

Not ticked: I ran only the two new tests on HEAD, not go build, lint, typecheck, or the full build.


🔄 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/6736 **Author:** [@drakeo338](https://github.com/drakeo338) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `claude/6733-fix` --- ### 📝 Commits (3) - [`0f55b2a`](https://github.com/MHSanaei/3x-ui/commit/0f55b2aa41823fd88012c7b211fb5a7d4dc7beac) fix(inbounds): list clients in the detach modal when it mounts open - [`b23a3cb`](https://github.com/MHSanaei/3x-ui/commit/b23a3cbf422b878dc41122d23d6fb5fd1a3cd501) fix(inbounds): list clients in the attach modal when it mounts open - [`0717e31`](https://github.com/MHSanaei/3x-ui/commit/0717e31b6af6165845b6eacdfbce3d63bcf3b795) Merge branch 'main' into claude/6733-fix ### 📊 Changes **4 files changed** (+81 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/inbounds/clients/AttachClientsModal.tsx` (+1 -1) 📝 `frontend/src/pages/inbounds/clients/DetachClientsModal.tsx` (+1 -1) ➕ `frontend/src/test/attach-clients-modal.test.tsx` (+43 -0) ➕ `frontend/src/test/detach-clients-modal.test.tsx` (+36 -0) </details> ### 📄 Description ## Summary The detach and attach client modals now load their client rows when first mounted already open. ## Why Fixes #6733. DetachClientsModal (and AttachClientsModal, same pattern) seeded its synced-source state so a modal first mounted open saw no change on first render and never loaded the rows; the table stayed empty until closed and reopened. Both now load on mount when open. ## Type of change - [x] Bug fix - [ ] 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) - [ ] Telegram bot ## How was this tested? Added detach-clients-modal and attach-clients-modal tests that mount the modal open; both fail on the base commit and pass with the fix. ## Screenshots / recordings N/A ## Breaking changes None ## Checklist - [ ] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [ ] `go build ./...` and the test suite pass 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. Not ticked: I ran only the two new tests on HEAD, not go build, lint, typecheck, or the full build. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:08:44 +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#6435
No description provided.