feat: drag and drop skins to reorder (#6357)

* feat: drag and drop skins to reorder

* feat: implement drag to reorder skins

* fix: ci

* remove: backend implementation

* regenerate sqlx

* fix: remove v-if selectable

* feat: remove drag handle

* refactor: pnpm prepr

* cargo fmt

* fix: dragging disable hover, wrong evt for edit skin + remove back of skin hover

---------

Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
This commit is contained in:
Truman Gao
2026-06-11 06:22:38 -06:00
committed by GitHub
parent d2a66bb2b0
commit c1780eef7d
29 changed files with 713 additions and 162 deletions
@@ -0,0 +1,13 @@
ALTER TABLE custom_minecraft_skins
ADD COLUMN display_order INTEGER NOT NULL DEFAULT 0;
UPDATE custom_minecraft_skins
SET display_order = (
SELECT COUNT(*)
FROM custom_minecraft_skins AS previous
WHERE previous.minecraft_user_uuid = custom_minecraft_skins.minecraft_user_uuid
AND previous.rowid <= custom_minecraft_skins.rowid
) - 1;
CREATE INDEX custom_minecraft_skins_user_display_order
ON custom_minecraft_skins (minecraft_user_uuid, display_order);