chore: task list order

This commit is contained in:
Richard Tang
2026-04-27 10:55:18 -07:00
parent cb1484be85
commit facd919371
+19 -16
View File
@@ -108,6 +108,25 @@ function TaskListPanelInner({ title, variant = "rail", onClose }: TaskListPanelP
</p> </p>
) : ( ) : (
<> <>
{/* Completed sits above Active so finished tasks stay visually
* "above" the work that came after them — preserves the order
* the user originally saw before the status flipped. */}
<Section
label="Completed"
count={buckets.completed.length}
open={completedOpen}
onToggle={() => setCompletedOpen((v) => !v)}
>
{buckets.completed.map((t) => (
<RefItem
key={t.id}
task={t}
itemRefs={itemRefs}
unresolved={[]}
onJumpToBlocker={handleJumpToBlocker}
/>
))}
</Section>
<Section <Section
label="Active" label="Active"
count={buckets.active.length} count={buckets.active.length}
@@ -140,22 +159,6 @@ function TaskListPanelInner({ title, variant = "rail", onClose }: TaskListPanelP
/> />
))} ))}
</Section> </Section>
<Section
label="Completed"
count={buckets.completed.length}
open={completedOpen}
onToggle={() => setCompletedOpen((v) => !v)}
>
{buckets.completed.map((t) => (
<RefItem
key={t.id}
task={t}
itemRefs={itemRefs}
unresolved={[]}
onJumpToBlocker={handleJumpToBlocker}
/>
))}
</Section>
</> </>
)} )}
</div> </div>