mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-04 05:02:17 +00:00
feat: add "Similar to Current" sort option to template selector
Wire the existing templateSimilarity module into the template selector dialog so users can rank templates by how closely they match the nodes in their active workflow. The sort extracts node types from the current graph and scores each template using weighted Jaccard similarity across categories, tags, models, and required nodes. - Add 'similar-to-current' to sort dropdown, schema enum, type union, and telemetry type - Export computeSimilarity from templateSimilarity.ts for direct use - Add i18n key templateWorkflows.sort.similarToCurrent - Bump version to 1.44.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -724,6 +724,10 @@ const sortOptions = computed(() => [
|
||||
name: t('templateWorkflows.sort.recommended', 'Recommended'),
|
||||
value: 'recommended'
|
||||
},
|
||||
{
|
||||
name: t('templateWorkflows.sort.similarToCurrent', 'Similar to Current'),
|
||||
value: 'similar-to-current'
|
||||
},
|
||||
{
|
||||
name: t('templateWorkflows.sort.popular', 'Popular'),
|
||||
value: 'popular'
|
||||
|
||||
Reference in New Issue
Block a user