From 2d22c9f7f08f441c8452be13abf99f9d1531c1a3 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sat, 1 Nov 2025 23:26:02 -0700 Subject: [PATCH] Update diffusion_models display to 'Diffusion' in asset browser (#6533) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Update the display label for `diffusion_models` category from "Diffusion Models" to "Diffusion" in the asset browser/gallery UI - Added special case handling in `formatCategoryLabel` function for cleaner display - This is a display-only change that does not affect underlying data structures or API calls ## Test plan - [x] Unit tests pass - [x] Linter passes - [x] Formatter passes - [x] Type checking passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6533-Update-diffusion_models-display-to-Diffusion-in-asset-browser-29f6d73d365081009fa5cb396861570b) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne Co-authored-by: Claude --- src/platform/assets/utils/categoryLabel.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/assets/utils/categoryLabel.ts b/src/platform/assets/utils/categoryLabel.ts index 354249b2d..e5a655333 100644 --- a/src/platform/assets/utils/categoryLabel.ts +++ b/src/platform/assets/utils/categoryLabel.ts @@ -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) => {