mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5433] [MERGED] feat(sub): add option to hide server settings in subscription (happ) #5882
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#5882
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/5433
Author: @IgorKha
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/20/2026
Merged by: @MHSanaei
Base:
main← Head:feat/happ-hide-settings📝 Commits (5)
509427ffeat(settings): add option to hide server settings in subscriptiond2c5c14Merge branch 'main' into feat/happ-hide-settings97bdf43Merge branch 'main' into feat/happ-hide-settings326fa43chore: regenerate codegen and add translations for subHideSettingsf75a1d3fix(sub): add subHideSettings default to settings map📊 Changes
24 files changed (+69 additions, -4 deletions)
View changed files
📝
frontend/src/generated/examples.ts(+2 -0)📝
frontend/src/generated/schemas.ts(+10 -0)📝
frontend/src/generated/types.ts(+2 -0)📝
frontend/src/generated/zod.ts(+2 -0)📝
frontend/src/models/setting.ts(+1 -0)📝
frontend/src/pages/settings/SubscriptionGeneralTab.tsx(+3 -0)📝
frontend/src/schemas/setting.ts(+1 -0)📝
internal/sub/controller.go(+10 -3)📝
internal/sub/sub.go(+6 -1)📝
internal/web/entity/entity.go(+1 -0)📝
internal/web/service/setting.go(+5 -0)📝
internal/web/translation/ar-EG.json(+2 -0)📝
internal/web/translation/en-US.json(+2 -0)📝
internal/web/translation/es-ES.json(+2 -0)📝
internal/web/translation/fa-IR.json(+2 -0)📝
internal/web/translation/id-ID.json(+2 -0)📝
internal/web/translation/ja-JP.json(+2 -0)📝
internal/web/translation/pt-BR.json(+2 -0)📝
internal/web/translation/ru-RU.json(+2 -0)📝
internal/web/translation/tr-TR.json(+2 -0)...and 4 more files
📄 Description
Summary
Adds a new subscription setting for Happ clients to hide server settings from the client UI
Why
Some deployments need to prevent end users from viewing/editing server configuration in Happ while still consuming subscriptions
Type of change
Areas affected
How was this tested?
Manual verification steps:
curl -v <sub-link>and confirm that the response contains the header:Screenshots / recordings
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.