[PR #5169] [CLOSED] feat: add support for annotating WireGuard peers with human-readable comments #5801

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5169
Author: @rqzbeh
Created: 6/10/2026
Status: ❌ Closed

Base: main ← Head: feat/wireguard-peer-comments


📝 Commits (3)

  • 91eda37 feat: add support for annotating WireGuard peers with human-readable comments
  • 636fd35 fix: resolve ESLint issues in QrCodeModal
  • 8557eb0 Merge branch 'main' into feat/wireguard-peer-comments

📊 Changes

5 files changed (+67 additions, -7 deletions)

View changed files

📝 frontend/src/pages/inbounds/form/protocols/wireguard.tsx (+3 -0)
📝 frontend/src/pages/inbounds/info/InboundInfoModal.tsx (+7 -4)
📝 frontend/src/pages/inbounds/qr/QrCodeModal.tsx (+18 -3)
📝 frontend/src/schemas/protocols/inbound/wireguard.ts (+1 -0)
📝 internal/database/model/model.go (+38 -0)

📄 Description

Summary

Adds the ability to annotate WireGuard peers with human-readable comments.

Why

When managing a WireGuard inbound with many peers, it's impossible to tell at a glance which peer belongs to which client or device because Xray config limits peers to IP and public key.
Closes #5168.

Type of change

  • New feature

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation

How was this tested?

  1. Edit or add a WireGuard inbound.
  2. In the peers list, enter a comment in the "Comment" text field.
  3. Save the inbound and review the "Inbound Info" modal and QR modal. The comment is displayed correctly.
  4. Verify that Xray config generation safely removes the comment field by running tests.

Screenshots / recordings

N/A

Breaking changes

None

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 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/5169 **Author:** [@rqzbeh](https://github.com/rqzbeh) **Created:** 6/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/wireguard-peer-comments` --- ### 📝 Commits (3) - [`91eda37`](https://github.com/MHSanaei/3x-ui/commit/91eda3771aee390858d94cd1889786808a2df1f5) feat: add support for annotating WireGuard peers with human-readable comments - [`636fd35`](https://github.com/MHSanaei/3x-ui/commit/636fd3525d2785ee6131e41daba265117c44c802) fix: resolve ESLint issues in QrCodeModal - [`8557eb0`](https://github.com/MHSanaei/3x-ui/commit/8557eb09129735404f78d59cdcb3b11e1089d592) Merge branch 'main' into feat/wireguard-peer-comments ### 📊 Changes **5 files changed** (+67 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/inbounds/form/protocols/wireguard.tsx` (+3 -0) 📝 `frontend/src/pages/inbounds/info/InboundInfoModal.tsx` (+7 -4) 📝 `frontend/src/pages/inbounds/qr/QrCodeModal.tsx` (+18 -3) 📝 `frontend/src/schemas/protocols/inbound/wireguard.ts` (+1 -0) 📝 `internal/database/model/model.go` (+38 -0) </details> ### 📄 Description ## Summary Adds the ability to annotate WireGuard peers with human-readable comments. ## Why When managing a WireGuard inbound with many peers, it's impossible to tell at a glance which peer belongs to which client or device because Xray config limits peers to IP and public key. Closes #5168. ## Type of change - [x] New feature ## Areas affected - [x] Frontend (UI / panel pages) - [x] Backend (API endpoints, login, settings) - [x] Xray config generation ## How was this tested? 1. Edit or add a WireGuard inbound. 2. In the peers list, enter a comment in the "Comment" text field. 3. Save the inbound and review the "Inbound Info" modal and QR modal. The comment is displayed correctly. 4. Verify that Xray config generation safely removes the `comment` field by running tests. ## Screenshots / recordings N/A ## Breaking changes None ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <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:10 +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#5801
No description provided.