Skip to content

Commit 2d22c9f

Browse files
christian-byrnetrevorreznik05claude
authored
Update diffusion_models display to 'Diffusion' in asset browser (#6533)
## 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 <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent d808998 commit 2d22c9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform/assets/utils/categoryLabel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ const ACRONYM_TAGS = new Set(['VAE', 'CLIP', 'GLIGEN'])
33
export function formatCategoryLabel(raw?: string): string {
44
if (!raw) return 'Models'
55

6+
// Special display name mappings
7+
if (raw === 'diffusion_models') return 'Diffusion'
8+
69
return raw
710
.split('_')
811
.map((segment) => {

0 commit comments

Comments
 (0)