LCOV - code coverage report
Current view: top level - src/platform/workspace/components - MissingNodeDeploymentOffer.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 20.0 % 5 1
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <template>
       2              :   <div
       3            0 :     v-if="offer !== null"
       4              :     class="pb-3"
       5              :     data-testid="missing-node-deployment-offer"
       6              :   >
       7              :     <p
       8              :       v-if="offer.kind === 'none'"
       9              :       class="m-0 text-xs/relaxed text-muted-foreground"
      10              :     >
      11              :       {{ t('rightSidePanel.missingNodePacks.noDeploymentRunsIt') }}
      12              :     </p>
      13              :     <div v-else class="flex flex-wrap items-center gap-1.5">
      14              :       <span class="text-xs text-muted-foreground">
      15              :         {{ t('rightSidePanel.missingNodePacks.runsOn') }}
      16              :       </span>
      17            0 :       <Button
      18              :         v-for="choice in offer.choices.slice(0, NAMED)"
      19              :         :key="choice.deploymentId ?? 'comfy-cloud'"
      20              :         variant="secondary"
      21              :         size="sm"
      22              :         :disabled="isSwitching"
      23              :         @click="choose(choice.deploymentId)"
      24              :       >
      25              :         {{ choice.label }}
      26              :       </Button>
      27              :       <Button
      28              :         v-if="offer.choices.length > NAMED"
      29              :         variant="muted-textonly"
      30              :         size="sm"
      31              :         @click="openSwitcher()"
      32              :       >
      33              :         {{
      34              :           t('rightSidePanel.missingNodePacks.andMore', {
      35              :             count: offer.choices.length - NAMED
      36              :           })
      37              :         }}
      38              :       </Button>
      39              :     </div>
      40              :   </div>
      41              : </template>
      42              : 
      43              : <script setup lang="ts">
      44              : import { useI18n } from 'vue-i18n'
      45              : 
      46              : import Button from '@comfyorg/design-system/button/Button'
      47              : import { useMissingNodeDeploymentOffer } from '@/platform/workspace/composables/useMissingNodeDeploymentOffer'
      48              : 
      49         2355 : const NAMED = 3
      50              : 
      51            0 : const { t } = useI18n()
      52            0 : const { offer, choose, isSwitching, openSwitcher } =
      53              :   useMissingNodeDeploymentOffer()
      54              : </script>
        

Generated by: LCOV version 2.0-1