3x-ui/frontend/src
MHSanaei f02018cfb7
fix(outbounds): prevent freedom save crash, complete its fields (#4686)
freedomToWire called Object.entries(s.fragment), but getFieldsValue(true)
returns freedom settings without a fragment object when the Fragment switch
is off (its sub-fields never register). That threw 'Cannot convert undefined
or null to object' and silently killed the save. Guard fragment with a
fallback so an unset value is treated as empty.

While verifying against xray-core's freedom config, also:
- add the missing userLevel field (schema, form schema, adapter, UI)
- fix noise applyTo enum to ip/ipv4/ipv6 (xray rejects the old host/all)

Closes #4686
2026-05-31 19:50:50 +02:00
..
api fix(groups): fetch full client list for Add/Remove/SubLinks modals 2026-05-28 20:25:37 +02:00
components refactor(frontend): reorganize source tree & break down oversized modals/tabs (#4698) 2026-05-30 21:51:33 +02:00
entries Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +02:00
generated fix(settings): sync generated schemas 2026-05-31 19:00:26 +02:00
hooks fix(xray): test UDP outbounds via xray probe (#4657) + Vision testseed & Flow form fixes 2026-05-29 21:07:01 +02:00
i18n Frontend rewrite: React + TypeScript with AntD v6 (#4498) 2026-05-23 15:21:45 +02:00
layouts refactor(frontend): reorganize source tree & break down oversized modals/tabs (#4698) 2026-05-30 21:51:33 +02:00
lib/xray fix(outbounds): prevent freedom save crash, complete its fields (#4686) 2026-05-31 19:50:50 +02:00
models fix(inbounds): preserve client data on delete and show traffic in detail 2026-05-30 23:53:28 +02:00
pages fix(outbounds): prevent freedom save crash, complete its fields (#4686) 2026-05-31 19:50:50 +02:00
schemas fix(outbounds): prevent freedom save crash, complete its fields (#4686) 2026-05-31 19:50:50 +02:00
styles fix(ui): polish across routing, groups, inbounds, mobile sidebar 2026-05-28 13:25:43 +02:00
test fix(outbounds): prevent freedom save crash, complete its fields (#4686) 2026-05-31 19:50:50 +02:00
utils feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
env.d.ts feat(postgres): in-panel backup/restore and consistent CLI backend 2026-05-31 17:53:34 +02:00
main.tsx Migrate frontend models/api/utils to TypeScript and modernize AntD theming (#4563) 2026-05-25 14:34:53 +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(clients,groups): client groups + sub-links export + dedicated groups page 2026-05-27 17:30:55 +02:00