mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5093] [Feature]: Advanced Announcement and Inbound Description in Happ client #3581
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#3581
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?
Originally created by @gggoshaa on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5093
Is your feature request related to a problem?
No
Describe the solution you'd like
make new settings in the subscriptions tab for Happ. here is the link to Happ wikipedia https://www.happ.su/main/dev-docs/app-management#advanced-announcements And also make a separate description for each inbound https://www.happ.su/main/dev-docs/app-management#server-description-in-the-subscription
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Frontend (UI / panel pages), Backend (API endpoints, login, settings), Subscription (share links / Clash / JSON)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 8, 2026):
Thanks for the detailed request. Here is what the codebase currently does and what would need to be added for each part.
What is already implemented
The panel already has a Happ section under Settings → Subscription → Information with three fields (source:
frontend/src/pages/settings/SubscriptionGeneralTab.tsxlines 165–173):subAnnounceAnnounce: base64:<text>subEnableRoutingRouting-Enable: true/falsesubRoutingRulesRouting: <rules>happ://routing/add/…)These headers are applied to every subscription response (links, JSON, Clash) in
sub/subController.go(ApplyCommonHeaders, lines 380–414).What would be new
Advanced Announcements — Happ's advanced announcement format (the link you provided) likely means support for structured announcement metadata (e.g. type, priority, icon, or multi-block content) beyond the plain string the current
Announceheader carries. This would require new settings fields and corresponding header logic insub/subController.go.Per-inbound server description — The
Inboundmodel (database/model/model.golines 46–83) has aRemarkfield (used as the server name in share links) but noDescriptionfield. Adding one would touch several layers:database/sub/subService.go) to embed the description in each generated share linkIf you'd like to implement this, the relevant starting points are:
web/service/setting.go(getters around line 595),sub/subController.go(ApplyCommonHeaders),frontend/src/pages/settings/SubscriptionGeneralTab.tsxdatabase/model/model.go(Inboundstruct),sub/subService.go(link generation), inbound form infrontend/src/pages/inbounds/PRs are welcome (see CONTRIBUTING.md).
@1323ED5 commented on GitHub (Aug 31, 2026):
I think the better way is to add custom headers not specific to HAPP, because different clients may use different headers, and that will make supporting this feature harder