feat: drag-to-reorder torrent provider tabs with localStorage persistence

Lets users customize the order of YTS / Pirate Bay / Toloka tabs in the
torrent search modal via drag-and-drop; the saved order also determines
which provider opens by default. dnd-kit is isolated to the modal's
lazily-loaded chunk so it doesn't affect the main bundle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nerandClaude Sonnet 4.6 committed 2026-06-06 22:20:19 +03:00
1 parent fef5838a23
commit b31bd062e2
4 files changed
+182 -23

No files matched your search

+3
View File
@@ -16,6 +16,9 @@
"node": "22.x"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-tabs": "^1.0.4",