mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6204] [MERGED] refactor(frontend): remove unused response envelope schema #6167
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#6167
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/6204
Author: @n0ctal
Created: 8/12/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @MHSanaei
Base:
main← Head:codex/upstream-remove-unused-envelope📝 Commits (3)
80f1ab4refactor(frontend): remove unused response envelope schema820f29aMerge branch 'main' into codex/upstream-remove-unused-envelope9a83e4dMerge branch 'main' into codex/upstream-remove-unused-envelope📊 Changes
1 file changed (+0 additions, -10 deletions)
View changed files
➖
frontend/src/schemas/_envelope.ts(+0 -10)📄 Description
Summary
frontend/src/schemas/_envelope.tsexportsmsgSchemaandMsgOf. Neither is referenced anywhere in the repository. This removes the file.Why
The module arrived in
3f787ae1("complete Zod migration of frontend"). The response-envelope concept was then re-implemented independently infrontend/src/utils/index.ts, which declares its own localRespEnvelopetype and uses that instead._envelope.tswas left behind and has had no consumer since.Dead schema modules are worse than dead helpers: the next person adding response validation finds two envelope definitions and has to work out which one is authoritative.
Scope
frontend/src/schemas/_envelope.ts(10 lines).Nothing else changes. There is no barrel re-export of this module in
frontend/src/schemas/index.ts, and it is not produced by code generation.Validation
msgSchema,MsgOfand_envelopeacross.ts,.tsx,.html,.goand.json: zero matches outside the deleted file.knipno longer reports the file or its symbols.tsc --noEmit,eslint src,vitest run(1065 tests in 112 files) and the productionvite buildall pass.make gen-checkclean.Risk
Low. The only way this breaks a consumer is a fully dynamic, string-built import of the module path; the
import.meta.globpatterns in the tree were checked by hand and none matchsrc/schemas/_envelope.ts.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.