fix: apply queue popover review cleanups

This commit is contained in:
Benjamin Lu
2026-03-14 10:04:38 -07:00
parent 8da207973b
commit 1fb9bb5990
2 changed files with 6 additions and 8 deletions

View File

@@ -92,11 +92,11 @@ const mountJobAssetsList = (jobs: JobListItem[]) => {
})
}
afterEach(() => {
vi.useRealTimers()
})
describe('JobAssetsList', () => {
afterEach(() => {
vi.useRealTimers()
})
it('emits viewItem on preview-click for completed jobs with preview', async () => {
const job = buildJob()
const wrapper = mountJobAssetsList([job])

View File

@@ -11,7 +11,6 @@
<div
v-for="job in group.items"
:key="job.id"
class="relative"
:data-job-id="job.id"
@mouseenter="onJobEnter(job, $event)"
@mouseleave="onJobLeave(job.id)"
@@ -103,7 +102,7 @@ import AssetsListItem from '@/platform/assets/components/AssetsListItem.vue'
import { iconForJobState } from '@/utils/queueDisplay'
import { isActiveJobState } from '@/utils/queueUtil'
const props = defineProps<{ displayedJobGroups: JobGroup[] }>()
const { displayedJobGroups } = defineProps<{ displayedJobGroups: JobGroup[] }>()
const emit = defineEmits<{
(e: 'cancelItem', item: JobListItem): void
@@ -158,7 +157,6 @@ const resetActiveDetails = () => {
const scheduleDetailsShow = (job: JobListItem, rowElement: HTMLElement) => {
clearShowTimer()
activeRowElement.value = rowElement
showTimer.value = window.setTimeout(() => {
activeRowElement.value = rowElement
activeDetails.value = {
@@ -277,7 +275,7 @@ const getJobIconClass = (job: JobListItem): string | undefined => {
}
watch(
() => props.displayedJobGroups,
() => displayedJobGroups,
(groups) => {
const activeJobId = activeDetails.value?.jobId
if (!activeJobId) return