[PR #6151] [CLOSED] fix(frontend): keep DNS hosts synchronized #6114

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6151
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed

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


📝 Commits (6)

  • b753b30 fix(frontend): improve config block contrast
  • 5532bcb fix(frontend): preserve config block theme fills
  • 0d2fedd fix(frontend): preserve config block themes
  • 3a5e343 fix(frontend): keep DNS hosts synchronized
  • 27b1e96 fix(frontend): preserve incomplete DNS hosts
  • 39b68d3 fix(frontend): reset DNS host drafts when disabled

📊 Changes

4 files changed (+116 additions, -30 deletions)

View changed files

📝 frontend/.storybook/preview.tsx (+4 -3)
📝 frontend/src/components/clients/ConfigBlock.css (+5 -4)
📝 frontend/src/pages/xray/dns/DnsTab.tsx (+26 -23)
➕ frontend/src/test/dns-tab.test.tsx (+81 -0)

📄 Description

Prerequisite

Includes #6149 to keep the shared Storybook check green. Merge #6149 first; this PR will then reduce to the DNS-hosts change.

Summary

  • Re-seed DNS host rows on external config changes.
  • Retain incomplete rows during edits, then clear them when DNS is disabled.
  • Keep parent state round-trips in the regression test.

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/6151 **Author:** [@PathGao](https://github.com/PathGao) **Created:** 7/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-dns-hosts-source-v3` --- ### 📝 Commits (6) - [`b753b30`](https://github.com/MHSanaei/3x-ui/commit/b753b309d2867102fdd9ff126a4858ff16ef7c12) fix(frontend): improve config block contrast - [`5532bcb`](https://github.com/MHSanaei/3x-ui/commit/5532bcbd7ea0a68e60dd3f424eef2f80770ea6fd) fix(frontend): preserve config block theme fills - [`0d2fedd`](https://github.com/MHSanaei/3x-ui/commit/0d2fedd33c391f3a671fc6bb9cd1522c93d52839) fix(frontend): preserve config block themes - [`3a5e343`](https://github.com/MHSanaei/3x-ui/commit/3a5e3433c937e44087e7e7bc867c6e0d2588a3bc) fix(frontend): keep DNS hosts synchronized - [`27b1e96`](https://github.com/MHSanaei/3x-ui/commit/27b1e96683dd1933b8f09dd17fb6776ece700086) fix(frontend): preserve incomplete DNS hosts - [`39b68d3`](https://github.com/MHSanaei/3x-ui/commit/39b68d37bcaa7d3b13c278ba2be99ff818b35bad) fix(frontend): reset DNS host drafts when disabled ### 📊 Changes **4 files changed** (+116 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `frontend/.storybook/preview.tsx` (+4 -3) 📝 `frontend/src/components/clients/ConfigBlock.css` (+5 -4) 📝 `frontend/src/pages/xray/dns/DnsTab.tsx` (+26 -23) ➕ `frontend/src/test/dns-tab.test.tsx` (+81 -0) </details> ### 📄 Description ## Prerequisite Includes #6149 to keep the shared Storybook check green. Merge #6149 first; this PR will then reduce to the DNS-hosts change. ## Summary - Re-seed DNS host rows on external config changes. - Retain incomplete rows during edits, then clear them when DNS is disabled. - Keep parent state round-trips in the regression test. ## 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:28 +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#6114
No description provided.