mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6384] [CLOSED] feat: Add opt-in Happ crypt5 generation to the client QR modal #6243
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#6243
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/6384
Author: @NgaiYeanCoi
Created: 9/1/2026
Status: ❌ Closed
Base:
main← Head:feat/happ-links📝 Commits (10+)
2e45a97feat(clients): add stateless Happ link generatorabb5dfbfix(clients): reject duplicate Happ provider fields1e86efefeat(clients): expose on-demand Happ link API11c116bfix(openapi): exclude service interfaces from generated types59772cdfeat(clients): add stateless Happ QR presentation3b00218fix(clients): cover overlapping Happ generations629f2edfix(clients): harden Happ link handlingd1518bbfix(clients): gate Happ link generation behind operator opt-in2711485fix(frontend): guard oversized Happ QR codesc7a1fb5Merge branch 'main' into feat/happ-links📊 Changes
42 files changed (+2488 additions, -30 deletions)
View changed files
📝
docs/content/docs/en/reference/api/clients.mdx(+8 -1)📝
docs/public/openapi.json(+69 -0)📝
frontend/public/openapi.json(+69 -0)📝
frontend/src/generated/examples.ts(+5 -0)📝
frontend/src/generated/schemas.ts(+20 -0)📝
frontend/src/generated/types.ts(+6 -1)📝
frontend/src/generated/zod.ts(+7 -3)📝
frontend/src/hooks/useClients.ts(+3 -0)📝
frontend/src/models/setting.ts(+1 -0)📝
frontend/src/pages/api-docs/endpoints.ts(+8 -0)📝
frontend/src/pages/clients/ClientQrModal.tsx(+281 -9)📝
frontend/src/pages/settings/SubscriptionGeneralTab.tsx(+27 -8)📝
frontend/src/schemas/defaults.ts(+1 -0)📝
frontend/src/schemas/setting.ts(+1 -0)➕
frontend/src/test/client-qr-modal-qr-capacity.test.tsx(+65 -0)➕
frontend/src/test/client-qr-modal.test.tsx(+576 -0)📝
frontend/src/test/clients-query-gating.test.tsx(+12 -0)📝
frontend/src/test/multi-tunnel-client-config.test.tsx(+10 -8)📝
frontend/src/test/subscription-general-tab.test.tsx(+45 -0)📝
internal/web/controller/client.go(+18 -0)...and 22 more files
📄 Description
Summary
happ://crypt5/link from the authenticated backend and displays it through the existing QR, copy, and image actions.happ://crypt5/link through the authenticated backend without persisting or caching the result, while keeping the Standard subscription view available as the default and fallback.Why
Administrators currently need to copy a client's complete subscription URL into an external Happ service manually. This change provides a client-scoped workflow in which the browser sends only the client's internal record ID, while the backend reconstructs the current subscription URL and applies bounded provider requests, strict response validation, and redacted diagnostics.
Privacy note: selecting Happ and generating the link sends the client's complete current subscription URL to the third-party service
crypto.happ.su.Fixes #6381
Refs #3902
Type of change
Areas affected
How was this tested?
Frontend Tests
Backend Tests
but shown
This PR does not modify internal/logger/logger.go, Makefile, or the golangci-lint configuration, so it does not introduce or alter this warning.
Manual verification
Screenshots / recordings
Standard view
Happ crypt5 view
Log output for a failed Happ crypt5 generation
Breaking changes
None
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.