sort template workflows by required vram (#6285)

## Summary

Resolves https://github.com/Comfy-Org/ComfyUI_frontend/issues/6281 by
implementing the stubbed out vram sorting. Previously was waiting for it
to be added to the templates data and it now has
(https://github.com/Comfy-Org/workflow_templates/blob/main/templates/index.json)

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6285-sort-template-workflows-by-required-vram-2976d73d36508164a8f9fab438f53b21)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2025-10-25 15:52:24 -07:00
committed by GitHub
parent 23e0d26ff8
commit 2ea6c92030
3 changed files with 261 additions and 3 deletions

View File

@@ -18,6 +18,10 @@ export interface TemplateInfo {
date?: string
useCase?: string
license?: string
/**
* Estimated VRAM requirement in bytes.
*/
vram?: number
size?: number
}