[GH-ISSUE #5093] [Feature]: Advanced Announcement and Inbound Description in Happ client #3581

Open
opened 2026-10-31 20:33:28 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @gggoshaa on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5093

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@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.tsx lines 165–173):

Setting key HTTP response header Purpose
subAnnounce Announce: base64:<text> Basic announcement text
subEnableRouting Routing-Enable: true/false Enable routing injection
subRoutingRules Routing: <rules> Global routing rules (e.g. 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

  1. 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 Announce header carries. This would require new settings fields and corresponding header logic in sub/subController.go.

  2. Per-inbound server description — The Inbound model (database/model/model.go lines 46–83) has a Remark field (used as the server name in share links) but no Description field. Adding one would touch several layers:

    • A new database column + migration in database/
    • Frontend inbound form changes to expose the field
    • Subscription service changes (sub/subService.go) to embed the description in each generated share link

If you'd like to implement this, the relevant starting points are:

  • Global Happ settings: web/service/setting.go (getters around line 595), sub/subController.go (ApplyCommonHeaders), frontend/src/pages/settings/SubscriptionGeneralTab.tsx
  • Per-inbound data: database/model/model.go (Inbound struct), sub/subService.go (link generation), inbound form in frontend/src/pages/inbounds/

PRs are welcome (see CONTRIBUTING.md).

<!-- gh-comment-id:4653124470 --> @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.tsx` lines 165–173): | Setting key | HTTP response header | Purpose | |---|---|---| | `subAnnounce` | `Announce: base64:<text>` | Basic announcement text | | `subEnableRouting` | `Routing-Enable: true/false` | Enable routing injection | | `subRoutingRules` | `Routing: <rules>` | Global routing rules (e.g. `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** 1. **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 `Announce` header carries. This would require new settings fields and corresponding header logic in `sub/subController.go`. 2. **Per-inbound server description** — The `Inbound` model (`database/model/model.go` lines 46–83) has a `Remark` field (used as the server name in share links) but **no `Description` field**. Adding one would touch several layers: - A new database column + migration in `database/` - Frontend inbound form changes to expose the field - Subscription service changes (`sub/subService.go`) to embed the description in each generated share link --- If you'd like to implement this, the relevant starting points are: - Global Happ settings: `web/service/setting.go` (getters around line 595), `sub/subController.go` (`ApplyCommonHeaders`), `frontend/src/pages/settings/SubscriptionGeneralTab.tsx` - Per-inbound data: `database/model/model.go` (`Inbound` struct), `sub/subService.go` (link generation), inbound form in `frontend/src/pages/inbounds/` PRs are welcome (see [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md)).
Author
Owner

@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

<!-- gh-comment-id:5478783180 --> @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
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#3581
No description provided.