LCOV - code coverage report
Current view: top level - src/renderer/extensions/firstRunTour/gettingStarted - tutorialCards.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 4 4
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : /** The templates the Getting Started grid offers, in order. */
       2         2355 : export const CURATED_TEMPLATE_IDS = [
       3              :   'image_krea2_turbo_t2i',
       4              :   'image_z_image_turbo',
       5              :   'video_ltx2_3_i2v',
       6              :   'video_wan2_2_14B_i2v'
       7              : ] as const
       8              : 
       9              : /** Fills the grid, in order, when a curated template is missing from the data. */
      10         2355 : export const FALLBACK_TEMPLATE_IDS = [
      11              :   'templates-image_to_real',
      12              :   'image_qwen_image_edit_2509',
      13              :   'flux_fill_inpaint_example',
      14              :   'video_ltx2_i2v_distilled'
      15              : ] as const
      16              : 
      17         2355 : export const TUTORIAL_BADGE_ICON = 'icon-[lucide--graduation-cap]'
      18              : 
      19              : export interface TutorialCard {
      20              :   id: string
      21              :   titleKey: string
      22              :   url: string
      23              :   thumbnailTemplate: (typeof CURATED_TEMPLATE_IDS)[number]
      24              : }
      25              : 
      26              : /**
      27              :  * Thumbnails are offset from the Templates tab's order so the two grids don't
      28              :  * read as the same four images in the same places.
      29              :  */
      30         2355 : export const tutorialCards: readonly TutorialCard[] = [
      31              :   {
      32              :     id: 'interface-overview',
      33              :     titleKey: 'gettingStarted.tutorials.interfaceOverview',
      34              :     url: 'https://docs.comfy.org/interface/overview',
      35              :     thumbnailTemplate: 'image_z_image_turbo'
      36              :   },
      37              :   {
      38              :     id: 'text-to-image',
      39              :     titleKey: 'gettingStarted.tutorials.textToImage',
      40              :     url: 'https://docs.comfy.org/tutorials/basic/text-to-image',
      41              :     thumbnailTemplate: 'video_ltx2_3_i2v'
      42              :   },
      43              :   {
      44              :     id: 'image-to-image',
      45              :     titleKey: 'gettingStarted.tutorials.imageToImage',
      46              :     url: 'https://docs.comfy.org/tutorials/basic/image-to-image',
      47              :     thumbnailTemplate: 'video_wan2_2_14B_i2v'
      48              :   },
      49              :   {
      50              :     id: 'inpaint',
      51              :     titleKey: 'gettingStarted.tutorials.inpaint',
      52              :     url: 'https://docs.comfy.org/tutorials/basic/inpaint',
      53              :     thumbnailTemplate: 'image_krea2_turbo_t2i'
      54              :   }
      55              : ]
        

Generated by: LCOV version 2.0-1