LCOV - code coverage report
Current view: top level - src/platform/workflowErrors/panel - TabErrors.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          113 :   <div class="flex h-full min-w-0 flex-col">
       3              :     <ErrorGroupList
       4              :       ref="errorList"
       5              :       :selected-items
       6              :       class="min-h-0 flex-1"
       7              :       @issue-count="issueCount = $event"
       8              :       @locate-node="(nodeId, nodeMap) => emit('locateNode', nodeId, nodeMap)"
       9              :     />
      10              : 
      11              :     <ErrorPanelSurveyCta v-if="ErrorPanelSurveyCta" />
      12              : 
      13              :     <div class="min-w-0 shrink-0 border-t bg-background p-4">
      14              :       <Button
      15              :         v-if="canAskAgent && issueCount > 0"
      16              :         variant="outline"
      17              :         size="sm"
      18              :         class="mb-3 w-full"
      19              :         data-testid="errors-footer-ask-agent"
      20              :         @click="errorList?.askAboutAllIssues()"
      21              :       >
      22              :         {{ t('rightSidePanel.askAgentAboutAll', { count: issueCount }) }}
      23              :       </Button>
      24              :       <i18n-t
      25              :         keypath="rightSidePanel.errorHelp"
      26              :         tag="p"
      27              :         class="m-0 text-sm/tight wrap-break-word text-muted-foreground"
      28              :       >
      29              :         <template #github>
      30              :           <Button
      31              :             variant="textonly"
      32              :             size="unset"
      33              :             class="inline text-inherit underline"
      34              :             @click="openGitHubIssues"
      35              :           >
      36              :             {{ t('rightSidePanel.errorHelpGithub') }}
      37              :           </Button>
      38              :         </template>
      39              :         <template #support>
      40              :           <Button
      41              :             variant="textonly"
      42              :             size="unset"
      43              :             class="inline text-inherit underline"
      44              :             @click="contactSupport"
      45              :           >
      46              :             {{ t('rightSidePanel.errorHelpSupport') }}
      47              :           </Button>
      48              :         </template>
      49              :       </i18n-t>
      50              :     </div>
      51              :   </div>
      52              : </template>
      53              : 
      54              : <script setup lang="ts">
      55              : import { defineAsyncComponent, ref, useTemplateRef } from 'vue'
      56              : import { useI18n } from 'vue-i18n'
      57              : import type { Positionable } from '@comfyorg/graph-model/interfaces'
      58              : 
      59              : import Button from '@comfyorg/design-system/button/Button'
      60              : import { isCloud, isDesktop, isNightly } from '@/platform/distribution/types'
      61              : import { useAskAgentPort } from '@/platform/workflowErrors/askAgentPort'
      62              : import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
      63              : 
      64              : import ErrorGroupList from './ErrorGroupList.vue'
      65              : import { useErrorActions } from './useErrorActions'
      66              : 
      67              : const { selectedItems = [] } = defineProps<{
      68              :   selectedItems?: readonly Positionable[]
      69              : }>()
      70              : 
      71           89 : const emit = defineEmits<{
      72              :   locateNode: [nodeId: string, executionIdMap?: Map<string, LGraphNode>]
      73              : }>()
      74              : 
      75           89 : const ErrorPanelSurveyCta =
      76              :   isNightly && !isCloud && !isDesktop
      77              :     ? defineAsyncComponent(
      78              :         () => import('@/platform/surveys/ErrorPanelSurveyCta.vue')
      79              :       )
      80              :     : undefined
      81              : 
      82           89 : const { t } = useI18n()
      83           89 : const { openGitHubIssues, contactSupport } = useErrorActions()
      84           89 : const { canAskAgent } = useAskAgentPort()
      85           89 : const errorList = useTemplateRef('errorList')
      86           89 : const issueCount = ref(0)
      87              : </script>
        

Generated by: LCOV version 2.0-1