mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5625] [CLOSED] feat: add reusable links management #5935
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#5935
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/5625
Author: @saeedhasani
Created: 6/28/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (3)
c463a11feat: add reusable links management69f201cstyle(links): drop inline comments per repo convention9c71307Merge remote-tracking branch 'upstream/main' into feat/links-management-clean📊 Changes
35 files changed (+2602 additions, -35 deletions)
View changed files
📝
frontend/public/openapi.json(+485 -0)➕
frontend/src/api/queries/useLinkMutations.ts(+73 -0)➕
frontend/src/api/queries/useLinksQuery.ts(+33 -0)📝
frontend/src/api/queryKeys.ts(+4 -0)📝
frontend/src/layouts/AppSidebar.tsx(+4 -1)📝
frontend/src/pages/api-docs/endpoints.ts(+81 -0)📝
frontend/src/pages/clients/ClientFormModal.tsx(+119 -3)➕
frontend/src/pages/links/AttachExistingClientsModal.tsx(+249 -0)➕
frontend/src/pages/links/LinkFormModal.tsx(+96 -0)➕
frontend/src/pages/links/LinksPage.tsx(+365 -0)📝
frontend/src/routes.tsx(+2 -0)➕
frontend/src/schemas/api/link.ts(+35 -0)📝
internal/database/db.go(+1 -0)📝
internal/database/migrate_data.go(+1 -0)📝
internal/database/model/model.go(+13 -0)📝
internal/web/controller/api.go(+5 -0)📝
internal/web/controller/api_docs_test.go(+3 -1)➕
internal/web/controller/link.go(+186 -0)📝
internal/web/controller/spa.go(+1 -0)📝
internal/web/service/client.go(+7 -5)...and 15 more files
📄 Description
Summary
Adds a dedicated reusable Links management feature, separate from the newer Plugins work. This PR only covers globally managed external share links and remote subscription URLs that can be copied into client external-link lists.
What changed
linkstable and migration wiring for reusable link/subscription records./panel/api/links/*endpoints for listing, creating, updating, deleting, enabling/disabling, reordering, and assigning links to clients.CreateInBatches.frontend/public/openapi.json; the assign example now uses the API fieldattached.Scope
This PR intentionally contains only the Links feature. It does not include the Plugins page, plugin install API, or plugin contract changes from PR #5789.
Testing
go test ./internal/web/controller ./internal/web/service ./internal/databasenpm run buildNote on Claude Bot run
The linked Claude Bot run failed while trying to fetch the PR head into a local branch named
main(git fetch origin --depth=20 pull/5625/head:main) whilemainwas already checked out. That is a checkout/ref-name issue caused by this PR being opened from the fork branch namedmain, not a code/test failure.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.