From 42bb5910b5e3f7ae647eeba094c56cdb1cf0f66a Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sat, 27 Jun 2026 16:53:23 -0600 Subject: [PATCH] revert(queue): restore the paginator (growing-list was wrong) Owner feedback: the up-next must stay PAGINATED to bound CPU/rendering on huge queues (1000+ tracks); the growing-list from the prior pass loads them all. Restore PAGE_SIZE = 40. The cross-page drag (drop-on-page + auto-scroll) is a separate pending rework. cc --- crates/qbz/src/queue.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/qbz/src/queue.rs b/crates/qbz/src/queue.rs index b35bc062b..f1e785dab 100644 --- a/crates/qbz/src/queue.rs +++ b/crates/qbz/src/queue.rs @@ -22,13 +22,11 @@ use slint::{ComponentHandle, Model}; use crate::adapter::SlintAdapter; use crate::{AppWindow, ImmersiveState, QueueItem, QueueState}; -/// Up-next "page" size. Set effectively unbounded so the queue renders the -/// WHOLE up-next as ONE scrollable list (a growing list, like the immersive + -/// miniplayer queues) instead of 40-row pages — this dissolves the cross-page -/// drag limitation: a dragged row can now reach any slot in one list. Kept as a -/// single large "page" so the pagination + reorder index math stays uniform; -/// the paginator UI auto-hides at `page_count == 1` (QueueSidebar.slint:624). -pub const PAGE_SIZE: usize = 100_000; +/// Upcoming tracks shown per paginator page. PAGINATED (not a growing list) to +/// keep CPU/rendering bounded on huge queues (1000+ tracks) — owner preference. +/// The cross-page drag (moving a dragged row to another page) is a SEPARATE +/// pending rework (paginator drop-zones + drag auto-scroll), tracked on its own. +pub const PAGE_SIZE: usize = 40; type Runtime = Arc>;