3x-ui/frontend/src/test
Sanaei bc424f0968
fix(xray): stop a lone dns qType 0 from matching every query
The core reads a dns rule's qType as a PortList, which drops a bare numeric
0 (infra/conf/common.go: `if number != 0`), and a rule with no qTypes
matches every query. A stored `"qType": 0` therefore does not target query
type 0: it drops, refuses or hijacks all DNS through that outbound.

A qType the panel writes has to be read by the core as exactly the query
types it names. Four writers broke that:

- DNSOutboundLegacyKeysFix rewrote a lone blockTypes [0] into "qType": 0,
  so "block type 0" became "block everything" on upgrade.
- That seeder shipped in v3.8.0 and is recorded as done, so fixing it does
  not reach installs that already ran it. DNSOutboundQTypeZeroFix spells
  any stored numeric qType 0 as "0" once, protocol id matched like the core.
- The outbound form adapter turned a typed "0" into the number 0.
- The Xray template editor saves raw JSON past that adapter; the save now
  applies the same rewrite.

Each writer is pinned by a test that fails without its part. The rewrite
and the repair compare policies as the pinned core builds them, and the
repair runs through runSeeders over a database whose legacy-keys seeder
already ran, on SQLite and PostgreSQL 16.
2026-09-15 16:00:05 +02:00
..
__snapshots__ feat(xray): update xray-core to v26.9.9 and follow the udpHop move 2026-09-09 01:53:00 +02:00
golden/fixtures feat(xray): update xray-core to v26.9.9 and follow the udpHop move 2026-09-09 01:53:00 +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): reject obfuscation values amneziawg-go's own UAPI rejects 2026-09-04 14:57:29 +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 feat(ui): add global command palette (Ctrl+K) for fast navigation and search (#6352) 2026-09-10 17:53:49 +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
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 feat(happ): generate Crypt5 subscription links locally (#6494) 2026-09-13 12:44:55 +02:00
client-toggle-traffic-reset.test.tsx fix(clients): preserve traffic reset schedule when toggling enable (#6502) 2026-09-13 21:27:15 +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 Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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 feat(ui): add global command palette (Ctrl+K) for fast navigation and search (#6352) 2026-09-10 17:53:49 +02:00
date-time-picker.test.tsx Feature/fix external subscription client expiry (#6333) 2026-09-03 22:32:05 +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
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 refactor(ui): share one onNumber handler for numeric setting inputs (#6127) 2026-07-28 23:03:13 +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 Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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(sub): refine Happ routing presets, serverDescription escaping, and auto-detect placement (#6488) 2026-09-13 12:53:57 +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 Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +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 fix(inbounds): allow negative subSortIndex for subscription order (#6465) 2026-09-12 11:14:53 +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): reject missing TLS certificates before saving (#6429) 2026-09-08 18:08:24 +02:00
inbound-from-db.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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 Feature/tuic v5 (#6337) 2026-09-12 10:15:48 +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
input-number-guard.test.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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 feat(happ): generate Crypt5 subscription links locally (#6494) 2026-09-13 12:44:55 +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 feat(nord): support multi-server NordLynx outbounds (#6311) 2026-09-02 20:20:10 +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 fix(xray): stop a lone dns qType 0 from matching every query 2026-09-15 16:00:05 +02:00
outbound-form-modal.test.tsx fix(xray): place the freedom domain strategy where the core reads it (#6515) 2026-09-14 12:08:38 +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(link): restore mKCP seed and headerType on share-link import (#6480) 2026-09-13 22:28:13 +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 feat(panel): surface dev-build version in UI, bot, and CLI 2026-06-25 02:36:41 +02:00
pia-modal.test.tsx feat(pia): add PIA login-and-add WireGuard outbounds (#6272) 2026-08-22 23:11:06 +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 fix(frontend): improve dense QR readability (#6396) 2026-09-03 16:32:27 +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 Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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 feat(routing): add client picker to user rules (#6271) 2026-08-22 23:13:34 +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-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 Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
setup.msw.ts Frontend dev tooling (Husky, lint-staged, MSW, Storybook) + full React Hook Form migration (#5859) 2026-07-08 13:28:37 +02:00
setup.ts
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
storybook-theme.test.tsx Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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-balancer-form-modal.test.tsx feat(sub): leastLoad member weights for subscription balancers (#6304) 2026-09-02 20:21:27 +02:00
subscription-general-tab.test.tsx feat(happ): generate Crypt5 subscription links locally (#6494) 2026-09-13 12:44:55 +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-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 Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +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