3x-ui/frontend/src/test
Artem K 721de5adde
Fix fragment exports for older Xray clients (#6702)
* Fix fragment exports for older Xray clients

* fix(link): tolerate a finalmask without tcp in panel share links

withLegacyFragmentRanges called finalmask.tcp.map unguarded, but stored
rows reach the link generator unparsed and dropEmptyFinalMask deletes an
empty tcp list on save. Any VMess/VLESS/Trojan/SS inbound with only UDP
masks or quicParams threw a TypeError in the QR, info and export-links
views. The Go counterpart already skipped a missing tcp.

Also trims the Go helper's comment to the two-line cap and drops a
[]string branch no JSON-decoded finalmask can reach.

---------

Co-authored-by: Artem K <a.kush@vkteam.ru>
Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
2026-10-02 17:38:44 +02:00
..
__snapshots__ fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712) 2026-10-02 15:44:41 +02:00
golden/fixtures feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
msw Frontend dev tooling (Husky, lint-staged, MSW, Storybook) + full React Hook Form migration (#5859) 2026-07-08 13:28:37 +02:00
amneziawg-conf-injection.test.ts feat(amneziawg): add native AmneziaWG protocol support (#6105) 2026-08-24 02:41:15 +02:00
amneziawg-conf-parity.test.ts fix(amneziawg): account for S4 junk in the default tunnel MTU (#6376) 2026-09-08 16:55:32 +02:00
amneziawg-obfuscation.test.ts fix(amneziawg): H1-H4 generator + queue-depth throughput fixes (#6330) 2026-09-03 21:50:23 +02:00
amneziawg-outbound-adapter.test.ts feat(amneziawg): add AmneziaWG as an outbound protocol (#6320) 2026-09-10 14:50:48 +02:00
amneziawg-schema-cleared.test.ts fix(amneziawg): bound S1-S3 by the receive buffer, reject overlapping H (#6642) 2026-09-26 22:02:49 +02:00
api-token-date.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
app-sidebar.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
balancer-form-modal.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
balancer-loopback.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
balancer-observatory-sync.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
balancer.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
basics-freedom-strategy.test.ts fix(panel): read an outbound protocol id the way the core does (#6522) 2026-09-14 15:59:34 +02:00
basics-happy-eyeballs.test.tsx Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
basics-tab-direct-tag.test.tsx fix(panel): read an outbound protocol id the way the core does (#6522) 2026-09-14 15:59:34 +02:00
calendar-expire-setting.test.tsx feat(sub): add opt-in month-end expiry presentation (#6517) 2026-09-14 12:10:25 +02:00
chunk-recovery.test.tsx fix: recover panel navigation after stale chunk failures (#6679) 2026-10-02 15:01:21 +02:00
cipher-suites-select.test.tsx feat(hosts): add a cipher suites override and accept custom suites 2026-09-16 11:56:20 +02:00
client-bulk-calendar-renewal.test.tsx feat(clients): add calendar weekly renewal and schedule previews (#6524) 2026-09-26 22:59:23 +02:00
client-calendar-renewal.test.tsx feat(clients): add calendar weekly renewal and schedule previews (#6524) 2026-09-26 22:59:23 +02:00
client-card-comment.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
client-external-link-expiry.test.ts Feature/fix external subscription client expiry (#6333) 2026-09-03 22:32:05 +02:00
client-form-flow.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
client-form-modal.test.tsx Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +02:00
client-qr-modal-qr-capacity.test.tsx feat(happ): generate Crypt5 subscription links locally (#6494) 2026-09-13 12:44:55 +02:00
client-qr-modal.test.tsx style(settings): fold the Happ settings into four tabs 2026-09-27 16:06:42 +02:00
client-toggle-traffic-reset.test.tsx feat(clients): add calendar weekly renewal and schedule previews (#6524) 2026-09-26 22:59:23 +02:00
client-total-bytes.test.tsx Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
client-traffic-display.test.ts feat(clients): restore traffic usage progress bars on Clients page (#5150) 2026-06-11 12:10:49 +02:00
client-tunnel-allowed-ips.test.tsx feat(amneziawg): add native AmneziaWG protocol support (#6105) 2026-08-24 02:41:15 +02:00
clients-query-gating.test.tsx feat(happ): generate Crypt5 subscription links locally (#6494) 2026-09-13 12:44:55 +02:00
clients-row-cells-memo.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
clients-summary.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
clone-inbound-modal.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
command-palette.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
date-time-picker.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
default-setting-tag.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
dns-presets.test.ts Add encrypted DNS presets (#5837) 2026-07-09 00:45:35 +02:00
dns-server-port-field.test.tsx fix(dns): stop offering a port field that DoH entries discard 2026-09-09 00:47:18 +02:00
dns-tab.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
dns.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
factory-defaults-contract.test.ts feat(ui): tag settings that sit at their shipped default value (#6128) 2026-07-29 08:03:21 +02:00
file-download.test.tsx fix(frontend): keep the given file name on mobile downloads 2026-09-30 15:03:21 +02:00
finalmask-form.test.tsx feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
finalmask.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
format-validation-error.test.ts fix(inbounds): reject missing TLS certificates before saving (#6429) 2026-09-08 18:08:24 +02:00
freedom-strategy-placement.test.ts fix(xray): place the freedom domain strategy where the core reads it (#6515) 2026-09-14 12:08:38 +02:00
general-tab.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
generated-examples.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
geo-browser-selection.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
geo-tokens.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
geodata-section.test.tsx feat(geodata): add standard source presets (#6504) 2026-09-13 20:02:43 +02:00
happ-presets.test.ts feat(happ): add routing editor, optional ad blocking, and LAN bypass preset (#6545) 2026-09-26 22:57:01 +02:00
happ-routing-editor-helpers.test.ts feat(happ): add routing editor, optional ad blocking, and LAN bypass preset (#6545) 2026-09-26 22:57:01 +02:00
happ-routing-editor.test.tsx feat(happ): add routing editor, optional ad blocking, and LAN bypass preset (#6545) 2026-09-26 22:57:01 +02:00
happ-settings-presets.test.tsx fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712) 2026-10-02 15:44:41 +02:00
happ-settings-tun-mode.test.tsx feat(sub): refine Happ routing presets, serverDescription escaping, and auto-detect placement (#6488) 2026-09-13 12:53:57 +02:00
headers.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
host-link.test.ts fix(hosts): advertise Hosts in every WireGuard, AmneziaWG and TUIC config 2026-09-30 15:03:16 +02:00
host-schema.test.ts fix(sub): bake Host VLESS Route into subscription UUIDs 2026-06-29 14:32:23 +02:00
http-init-msw.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
http-init.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
httpUtil.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
i18n-dead-keys.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
inbound-clone.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
inbound-defaults.test.ts Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +02:00
inbound-form-adapter.test.ts feat(inbound): excludeFromSub hides links without disabling (#6463) 2026-09-27 12:26:37 +02:00
inbound-form-blocks.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
inbound-form-modal.test.tsx fix(inbounds): keep the stored client list and enable on inbound save 2026-09-28 13:23:48 +02:00
inbound-from-db.test.ts feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
inbound-full.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
inbound-host-remarks.test.ts feat(inbounds): show linked host remarks in inbound list (#6468) 2026-09-13 22:03:50 +02:00
inbound-link.test.ts Fix fragment exports for older Xray clients (#6702) 2026-10-02 17:38:44 +02:00
inbound-tag.test.ts Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +02:00
inbound-tls-validation.test.ts fix(inbounds): reject missing TLS certificates before saving (#6429) 2026-09-08 18:08:24 +02:00
inbounds-ws-identity.test.tsx perf(inbounds): keep unchanged rows and online sets across websocket pushes 2026-09-15 21:06:32 +02:00
incy-settings-content.test.tsx feat(sub): add Incy app-management parameters (#6650) 2026-09-27 01:06:17 +02:00
input-number-guard.test.ts fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
language-scope.test.ts fix(frontend): isolate subscription language preference (#6394) 2026-09-03 16:33:37 +02:00
link-label.test.ts Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +02:00
log-parse.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
mtproto-clients-link.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
mtproto-egress-picker.test.tsx fix(panel): probe UDP outbounds and hide the block outbound from the mtproto egress picker (#6525) 2026-09-14 16:00:13 +02:00
multi-tunnel-client-config.test.tsx fix(hosts): advertise Hosts in every WireGuard, AmneziaWG and TUIC config 2026-09-30 15:03:16 +02:00
node-history-panel.test.tsx fix(sub): preserve external VLESS encryption in Clash subscriptions (#6576) 2026-09-26 20:31:50 +02:00
node-list-rerender.test.tsx perf(nodes): keep the node table element across unrelated re-renders 2026-09-15 21:06:32 +02:00
node-list-rowkey.test.tsx Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
nord-modal.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
observatory-settings-tab.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
on-number.test.ts refactor(ui): share one onNumber handler for numeric setting inputs (#6127) 2026-07-28 23:03:13 +02:00
openapi-request-bodies.test.ts fix(api-docs): generate request bodies for all encodings (#6296) 2026-09-03 21:20:38 +02:00
openapi-runtime-contracts.test.ts feat(sub): add read-only HWID device-slot status endpoint (#6380) 2026-09-11 11:59:35 +02:00
outbound-defaults.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
outbound-form-adapter.test.ts feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
outbound-form-modal.test.tsx feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
outbound-identity-tags-case.test.tsx fix(panel): read the outbound protocol id in the Outbounds row like the core (#6528) 2026-09-14 19:53:57 +03:00
outbound-link-parser.test.ts fix(sub): carry REALITY ML-KEM hint in VLESS links (#6712) 2026-10-02 15:44:41 +02:00
outbound-protocol-case.test.ts fix(panel): read outbound protocol ids case-insensitively everywhere (#6523) 2026-09-14 15:02:58 +02:00
outbound-tag-rename.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
outbounds-addresses-case.test.ts fix(panel): read the outbound protocol id in the Outbounds row like the core (#6528) 2026-09-14 19:53:57 +03:00
outbounds-loopback-index.test.tsx feat(pia): add PIA login-and-add WireGuard outbounds (#6272) 2026-08-22 23:11:06 +02:00
outbounds-testability-gate.test.ts fix(outbound): read the probe testability gate's ids like the core (#6527) 2026-09-14 19:53:05 +03:00
panel-version.test.ts fix(nodes): stop flagging a node on the other update channel as outdated 2026-09-15 21:21:36 +02:00
pia-modal.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
protocol-capabilities.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
protocols.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
qr-panel-readable.test.tsx feat(sub): redesign the subscription page around usage, tabs and app imports 2026-09-16 01:55:56 +02:00
reality-mldsa-cert-chain.test.tsx feat(reality): warn when target cert chain is too small for ML-DSA-65 (#6470) 2026-09-12 11:13:45 +02:00
remark-template-field.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
remark-variables.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
rhf-form-field.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
routing-default-outbound.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
routing-loopback-index.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
routing-reference-cleanup.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
rule-form-preserve-fields.test.tsx fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
rule.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
security.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
setting-ldap-skip-verify.test.ts feat: ldap skip tls verify (#5637) 2026-06-28 18:10:38 +02:00
setting-profile-mode.test.ts fix(sub): prevent default profile page URL disclosure (#6538) 2026-09-15 21:13:29 +02:00
setting-sub-identity.test.ts feat(sub): allow identity tokens on every subscription link (#5935) 2026-07-28 22:12:52 +02:00
setting-sub-info-node.test.ts feat(sub): add dummy info node and status configs for subscriptions (#6412) 2026-09-08 17:14:01 +02:00
setting-sub-updates.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
setup.components.ts fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
setup.msw.ts chore(deps): update project dependencies 2026-10-02 14:23:05 +02:00
setup.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
size-formatter.test.ts feat(ui): show per-inbound live speed (#5261) 2026-06-14 22:39:40 +02:00
sniffing-field-resync.test.tsx Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
sockopt.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
speed-tag-stable.test.tsx fix(frontend): stabilize speed tags on inbound and client pages (#5930) 2026-07-14 13:00:25 +02:00
spider-x.test.ts feat(reality): derive a stable per-client spiderX for shared links 2026-07-02 12:53:08 +02:00
sponsors.test.tsx feat(panel): add sponsor slots fed from sponsors.sanaei.dev 2026-09-26 03:31:51 +02:00
storybook-theme.test.tsx fix(clients): stop the Edit Client modal showing a stray light scrollbar 2026-09-15 22:04:00 +02:00
stream-wire-normalize.test.ts fix(inbounds): reject missing TLS certificates before saving (#6429) 2026-09-08 18:08:24 +02:00
stream.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
sub-app-icons.test.ts feat(sub): redesign the subscription page around usage, tabs and app imports 2026-09-16 01:55:56 +02:00
sub-balancer-form-modal.test.tsx feat(sub): leastLoad member weights for subscription balancers (#6304) 2026-09-02 20:21:27 +02:00
sub-page-model.test.ts feat(sub): redesign the subscription page around usage, tabs and app imports 2026-09-16 01:55:56 +02:00
subscription-general-tab.test.tsx style(settings): fold the Happ settings into four tabs 2026-09-27 16:06:42 +02:00
test-utils.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
tls-fingerprint-default.test.ts fix(hysteria): standard geco share links and persistent uTLS None (#6325) 2026-09-03 16:35:07 +02:00
tuic-client-config.test.ts Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +02:00
tunnel-host-endpoints.test.ts fix(hosts): advertise Hosts in every WireGuard, AmneziaWG and TUIC config 2026-09-30 15:03:16 +02:00
tunnel-rewriteport.test.ts fix(inbounds): accept null rewritePort in tunnel settings (#5516) (#5525) 2026-06-24 12:54:05 +02:00
use-all-settings.test.tsx chore: bump dependencies and clear deprecated frontend APIs 2026-08-24 14:56:40 +02:00
use-outbound-tags.test.tsx fix(panel): read outbound protocol ids case-insensitively everywhere (#6523) 2026-09-14 15:02:58 +02:00
use-xray-setting.test.tsx fix(panel): probe UDP outbounds and hide the block outbound from the mtproto egress picker (#6525) 2026-09-14 16:00:13 +02:00
useServerDraft.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
vless-encryption.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
warp-change-ip.test.ts feat(xray): update xray-core to v26.9.30 and adapt panel 2026-10-02 13:54:39 +02:00
websocket-bridge-outbounds.test.tsx Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
websocket-shared-client.test.tsx Repo-wide self-correcting audit: 54 verified bug fixes (#5970) 2026-07-17 00:33:06 +02:00
wireguard-client-config.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
wireguard-clients-link.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
xhttp-session-id.test.ts feat(xhttp): support sessionID* rename + sessionIDTable/Length (xray v26.6.22) (#5506) 2026-06-23 17:38:16 +02:00
zodValidate.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00