mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5627] [MERGED] feat(balancers): tabbed Observatory/Burst Observatory form #5937
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#5937
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/5627
Author: @nima1024m
Created: 6/28/2026
Status: ✅ Merged
Merged: 6/28/2026
Merged by: @MHSanaei
Base:
main← Head:feat/observatory-ui📝 Commits (2)
6f1a82bfeat(balancers): tabbed Observatory/Burst form replacing raw JSON3e966f0refactor(balancers): tighten httpMethod typing and align connectivity default📊 Changes
18 files changed (+807 additions, -86 deletions)
View changed files
📝
frontend/src/pages/xray/balancers/BalancersTab.tsx(+62 -85)➕
frontend/src/pages/xray/balancers/ObservatorySettingsTab.tsx(+238 -0)📝
frontend/src/pages/xray/balancers/balancer-helpers.ts(+17 -0)➕
frontend/src/schemas/observatory.ts(+34 -0)📝
frontend/src/test/balancer-observatory-sync.test.ts(+66 -1)📝
internal/web/translation/ar-EG.json(+30 -0)📝
internal/web/translation/en-US.json(+30 -0)📝
internal/web/translation/es-ES.json(+30 -0)📝
internal/web/translation/fa-IR.json(+30 -0)📝
internal/web/translation/id-ID.json(+30 -0)📝
internal/web/translation/ja-JP.json(+30 -0)📝
internal/web/translation/pt-BR.json(+30 -0)📝
internal/web/translation/ru-RU.json(+30 -0)📝
internal/web/translation/tr-TR.json(+30 -0)📝
internal/web/translation/uk-UA.json(+30 -0)📝
internal/web/translation/vi-VN.json(+30 -0)📝
internal/web/translation/zh-CN.json(+30 -0)📝
internal/web/translation/zh-TW.json(+30 -0)📄 Description
Summary
Replaces the raw-JSON Observatory / Burst Observatory editor in the Balancers page with a proper Ant Design form, organised into two sub-tabs:
Behaviour
syncObservatorieslogic — users can't add or delete them by hand. The form exposes only the tunable probe fields;subjectSelectoris shown read-only since it is derived from the balancers.observatoryform (probe URL, probe interval, concurrent probing).burstObservatoryform (destination, connectivity, interval, timeout, sampling, HTTP method).pingConfig.httpMethodfield (HEAD / GET).Scope
Frontend-only + shared i18n. Observatory / Burst are stored as raw JSON inside the
xrayTemplateConfigsetting and saved through the existing/panel/api/xray/updateroute — no Go logic, no DB migration, no new routes. New strings translated across all 13 locales.Tests
balancer-observatory-sync.test.ts: asserts thehttpMethod: "HEAD"default and the prefix-drop-on-overlap behaviour.observersRemovedByDeletingBalancer(last-consumer vs. still-needed-by-another-balancer).typecheck,eslint,npm run gen(clean diff), 606 vitest tests,npm run build, and the Go web package build.Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.