feat(web): order the In-queue tab next-up-first with a "Next up" marker
The queue tab showed newest-first (API returns createdAt desc) but the worker claims the oldest queued job next (claim_next: ORDER BY createdAt ASC) — so the item that ran next was at the BOTTOM. Sort the queue bucket ascending so it matches processing order, and badge the first claimable row (oldest, not individually paused) as "Next up". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ export function JobRow({
|
||||
album,
|
||||
kind,
|
||||
label,
|
||||
marker,
|
||||
meta,
|
||||
note,
|
||||
bar,
|
||||
@@ -22,6 +23,7 @@ export function JobRow({
|
||||
album: string;
|
||||
kind: Kind;
|
||||
label: string;
|
||||
marker?: string;
|
||||
meta?: ReactNode;
|
||||
note?: ReactNode;
|
||||
bar?: ReactNode;
|
||||
@@ -31,6 +33,7 @@ export function JobRow({
|
||||
<div className="stripe" />
|
||||
<div>
|
||||
<h3 className="title">
|
||||
{marker ? <span className="nextup">{marker}</span> : null}
|
||||
{album} <span className="artist">· {artist}</span>
|
||||
</h3>
|
||||
{meta ? <div className="meta">{meta}</div> : null}
|
||||
|
||||
Reference in New Issue
Block a user