[PR #5662] [CLOSED] fix(wireguard): restore client config UX #5951

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5662
Author: @mrAntonD
Created: 6/29/2026
Status: ❌ Closed

Base: main ← Head: codex/upstream-wg-ux-fixes


📝 Commits (2)

  • fb32ced fix(wireguard): restore client config UX
  • 5051cbe fix(wireguard): address PR review feedback

📊 Changes

18 files changed (+276 additions, -21 deletions)

View changed files

📝 frontend/public/openapi.json (+9 -1)
📝 frontend/src/generated/examples.ts (+3 -1)
📝 frontend/src/generated/schemas.ts (+6 -0)
📝 frontend/src/generated/types.ts (+2 -0)
📝 frontend/src/generated/zod.ts (+2 -0)
📝 frontend/src/hooks/useClients.ts (+4 -0)
📝 frontend/src/pages/clients/ClientFormModal.tsx (+54 -2)
📝 frontend/src/pages/clients/ClientInfoModal.css (+5 -0)
📝 frontend/src/pages/clients/ClientInfoModal.tsx (+45 -6)
📝 frontend/src/pages/clients/ClientQrModal.tsx (+29 -5)
📝 frontend/src/pages/clients/ClientsPage.tsx (+2 -0)
➕ frontend/src/pages/clients/wireguardConfig.ts (+43 -0)
📝 frontend/src/pages/inbounds/info/InboundInfoModal.tsx (+7 -2)
📝 frontend/src/pages/inbounds/list/useInboundColumns.tsx (+27 -2)
📝 frontend/src/pages/inbounds/qr/QrCodeModal.tsx (+3 -2)
📝 frontend/src/schemas/client.ts (+2 -0)
📝 internal/web/service/inbound.go (+31 -0)
📝 internal/web/translation/en-US.json (+2 -0)

📄 Description

Summary

  • Restore WireGuard client config UX on top of the current upstream WireGuard multi-client model.
  • Show WireGuard active/total client counters with a fallback from settings.clients[] for newly-created WG inbounds.
  • Expose server public key and MTU in inbound options so client .conf generation can use the real inbound data.
  • Add WireGuard client .conf copy/download/QR flows and keep wireguard:// peer links copy-only.

Follow-up from previous PR

Supersedes #5642, which was closed because maintainer edit access was not enabled. This PR is created with maintainer edits enabled.

Review feedback from #5642 is already addressed in 5051cbea:

  • regenerated OpenAPI/Zod/frontend generated artifacts for wgPublicKey and wgMtu;
  • fixed the frontend typecheck issue in the WireGuard client-count fallback;
  • made client WireGuard .conf generation use the configured public host consistently with inbound QR/config generation;
  • moved the WireGuard config labels through i18n.

Verification

  • npm --prefix frontend run gen
  • npm --prefix frontend run typecheck
  • npm --prefix frontend run build
  • npm --prefix frontend run lint
  • GitHub CI was green on #5642 at head 5051cbea.

🔄 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/5662 **Author:** [@mrAntonD](https://github.com/mrAntonD) **Created:** 6/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/upstream-wg-ux-fixes` --- ### 📝 Commits (2) - [`fb32ced`](https://github.com/MHSanaei/3x-ui/commit/fb32ced61eb9b0a09fca54c243447aef6be06249) fix(wireguard): restore client config UX - [`5051cbe`](https://github.com/MHSanaei/3x-ui/commit/5051cbea08a537dd4cbdb4562db07f780018510e) fix(wireguard): address PR review feedback ### 📊 Changes **18 files changed** (+276 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `frontend/public/openapi.json` (+9 -1) 📝 `frontend/src/generated/examples.ts` (+3 -1) 📝 `frontend/src/generated/schemas.ts` (+6 -0) 📝 `frontend/src/generated/types.ts` (+2 -0) 📝 `frontend/src/generated/zod.ts` (+2 -0) 📝 `frontend/src/hooks/useClients.ts` (+4 -0) 📝 `frontend/src/pages/clients/ClientFormModal.tsx` (+54 -2) 📝 `frontend/src/pages/clients/ClientInfoModal.css` (+5 -0) 📝 `frontend/src/pages/clients/ClientInfoModal.tsx` (+45 -6) 📝 `frontend/src/pages/clients/ClientQrModal.tsx` (+29 -5) 📝 `frontend/src/pages/clients/ClientsPage.tsx` (+2 -0) ➕ `frontend/src/pages/clients/wireguardConfig.ts` (+43 -0) 📝 `frontend/src/pages/inbounds/info/InboundInfoModal.tsx` (+7 -2) 📝 `frontend/src/pages/inbounds/list/useInboundColumns.tsx` (+27 -2) 📝 `frontend/src/pages/inbounds/qr/QrCodeModal.tsx` (+3 -2) 📝 `frontend/src/schemas/client.ts` (+2 -0) 📝 `internal/web/service/inbound.go` (+31 -0) 📝 `internal/web/translation/en-US.json` (+2 -0) </details> ### 📄 Description ## Summary - Restore WireGuard client config UX on top of the current upstream WireGuard multi-client model. - Show WireGuard active/total client counters with a fallback from settings.clients[] for newly-created WG inbounds. - Expose server public key and MTU in inbound options so client .conf generation can use the real inbound data. - Add WireGuard client .conf copy/download/QR flows and keep wireguard:// peer links copy-only. ## Follow-up from previous PR Supersedes #5642, which was closed because maintainer edit access was not enabled. This PR is created with maintainer edits enabled. Review feedback from #5642 is already addressed in 5051cbea: - regenerated OpenAPI/Zod/frontend generated artifacts for wgPublicKey and wgMtu; - fixed the frontend typecheck issue in the WireGuard client-count fallback; - made client WireGuard .conf generation use the configured public host consistently with inbound QR/config generation; - moved the WireGuard config labels through i18n. ## Verification - npm --prefix frontend run gen - npm --prefix frontend run typecheck - npm --prefix frontend run build - npm --prefix frontend run lint - GitHub CI was green on #5642 at head 5051cbea. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:05:16 +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#5951
No description provided.