File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -301,14 +301,20 @@ test.describe('Settings', () => {
301301} )
302302
303303test . describe ( 'Support' , ( ) => {
304- test ( 'Should open external zendesk link' , async ( { comfyPage } ) => {
304+ test ( 'Should open external zendesk link with OSS tag' , async ( {
305+ comfyPage
306+ } ) => {
305307 await comfyPage . setSetting ( 'Comfy.UseNewMenu' , 'Top' )
306308 const pagePromise = comfyPage . page . context ( ) . waitForEvent ( 'page' )
307309 await comfyPage . menu . topbar . triggerTopbarCommand ( [ 'Help' , 'Support' ] )
308310 const newPage = await pagePromise
309311
310312 await newPage . waitForLoadState ( 'networkidle' )
311313 await expect ( newPage ) . toHaveURL ( / .* s u p p o r t \. c o m f y \. o r g .* / )
314+
315+ const url = new URL ( newPage . url ( ) )
316+ expect ( url . searchParams . get ( 'tf_42243568391700' ) ) . toBe ( 'oss' )
317+
312318 await newPage . close ( )
313319 } )
314320} )
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { useAssetBrowserDialog } from '@/platform/assets/composables/useAssetBro
1919import { createModelNodeFromAsset } from '@/platform/assets/utils/createModelNodeFromAsset'
2020import { isCloud } from '@/platform/distribution/types'
2121import { useSettingStore } from '@/platform/settings/settingStore'
22+ import { SUPPORT_URL } from '@/platform/support/config'
2223import { useTelemetry } from '@/platform/telemetry'
2324import { useToastStore } from '@/platform/updates/common/toastStore'
2425import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
@@ -771,7 +772,7 @@ export function useCoreCommands(): ComfyCommand[] {
771772 label : 'Contact Support' ,
772773 versionAdded : '1.17.8' ,
773774 function : ( ) => {
774- window . open ( 'https://support.comfy.org/' , '_blank' )
775+ window . open ( SUPPORT_URL , '_blank' )
775776 }
776777 } ,
777778 {
Original file line number Diff line number Diff line change 1+ import { isCloud } from '@/platform/distribution/types'
2+
3+ /**
4+ * Zendesk ticket form field ID for the distribution tag.
5+ * This field is used to categorize support requests by their source (cloud vs OSS).
6+ */
7+ const DISTRIBUTION_FIELD_ID = 'tf_42243568391700'
8+
9+ /**
10+ * Support URLs for the ComfyUI platform.
11+ * The URL varies based on whether the application is running in Cloud or OSS distribution.
12+ *
13+ * - Cloud: Includes 'ccloud' tag for identifying cloud-based support requests
14+ * - OSS: Includes 'oss' tag for identifying open-source support requests
15+ */
16+ const TAG = isCloud ? 'ccloud' : 'oss'
17+ export const SUPPORT_URL = `https://support.comfy.org/hc/en-us/requests/new?${ DISTRIBUTION_FIELD_ID } =${ TAG } `
You can’t perform that action at this time.
0 commit comments