[PR #5178] [MERGED] feat: allow selecting inbounds synchronized from nodes #5807

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5178
Author: @animesha3
Created: 6/10/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei

Base: main ← Head: feat/node-inbound-selection


📝 Commits (6)

  • ebc6e0a feat: select node inbounds for synchronization
  • 3949a3d Merge branch 'main' into feat/node-inbound-selection
  • e5cbf32 Merge branch 'main' into feat/node-inbound-selection
  • 2585b0d Merge branch 'main' into feat/node-inbound-selection
  • 4677850 fix
  • 9c3c9d5 fix: scope node reconcile and orphan sweep to selected inbound tags

📊 Changes

32 files changed (+741 additions, -16 deletions)

View changed files

📝 frontend/public/openapi.json (+78 -0)
📝 frontend/src/api/queries/useNodeMutations.ts (+9 -0)
📝 frontend/src/generated/examples.ts (+4 -0)
📝 frontend/src/generated/schemas.ts (+15 -0)
📝 frontend/src/generated/types.ts (+2 -0)
📝 frontend/src/generated/zod.ts (+2 -0)
📝 frontend/src/pages/api-docs/endpoints.ts (+7 -0)
📝 frontend/src/pages/nodes/NodeFormModal.tsx (+71 -0)
📝 frontend/src/pages/nodes/NodesPage.tsx (+2 -1)
📝 frontend/src/schemas/node.ts (+4 -0)
📝 internal/database/model/model.go (+14 -12)
📝 internal/web/controller/node.go (+13 -0)
📝 internal/web/job/node_traffic_sync_job.go (+2 -1)
📝 internal/web/runtime/remote.go (+19 -0)
📝 internal/web/service/inbound.go (+16 -0)
📝 internal/web/service/inbound_node.go (+19 -2)
➕ internal/web/service/inbound_node_reconcile_test.go (+197 -0)
📝 internal/web/service/node.go (+85 -0)
📝 internal/web/service/node_test.go (+52 -0)
📝 internal/web/translation/ar-EG.json (+10 -0)

...and 12 more files

📄 Description

Summary

  • add per-node inbound synchronization modes: all inbounds or an explicit tag-based selection
  • load available inbounds directly from the remote node in the node form
  • filter remote traffic snapshots before importing them into the central panel
  • preserve existing behavior by defaulting old and new nodes to all inbounds
  • document the new API endpoint and add labels to every supported locale

Testing

  • go test ./...
  • npm run lint
  • npm run typecheck
  • npm test -- --testTimeout=30000 (478 tests)
  • npm run build
  • production Docker image build
  • container smoke test: HTTP 200 and SQLite migration for inbound_sync_mode / inbound_tags
    Снимок экрана 2026-06-10 221030
    Снимок экрана 2026-06-10 220944
    Снимок экрана 2026-06-10 220801

🔄 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/5178 **Author:** [@animesha3](https://github.com/animesha3) **Created:** 6/10/2026 **Status:** ✅ Merged **Merged:** 6/11/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/node-inbound-selection` --- ### 📝 Commits (6) - [`ebc6e0a`](https://github.com/MHSanaei/3x-ui/commit/ebc6e0a6845f4729d50ff6f4e5ca346752733e37) feat: select node inbounds for synchronization - [`3949a3d`](https://github.com/MHSanaei/3x-ui/commit/3949a3d90f338104899eb60feba889cf39e6d239) Merge branch 'main' into feat/node-inbound-selection - [`e5cbf32`](https://github.com/MHSanaei/3x-ui/commit/e5cbf32d9d7dae970797d0e13fda03cabbcab360) Merge branch 'main' into feat/node-inbound-selection - [`2585b0d`](https://github.com/MHSanaei/3x-ui/commit/2585b0dbfb9572cabd1249cf28ac4fe80bd2ade2) Merge branch 'main' into feat/node-inbound-selection - [`4677850`](https://github.com/MHSanaei/3x-ui/commit/46778500e233b607bf9935ddde013354ac9f9fb0) fix - [`9c3c9d5`](https://github.com/MHSanaei/3x-ui/commit/9c3c9d52b7c017a512fbf04b21f603156a8dbfbc) fix: scope node reconcile and orphan sweep to selected inbound tags ### 📊 Changes **32 files changed** (+741 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `frontend/public/openapi.json` (+78 -0) 📝 `frontend/src/api/queries/useNodeMutations.ts` (+9 -0) 📝 `frontend/src/generated/examples.ts` (+4 -0) 📝 `frontend/src/generated/schemas.ts` (+15 -0) 📝 `frontend/src/generated/types.ts` (+2 -0) 📝 `frontend/src/generated/zod.ts` (+2 -0) 📝 `frontend/src/pages/api-docs/endpoints.ts` (+7 -0) 📝 `frontend/src/pages/nodes/NodeFormModal.tsx` (+71 -0) 📝 `frontend/src/pages/nodes/NodesPage.tsx` (+2 -1) 📝 `frontend/src/schemas/node.ts` (+4 -0) 📝 `internal/database/model/model.go` (+14 -12) 📝 `internal/web/controller/node.go` (+13 -0) 📝 `internal/web/job/node_traffic_sync_job.go` (+2 -1) 📝 `internal/web/runtime/remote.go` (+19 -0) 📝 `internal/web/service/inbound.go` (+16 -0) 📝 `internal/web/service/inbound_node.go` (+19 -2) ➕ `internal/web/service/inbound_node_reconcile_test.go` (+197 -0) 📝 `internal/web/service/node.go` (+85 -0) 📝 `internal/web/service/node_test.go` (+52 -0) 📝 `internal/web/translation/ar-EG.json` (+10 -0) _...and 12 more files_ </details> ### 📄 Description ## Summary - add per-node inbound synchronization modes: all inbounds or an explicit tag-based selection - load available inbounds directly from the remote node in the node form - filter remote traffic snapshots before importing them into the central panel - preserve existing behavior by defaulting old and new nodes to all inbounds - document the new API endpoint and add labels to every supported locale ## Testing - `go test ./...` - `npm run lint` - `npm run typecheck` - `npm test -- --testTimeout=30000` (478 tests) - `npm run build` - production Docker image build - container smoke test: HTTP 200 and SQLite migration for `inbound_sync_mode` / `inbound_tags` <img width="798" height="189" alt="Снимок экрана 2026-06-10 221030" src="https://github.com/user-attachments/assets/05e7c329-402c-4448-8f85-ca73a9d23275" /> <img width="793" height="631" alt="Снимок экрана 2026-06-10 220944" src="https://github.com/user-attachments/assets/464f2885-7dc6-4eb9-b4bc-b61336460e29" /> <img width="806" height="908" alt="Снимок экрана 2026-06-10 220801" src="https://github.com/user-attachments/assets/23057b96-a665-493b-afcd-0e3472b4a6fa" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:13 +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#5807
No description provided.