LCOV - code coverage report
Current view: top level - src/components/queue - QueueInlineProgressSummary.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 8 8
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <template>
       2           22 :   <div v-if="shouldShow" class="flex justify-end">
       3              :     <div
       4              :       class="flex items-center text-[0.75rem] leading-[normal] whitespace-nowrap drop-shadow-md"
       5              :       role="status"
       6              :       aria-live="polite"
       7              :       aria-atomic="true"
       8              :     >
       9              :       <div class="flex items-center">
      10              :         <span class="font-normal">
      11              :           {{ t('sideToolbar.queueProgressOverlay.inlineTotalLabel') }}:
      12              :         </span>
      13              :         <span class="w-[5ch] shrink-0 text-right font-bold tabular-nums">
      14              :           {{ totalPercentFormatted }}
      15              :         </span>
      16              :       </div>
      17              : 
      18              :       <div class="flex items-center text-right text-muted-foreground">
      19              :         <span class="w-[16ch] shrink-0 truncate" :title="currentNodeName">
      20              :           {{ currentNodeName }}:
      21              :         </span>
      22              :         <span class="w-[5ch] shrink-0 tabular-nums">
      23              :           {{ currentNodePercentFormatted }}
      24              :         </span>
      25              :       </div>
      26              :     </div>
      27              :   </div>
      28              : </template>
      29              : 
      30              : <script setup lang="ts">
      31              : import { computed } from 'vue'
      32              : import { useI18n } from 'vue-i18n'
      33              : 
      34              : import { useQueueProgress } from '@/composables/queue/useQueueProgress'
      35              : import { useExecutionStore } from '@/stores/executionStore'
      36              : import { resolveNodeDisplayName } from '@/utils/nodeTitleUtil'
      37              : 
      38           12 : const props = defineProps<{
      39              :   hidden?: boolean
      40              : }>()
      41              : 
      42           12 : const { t } = useI18n()
      43              : 
      44           12 : const executionStore = useExecutionStore()
      45           12 : const {
      46              :   totalPercent,
      47              :   totalPercentFormatted,
      48              :   currentNodePercent,
      49              :   currentNodePercentFormatted
      50              : } = useQueueProgress()
      51              : 
      52           12 : const currentNodeName = computed(() => {
      53            6 :   return resolveNodeDisplayName(executionStore.executingNode, {
      54              :     emptyLabel: t('g.emDash'),
      55              :     untitledLabel: t('g.untitled')
      56              :   })
      57              : })
      58              : 
      59           12 : const shouldShow = computed(
      60              :   () =>
      61              :     !props.hidden &&
      62              :     (!executionStore.isIdle ||
      63              :       totalPercent.value > 0 ||
      64              :       currentNodePercent.value > 0)
      65              : )
      66              : </script>
        

Generated by: LCOV version 2.0-1