[backport rh-test] Update diffusion_models display to 'Diffusion' in asset browser (#6534)

Backport of #6533 to `rh-test`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6534-backport-rh-test-Update-diffusion_models-display-to-Diffusion-in-asset-browser-29f6d73d36508110915ddd68923a05c4)
by [Unito](https://www.unito.io)

Co-authored-by: Christian Byrne <cbyrne@comfy.org>
Co-authored-by: Christian Byrne <chrbyrne96@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Comfy Org PR Bot
2025-11-03 01:43:14 +09:00
committed by GitHub
parent 48173615aa
commit 947b66e60c

View File

@@ -3,6 +3,9 @@ const ACRONYM_TAGS = new Set(['VAE', 'CLIP', 'GLIGEN'])
export function formatCategoryLabel(raw?: string): string {
if (!raw) return 'Models'
// Special display name mappings
if (raw === 'diffusion_models') return 'Diffusion'
return raw
.split('_')
.map((segment) => {