[backport rh-test] feat(AssetCard): remove model size (#6228)

Backport of #6227 to `rh-test`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6228-backport-rh-test-feat-AssetCard-remove-model-size-2956d73d3650819b97d1d43d473e9228)
by [Unito](https://www.unito.io)

Co-authored-by: Arjan Singh <1598641+arjansingh@users.noreply.github.com>
This commit is contained in:
Comfy Org PR Bot
2025-10-24 03:57:04 +09:00
committed by GitHub
parent dd1af641db
commit 797b1c5bae
3 changed files with 0 additions and 29 deletions

View File

@@ -12,7 +12,6 @@ const createAssetData = (
...baseAsset,
description:
'High-quality realistic images with perfect detail and natural lighting effects for professional photography',
formattedSize: '2.1 GB',
badges: [
{ label: 'checkpoints', type: 'type' },
{ label: '2.1 GB', type: 'size' }

View File

@@ -7,7 +7,6 @@ import {
getAssetBaseModel,
getAssetDescription
} from '@/platform/assets/utils/assetMetadataUtils'
import { formatSize } from '@/utils/formatUtil'
function filterByCategory(category: string) {
return (asset: AssetItem) => {
@@ -54,7 +53,6 @@ type AssetBadge = {
// Display properties for transformed assets
export interface AssetDisplayItem extends AssetItem {
description: string
formattedSize: string
badges: AssetBadge[]
stats: {
formattedDate?: string
@@ -85,9 +83,6 @@ export function useAssetBrowser(assets: AssetItem[] = []) {
getAssetDescription(asset) ||
`${typeTag || t('assetBrowser.unknown')} model`
// Format file size
const formattedSize = formatSize(asset.size)
// Create badges from tags and metadata
const badges: AssetBadge[] = []
@@ -105,9 +100,6 @@ export function useAssetBrowser(assets: AssetItem[] = []) {
})
}
// Size badge
badges.push({ label: formattedSize, type: 'size' })
// Create display stats from API data
const stats = {
formattedDate: d(new Date(asset.created_at), { dateStyle: 'short' }),
@@ -118,7 +110,6 @@ export function useAssetBrowser(assets: AssetItem[] = []) {
return {
...asset,
description,
formattedSize,
badges,
stats
}