Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/composables/queue/useJobList.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { orderBy } from 'es-toolkit/array'
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import path for orderBy should use 'es-toolkit/compat' instead of 'es-toolkit/array' for consistency with the existing codebase. The file useRegistrySearch.ts already imports orderBy from 'es-toolkit/compat', and using the same import path ensures consistency across the project.

Suggested change
import { orderBy } from 'es-toolkit/array'
import { orderBy } from 'es-toolkit/compat'

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why we can't use array

import { computed, onUnmounted, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n'

Expand Down Expand Up @@ -205,10 +206,7 @@ export function useJobList() {
...queueStore.runningTasks,
...queueStore.historyTasks
]
return all.sort((a, b) => {
const delta = mostRecentTimestamp(b) - mostRecentTimestamp(a)
return delta === 0 ? 0 : delta
})
return orderBy(all, [mostRecentTimestamp], ['desc'])
})

const tasksWithJobState = computed<TaskWithState[]>(() =>
Expand Down