@@ -42,7 +42,13 @@ const RETRIEVE_ATTRIBUTES: SearchAttribute[] = [
4242 'latest_version_status' ,
4343 'comfy_node_extract_status' ,
4444 'id' ,
45- 'icon_url'
45+ 'icon_url' ,
46+ 'github_stars' ,
47+ 'supported_os' ,
48+ 'supported_comfyui_version' ,
49+ 'supported_comfyui_frontend_version' ,
50+ 'supported_accelerators' ,
51+ 'banner_url'
4652]
4753
4854const searchPacksCache = new QuickLRU < string , SearchPacksResult > ( {
@@ -86,9 +92,19 @@ const toRegistryPack = memoize(
8692 icon : algoliaNode . icon_url ,
8793 latest_version : toRegistryLatestVersion ( algoliaNode ) ,
8894 publisher : toRegistryPublisher ( algoliaNode ) ,
95+ created_at : algoliaNode . create_time ,
96+ category : algoliaNode . category ,
97+ author : algoliaNode . author ,
98+ tags : algoliaNode . tags ,
99+ github_stars : algoliaNode . github_stars ,
100+ supported_os : algoliaNode . supported_os ,
101+ supported_comfyui_version : algoliaNode . supported_comfyui_version ,
102+ supported_comfyui_frontend_version :
103+ algoliaNode . supported_comfyui_frontend_version ,
104+ supported_accelerators : algoliaNode . supported_accelerators ,
105+ banner_url : algoliaNode . banner_url ,
89106 // @ts -expect-error comfy_nodes also not in node info
90- comfy_nodes : algoliaNode . comfy_nodes ,
91- create_time : algoliaNode . create_time
107+ comfy_nodes : algoliaNode . comfy_nodes
92108 }
93109 } ,
94110 ( algoliaNode : AlgoliaNodePack ) => algoliaNode . id
@@ -187,9 +203,7 @@ export const useAlgoliaSearchProvider = (): NodePackSearchProvider => {
187203 case SortableAlgoliaField . Downloads :
188204 return pack . downloads ?? 0
189205 case SortableAlgoliaField . Created : {
190- // TODO: add create time to backend return type
191- // @ts -expect-error create_time is not in the RegistryNodePack type
192- const createTime = pack . create_time
206+ const createTime = pack . created_at
193207 return createTime ? new Date ( createTime ) . getTime ( ) : 0
194208 }
195209 case SortableAlgoliaField . Updated :
0 commit comments