mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6147] [CLOSED] fix(frontend): preserve edited server drafts #6110
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6147
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed
Base:
main← Head:fix-server-draft-hydration-v2📝 Commits (7)
b753b30fix(frontend): improve config block contrast5532bcbfix(frontend): preserve config block theme fills9c050c4fix(frontend): preserve edited server draftsdd932b8fix(frontend): retain Xray server projectionse9be219fix(frontend): keep draft controls internalb53ad41fix(frontend): rehydrate saved redacted settingsa7125cdfix(frontend): preserve config block themes📊 Changes
8 files changed (+285 additions, -47 deletions)
View changed files
📝
frontend/.storybook/preview.tsx(+4 -3)📝
frontend/src/api/queries/useAllSettings.ts(+18 -13)📝
frontend/src/components/clients/ConfigBlock.css(+5 -4)➕
frontend/src/hooks/useServerDraft.ts(+38 -0)📝
frontend/src/hooks/useXraySetting.ts(+25 -26)📝
frontend/src/test/use-all-settings.test.tsx(+51 -1)➕
frontend/src/test/use-xray-setting.test.tsx(+71 -0)➕
frontend/src/test/useServerDraft.test.tsx(+73 -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 draft-hydration change.
Summary
Validation
npm run test -- useServerDraft.test.tsx use-xray-setting.test.tsx use-all-settings.test.tsxnpm run typecheck🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.