[GH-ISSUE #4938] [Feature]: attach and deattach buttun in groups #3457

Closed
opened 2026-10-31 20:32:34 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reza74ta-spec on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4938

Attach and Deattach buttun in Groups section will be verry usefull

Describe the solution you'd like

.

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @reza74ta-spec on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4938 ### Is your feature request related to a problem? Attach and Deattach buttun in Groups section will be verry usefull ### Describe the solution you'd like . ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:32:34 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 5, 2026):

Thanks for the request!

To clarify the terminology used in this codebase: attach/detach means linking a client to one or more inbounds (so the client is active on those inbounds). This is distinct from adding/removing clients from a group (which just labels them).

Current state:

  • The bulk attach/detach API endpoints already exist:
    • POST /panel/api/clients/bulkAttach — attach a list of clients (by email) to inbound IDs
    • POST /panel/api/clients/bulkDetach — detach a list of clients from inbound IDs
  • The frontend hook (bulkAttach / bulkDetach) and the modal components (BulkAttachInboundsModal, BulkDetachInboundsModal) are already implemented and used on the Clients page — you can select multiple clients there and use the bulk-attach/detach action.

What's missing:
The Groups page (frontend/src/pages/groups/GroupsPage.tsx) does not yet expose attach/detach actions. Adding them would let you pick a group and attach/detach all its clients to selected inbounds in one step, without going to the Clients page first.

What a PR would need:

  1. In GroupsPage.tsx, add two new entries to the rowActions menu (around line 329): one for "Attach to inbounds" and one for "Detach from inbounds".
  2. Fetch the group's emails (via fetchEmailsForGroup) when either action is triggered — the same pattern already used for openAdjustFor and openSubLinksFor.
  3. Reuse the existing BulkAttachInboundsModal and BulkDetachInboundsModal components (already used in ClientsPage.tsx), importing them as lazy mounts.
  4. Call bulkAttach(emails, inboundIds) / bulkDetach(emails, inboundIds) from the useClients hook — both are already exported but not yet destructured in GroupsPage.tsx.

The backend is fully in place; this is purely a frontend addition. If you'd like to implement it yourself, a PR would be welcome!

<!-- gh-comment-id:4627260719 --> @github-actions[bot] commented on GitHub (Jun 5, 2026): Thanks for the request\! To clarify the terminology used in this codebase: **attach/detach** means linking a client to one or more inbounds (so the client is active on those inbounds). This is distinct from adding/removing clients from a group (which just labels them). **Current state:** - The bulk attach/detach API endpoints already exist: - `POST /panel/api/clients/bulkAttach` — attach a list of clients (by email) to inbound IDs - `POST /panel/api/clients/bulkDetach` — detach a list of clients from inbound IDs - The frontend hook (`bulkAttach` / `bulkDetach`) and the modal components (`BulkAttachInboundsModal`, `BulkDetachInboundsModal`) are already implemented and used on the **Clients** page — you can select multiple clients there and use the bulk-attach/detach action. **What's missing:** The **Groups** page (`frontend/src/pages/groups/GroupsPage.tsx`) does not yet expose attach/detach actions. Adding them would let you pick a group and attach/detach all its clients to selected inbounds in one step, without going to the Clients page first. **What a PR would need:** 1. In `GroupsPage.tsx`, add two new entries to the `rowActions` menu (around line 329): one for "Attach to inbounds" and one for "Detach from inbounds". 2. Fetch the group's emails (via `fetchEmailsForGroup`) when either action is triggered — the same pattern already used for `openAdjustFor` and `openSubLinksFor`. 3. Reuse the existing `BulkAttachInboundsModal` and `BulkDetachInboundsModal` components (already used in `ClientsPage.tsx`), importing them as lazy mounts. 4. Call `bulkAttach(emails, inboundIds)` / `bulkDetach(emails, inboundIds)` from the `useClients` hook — both are already exported but not yet destructured in `GroupsPage.tsx`. The backend is fully in place; this is purely a frontend addition. If you'd like to implement it yourself, a PR would be welcome\!
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#3457
No description provided.