[PR #6158] [MERGED] fix(frontend): keep DNS hosts synchronized #6121

Closed
opened 2026-11-02 04:06:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6158
Author: @PathGao
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @MHSanaei

Base: main ← Head: fix-dns-hosts-source-v5


📝 Commits (4)

  • 6662131 fix(frontend): keep DNS hosts synchronized
  • f38ca7b fix(frontend): preserve incomplete DNS hosts
  • f3f1cb6 fix(frontend): reset DNS host drafts when disabled
  • 8459f94 fix(frontend): clear DNS host drafts when disabled

📊 Changes

2 files changed (+133 additions, -23 deletions)

View changed files

📝 frontend/src/pages/xray/dns/DnsTab.tsx (+26 -23)
➕ frontend/src/test/dns-tab.test.tsx (+107 -0)

📄 Description

Summary

  • reconcile the DNS hosts editor with externally updated configuration
  • keep the parent mutation as the single source of truth
  • retain incomplete local rows only while they are being edited
  • clear the draft when DNS is disabled

Validation

  • npm run test -- dns-tab.test.tsx
  • npm run typecheck

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6158 **Author:** [@PathGao](https://github.com/PathGao) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/30/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix-dns-hosts-source-v5` --- ### 📝 Commits (4) - [`6662131`](https://github.com/MHSanaei/3x-ui/commit/66621311dbd2ad9acfdb690a3bce0801ab75bece) fix(frontend): keep DNS hosts synchronized - [`f38ca7b`](https://github.com/MHSanaei/3x-ui/commit/f38ca7b8a3ab84ab51fa04943853343e071aedc0) fix(frontend): preserve incomplete DNS hosts - [`f3f1cb6`](https://github.com/MHSanaei/3x-ui/commit/f3f1cb63b597832abefe98717351c258cd421a48) fix(frontend): reset DNS host drafts when disabled - [`8459f94`](https://github.com/MHSanaei/3x-ui/commit/8459f94b958eb3c8115cadb81ea66c27190a1109) fix(frontend): clear DNS host drafts when disabled ### 📊 Changes **2 files changed** (+133 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/xray/dns/DnsTab.tsx` (+26 -23) ➕ `frontend/src/test/dns-tab.test.tsx` (+107 -0) </details> ### 📄 Description ## Summary - reconcile the DNS hosts editor with externally updated configuration - keep the parent mutation as the single source of truth - retain incomplete local rows only while they are being edited - clear the draft when DNS is disabled ## Validation - `npm run test -- dns-tab.test.tsx` - `npm run typecheck` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:06:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#6121
No description provided.