[PR #6846] [CLOSED] feat(client-host): assign hosts to clients and client groups #6478

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6846
Author: @bigbossstard
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: upstream/client-host-panel


📝 Commits (1)

  • 336d340 feat(client-host): prepare panel changes for upstream

📊 Changes

57 files changed (+2158 additions, -114 deletions)

View changed files

➕ docs/client-host-assignment.md (+28 -0)
📝 docs/public/openapi.json (+240 -0)
📝 frontend/public/openapi.json (+240 -0)
📝 frontend/src/generated/examples.ts (+6 -0)
📝 frontend/src/generated/schemas.ts (+9 -0)
📝 frontend/src/generated/types.ts (+1 -0)
📝 frontend/src/generated/zod.ts (+1 -0)
📝 frontend/src/pages/api-docs/endpoints.ts (+44 -0)
📝 frontend/src/pages/clients/ClientFormModal.tsx (+114 -4)
📝 frontend/src/pages/clients/ClientsPage.tsx (+72 -5)
📝 frontend/src/pages/clients/RowCells.tsx (+81 -0)
📝 frontend/src/pages/groups/GroupsPage.tsx (+128 -0)
📝 frontend/src/schemas/client.ts (+3 -0)
📝 frontend/src/test/balancer-form-modal.test.tsx (+9 -2)
📝 frontend/src/test/client-calendar-renewal.test.tsx (+1 -0)
📝 frontend/src/test/client-form-flow.test.tsx (+2 -0)
📝 frontend/src/test/client-form-modal.test.tsx (+1 -0)
📝 frontend/src/test/client-renewal-help.test.tsx (+1 -0)
📝 internal/database/db.go (+21 -9)
📝 internal/database/migrate_data.go (+2 -0)

...and 37 more files

📄 Description

Summary

Adds Host assignments for individual clients and client groups in subscriptions.

What changes

  • Assign Hosts directly to individual clients or to client groups.
  • Individual client assignments take precedence over group assignments.
  • Preserve existing behavior when no explicit assignment is configured.
  • Include the backend, API, database migrations, panel UI, tests, and documentation.

Type of change

  • New feature
  • Documentation
  • Tests only

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Subscription (share links / Clash / JSON)
  • Database / migrations

How was this tested?

Breaking changes

None intended. Existing behavior is preserved when no explicit assignment is configured.


🔄 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/6846 **Author:** [@bigbossstard](https://github.com/bigbossstard) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `upstream/client-host-panel` --- ### 📝 Commits (1) - [`336d340`](https://github.com/MHSanaei/3x-ui/commit/336d3409155e8576132823cda5efbbe2843dd313) feat(client-host): prepare panel changes for upstream ### 📊 Changes **57 files changed** (+2158 additions, -114 deletions) <details> <summary>View changed files</summary> ➕ `docs/client-host-assignment.md` (+28 -0) 📝 `docs/public/openapi.json` (+240 -0) 📝 `frontend/public/openapi.json` (+240 -0) 📝 `frontend/src/generated/examples.ts` (+6 -0) 📝 `frontend/src/generated/schemas.ts` (+9 -0) 📝 `frontend/src/generated/types.ts` (+1 -0) 📝 `frontend/src/generated/zod.ts` (+1 -0) 📝 `frontend/src/pages/api-docs/endpoints.ts` (+44 -0) 📝 `frontend/src/pages/clients/ClientFormModal.tsx` (+114 -4) 📝 `frontend/src/pages/clients/ClientsPage.tsx` (+72 -5) 📝 `frontend/src/pages/clients/RowCells.tsx` (+81 -0) 📝 `frontend/src/pages/groups/GroupsPage.tsx` (+128 -0) 📝 `frontend/src/schemas/client.ts` (+3 -0) 📝 `frontend/src/test/balancer-form-modal.test.tsx` (+9 -2) 📝 `frontend/src/test/client-calendar-renewal.test.tsx` (+1 -0) 📝 `frontend/src/test/client-form-flow.test.tsx` (+2 -0) 📝 `frontend/src/test/client-form-modal.test.tsx` (+1 -0) 📝 `frontend/src/test/client-renewal-help.test.tsx` (+1 -0) 📝 `internal/database/db.go` (+21 -9) 📝 `internal/database/migrate_data.go` (+2 -0) _...and 37 more files_ </details> ### 📄 Description ## Summary Adds Host assignments for individual clients and client groups in subscriptions. ## What changes - Assign Hosts directly to individual clients or to client groups. - Individual client assignments take precedence over group assignments. - Preserve existing behavior when no explicit assignment is configured. - Include the backend, API, database migrations, panel UI, tests, and documentation. ## Type of change - [x] New feature - [x] Documentation - [x] Tests only ## Areas affected - [x] Frontend (UI / panel pages) - [x] Backend (API endpoints, login, settings) - [x] Subscription (share links / Clash / JSON) - [x] Database / migrations ## How was this tested? - Full CI passed: https://github.com/bigbossstard/3x-ui/actions/runs/38789005138 - Documentation CI passed: https://github.com/bigbossstard/3x-ui/actions/runs/38789005093 - Added backend and subscription tests for individual and group Host assignments. ## Breaking changes None intended. Existing behavior is preserved when no explicit assignment is configured. ## Related - Feature request: #6618 - Related PR: #6620 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:09:03 +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#6478
No description provided.