mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5175] [MERGED] feat(ui): add select all / clear all shortcuts for inbound multi-select #5804
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5804
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5175
Author: @NikanZeyaei
Created: 6/10/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei
Base:
main← Head:feature/select-all-inbounds-button📝 Commits (4)
d28198ffeat(ui): add select all / clear all shortcuts for inbound multi-selectce02e37Merge branch 'main' into feature/select-all-inbounds-button6d258edMerge branch 'main' into feature/select-all-inbounds-buttonc9492farefactor(form): decouple SelectAllClearButtons labels and harden select-all📊 Changes
19 files changed (+126 additions, -24 deletions)
View changed files
➕
frontend/src/components/form/SelectAllClearButtons.tsx(+51 -0)📝
frontend/src/components/form/index.ts(+1 -0)📝
frontend/src/pages/clients/BulkAttachInboundsModal.tsx(+18 -10)📝
frontend/src/pages/clients/BulkDetachInboundsModal.tsx(+18 -10)📝
frontend/src/pages/clients/ClientBulkAddModal.tsx(+6 -1)📝
frontend/src/pages/clients/ClientFormModal.tsx(+6 -2)📝
internal/web/translation/ar-EG.json(+2 -0)📝
internal/web/translation/en-US.json(+2 -0)📝
internal/web/translation/es-ES.json(+2 -0)📝
internal/web/translation/fa-IR.json(+2 -0)📝
internal/web/translation/id-ID.json(+2 -0)📝
internal/web/translation/ja-JP.json(+2 -0)📝
internal/web/translation/pt-BR.json(+2 -0)📝
internal/web/translation/ru-RU.json(+2 -0)📝
internal/web/translation/tr-TR.json(+2 -1)📝
internal/web/translation/uk-UA.json(+2 -0)📝
internal/web/translation/vi-VN.json(+2 -0)📝
internal/web/translation/zh-CN.json(+2 -0)📝
internal/web/translation/zh-TW.json(+2 -0)📄 Description
Summary
Closes https://github.com/MHSanaei/3x-ui/issues/5144
Adds "Select all" and "Clear all" buttons to the inbound multi-select in the client settings modals, so users no longer have to manually click each inbound one by one.
The repeated button logic is extracted into a reusable
SelectAllClearButtonscomponent underfrontend/src/components/form/. This keeps the UI consistent and makes the feature easy to add to future modals.Why
Users with many inbounds previously had to click each one individually in the "Attached Inbounds" dropdown when creating or editing a client, or when bulk-attaching/detaching clients. This was tedious and error-prone. The backend already supported
inboundIds: [id1, id2, ...]— this PR closes the UX gap.Type of change
Areas affected
How was this tested?
cd frontend && npm run typecheck && npm run lint— all pass.go build ./...passes.Implementation details
frontend/src/components/form/SelectAllClearButtons.tsx— a small reusable component that renders the two buttons and handles the disabled states.ClientFormModal.tsx,BulkAttachInboundsModal.tsx,BulkDetachInboundsModal.tsx, and 13 translation files.Screenshots / recordings
https://github.com/user-attachments/assets/2c0c343b-1227-44dd-acdc-3a379ccab60b
Breaking changes
None.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.