android: reorder from the sheet — a playlist row up, down or to the top; a queue row up or down

Without a drag: a playlist row's sheet moves it up, down or to the top and
persists the whole order in one call (playlist_set_order, as the desktop's
drop does); a queue row's sheet moves it up or down, never past the track
playing. Also src-tauri/android/ship.sh — one round end to end: the mock
walk, the embedded build installed, the phone walk, the commit, each step
gated on the one before.
This commit is contained in:
KeelrLeek committed 2026-09-13 20:55:50 -05:00
1 parent 991d52d0cc
commit 60303c8a95
7 files changed
+127 -7

No files matched your search

+9
View File
@@ -412,6 +412,15 @@ export function removeFromQueue(i) {
armPreload();
writeSession();
}
/** An upcoming row one place up or down, never past the current track. */
export function moveInQueue(i, dir) {
const j = i + (dir === "up" ? -1 : 1);
if (i <= player.qi || j <= player.qi || i >= player.queue.length || j >= player.queue.length) return;
const [row] = player.queue.splice(i, 1);
player.queue.splice(j, 0, row);
armPreload();
writeSession();
}
/** Pull an upcoming row up to right after the current track. */
export function moveToNext(i) {
if (i <= player.qi + 1 || i >= player.queue.length) return;