3x-ui/frontend/src
Younes Beriane d4a7086c4e
fix(inbounds): list clients in the detach/attach modals when they mount open (#6736)
* fix(inbounds): list clients in the detach modal when it mounts open

DetachClientsModal seeded its synced-source state with the open source,
so a modal first mounted with open and a source saw no change on its
first render and never read the client rows. The table stayed empty
until the modal was closed and reopened.

Seed the state with null so the first open render loads the rows, as
the reset-during-render check already expects. The test mounts the
modal already open and fails without this change.

Fixes #6733

* fix(inbounds): list clients in the attach modal when it mounts open

AttachClientsModal seeds its synced-source state the same way
DetachClientsModal did, so a modal first mounted with open and a source
saw no change on its first render and never read the client rows. The
table stayed empty, and nothing was pre-selected, until the modal was
closed and reopened.

Seed the state with null here too. The test mounts the attach modal
already open and fails without this change.

Refs #6733

---------

Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
2026-10-05 15:27:56 +02:00
..
api feat(panel): add sponsor slots fed from sponsors.sanaei.dev 2026-09-26 03:31:51 +02:00
components fix(frontend): show toasts through message.useMessage, never the static API 2026-10-05 14:01:47 +02:00
entries fix(frontend): isolate subscription language preference (#6394) 2026-09-03 16:33:37 +02:00
generated feat(panel): let a sponsor slot start at a scheduled time 2026-09-27 16:32:45 +02:00
hooks feat(clients): add calendar weekly renewal and schedule previews (#6524) 2026-09-26 22:59:23 +02:00
i18n fix(frontend): isolate subscription language preference (#6394) 2026-09-03 16:33:37 +02:00
layouts feat(panel): add sponsor slots fed from sponsors.sanaei.dev 2026-09-26 03:31:51 +02:00
lib feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
models feat(inbound): excludeFromSub hides links without disabling (#6463) 2026-09-27 12:26:37 +02:00
pages fix(inbounds): list clients in the detach/attach modals when they mount open (#6736) 2026-10-05 15:27:56 +02:00
schemas feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
styles feat(panel): add sponsor slots fed from sponsors.sanaei.dev 2026-09-26 03:31:51 +02:00
test fix(inbounds): list clients in the detach/attach modals when they mount open (#6736) 2026-10-05 15:27:56 +02:00
utils fix(frontend): keep the given file name on mobile downloads 2026-09-30 15:03:21 +02:00
env.d.ts feat(sub): redesign the subscription page around usage, tabs and app imports 2026-09-16 01:55:56 +02:00
main.tsx fix: recover panel navigation after stale chunk failures (#6679) 2026-10-02 15:01:21 +02:00
queryClient.ts feat(frontend): TanStack Query + React Router migration & in-panel API docs (#4541) 2026-05-24 21:34:52 +02:00
routes.tsx feat(panel): add sponsor slots fed from sponsors.sanaei.dev 2026-09-26 03:31:51 +02:00