mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3975] [CLOSED] fix: 17 bugs - wrong error toasts, duplicate calls, hardcoded strings, dead code #5573
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#5573
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/3975
Author: @FluxLuFFy
Created: 3/28/2026
Status: ❌ Closed
Base:
main← Head:bugfix/comprehensive-fixes📝 Commits (2)
71dc7d9fix: comprehensive bug fixes - wrong toast messages, duplicate calls, hardcoded stringsbb732e0remove workflows (token lacks workflow scope)📊 Changes
6 files changed (+22 additions, -404 deletions)
View changed files
➖
.github/workflows/cleanup_caches.yml(+0 -31)➖
.github/workflows/docker.yml(+0 -62)➖
.github/workflows/release.yml(+0 -283)📝
web/controller/inbound.go(+17 -19)📝
web/controller/server.go(+3 -3)📝
web/service/inbound.go(+2 -6)📄 Description
Summary
Extends and goes beyond PR #3974 by fixing all instances of wrong toast messages across the entire codebase, plus additional bugs found during full code audit.
Bugs Fixed (17 total)
web/controller/inbound.go (14 fixes)
1-11. Wrong error toast messages on error paths (same class as PR #3974):
addInbound: showedinboundCreateSuccesson bind error →somethingWentWrongdelInbound: showedinboundDeleteSuccesson ID parse error →somethingWentWrongupdateInbound(2 errors): showedinboundUpdateSuccesson parse & bind errors →somethingWentWrongclearClientIps: showedupdateSuccesson clear error →somethingWentWrongaddInboundClient: showedinboundUpdateSuccesson bind error →somethingWentWrongdelInboundClient: showedinboundUpdateSuccesson ID parse error →somethingWentWrongupdateInboundClient: showedinboundUpdateSuccesson bind error →somethingWentWrongresetClientTraffic: showedinboundUpdateSuccesson ID parse error →somethingWentWrongresetAllClientTraffics: showedinboundUpdateSuccesson ID parse error →somethingWentWrongdelDepletedClients: showedinboundUpdateSuccesson ID parse error →somethingWentWrong12-13. Duplicate
SetToNeedRestart()calls:resetAllTraffics():SetToNeedRestart()was called both inelsebranch AND unconditionally afterresetAllClientTraffics(): same duplicate pattern14-16. Hardcoded strings in
delInboundClientByEmail:I18nWeb(c, "somethingWentWrong")I18nWeb(c, "somethingWentWrong")I18nWeb(c, "pages.inbounds.toasts.inboundClientDeleteSuccess")web/controller/server.go (3 fixes)
17. Hardcoded strings not using I18n:
getNewUUID: "Failed to generate UUID" →somethingWentWronggetNewmlkem768: "Failed to generate mlkem768 keys" →somethingWentWronggetNewEchCert: "get ech certificate" →somethingWentWrongweb/service/inbound.go (1 fix)
18. Duplicate dead code in
disableInvalidClients:if strings.Contains(...)was duplicated identically inside itselfFiles Changed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.