[PR #6148] [CLOSED] fix(frontend): keep DNS hosts synchronized #6113

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/6148
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed

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


📝 Commits (6)

  • b753b30 fix(frontend): improve config block contrast
  • 5532bcb fix(frontend): preserve config block theme fills
  • 03288e2 fix(frontend): keep DNS hosts synchronized
  • b6418a8 fix(frontend): preserve incomplete DNS hosts
  • 43536f8 fix(frontend): reset DNS host drafts when disabled
  • 9bafdb8 fix(frontend): preserve config block themes

📊 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 #6146 because its confirmed Storybook contrast correction is required for this branch to pass the shared frontend CI. Merge #6146 first; this PR will then reduce to the DNS-hosts change.

Summary

  • Re-seed DNS host rows when external config changes.
  • Retain incomplete rows during edits so add and clear remain usable.
  • Preserve external updates without letting stale local rows overwrite them.

Validation

  • npm run test -- dns-tab.test.tsx
  • npm run typecheck
  • #6146 full CI is green.

🔄 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/6148 **Author:** [@PathGao](https://github.com/PathGao) **Created:** 7/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-dns-hosts-source-v2` --- ### 📝 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 - [`03288e2`](https://github.com/MHSanaei/3x-ui/commit/03288e2bb91d53b19d98b963334e89edd9030371) fix(frontend): keep DNS hosts synchronized - [`b6418a8`](https://github.com/MHSanaei/3x-ui/commit/b6418a8dd233c23f2ad500f7f2b617ebdbae5d6e) fix(frontend): preserve incomplete DNS hosts - [`43536f8`](https://github.com/MHSanaei/3x-ui/commit/43536f844db88aa3961ceaa0d3761bb78b72c0f6) fix(frontend): reset DNS host drafts when disabled - [`9bafdb8`](https://github.com/MHSanaei/3x-ui/commit/9bafdb82918790c62e96997472b778dbf5c9d688) fix(frontend): preserve config block themes ### 📊 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 #6146 because its confirmed Storybook contrast correction is required for this branch to pass the shared frontend CI. Merge #6146 first; this PR will then reduce to the DNS-hosts change. ## Summary - Re-seed DNS host rows when external config changes. - Retain incomplete rows during edits so add and clear remain usable. - Preserve external updates without letting stale local rows overwrite them. ## Validation - `npm run test -- dns-tab.test.tsx` - `npm run typecheck` - #6146 full CI is green. --- <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#6113
No description provided.