Sort Pipeline Details events newest-first#
Problem#
Events on the Pipeline Details page rendered in insertion order, making it hard to find recent events without scrolling to the bottom.
Task / Link#
GitHub Issue #40
Changes#
- Sort
task.eventsbycreatedAtdescending before rendering inapp/pipeline/[taskId]/page.tsx - Tie-break on
iddescending for events with identical timestamps - Uses
[...array].sort()to avoid mutating the original array
Notes#
The /events page uses a separate DataTable component and getEvents() API — out of scope for this change.
Testing#
npm run lint— no warnings or errorsnpm run build— clean build