Commit Graph

62 Commits

Author SHA1 Message Date
Chenlei Hu
9961be1bc7 Validate node def from /object_info endpoint (#159)
* Validate node def

* nit

* nit

* More tests
2024-07-18 12:20:47 -04:00
Chenlei Hu
2568746071 Add node search service test (#158) 2024-07-18 10:13:05 -04:00
Chenlei Hu
dea9af8650 Display frontend version in settings dialog (#157)
* Display frontend version in settings dialog

* Change execution order
2024-07-18 10:09:15 -04:00
Chenlei Hu
54246d37b0 Relands "Fix node searchbox default value setting" (#152)
* Revert "Revert "Fix node searchbox default value setting (#150)" (#151)"

This reverts commit bb02f935ff.

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-17 22:34:03 -04:00
Chenlei Hu
bb02f935ff Revert "Fix node searchbox default value setting (#150)" (#151)
This reverts commit 3dfef8a73e.
2024-07-17 22:30:36 -04:00
Chenlei Hu
3dfef8a73e Fix node searchbox default value setting (#150) 2024-07-17 22:23:49 -04:00
Chenlei Hu
7619e9159b Convert pos object to array on parsing (#147) 2024-07-17 20:57:14 -04:00
Chenlei Hu
31f4ee332a Fix bypass display issue (#144)
* Fix bypass display issue

* nit

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-17 17:27:24 -04:00
Chenlei Hu
13cda7de41 Annotate settings.ts (#134)
* Annotate settings.ts

* nit
2024-07-16 11:21:23 -04:00
Chenlei Hu
f1acdf976a Shift node color's brightness for light mode (#123)
* Shift node color's brightness for light mode

* nit

* Fix test
2024-07-13 09:01:35 -04:00
Chenlei Hu
a28ac0c0fa New searchbox with fuzzy search (WIP) (#83)
* Disable default searchbox

Add headlessui and vue

Add vite's vue plugin

Vue app helloworld

Format vue

Add vue shim

minimal working searchbox

Add primevue dark mode

Use primevue

nit

Add fuse fuzzy search

Add tailwindcss / center searchbox

Fix style

Add node source chip

desc text wrapping

Add placeholder

inputbox filter support wip

Revert some filter designs

Add filter modal

Drop down show all nodes

Change modal font

Add filtered search

nit

Complete on focus

Auto fill filterOption

Fix dropdown

Fix z-index

Fix search bug

Properly remove chip

Adjust node source detection

Resolve merge conflict

nit

* Refactor

* Use badge to display filter type

* nit

* Trigger on canvas event

* nit

* Auto add data type filter when link released

* nit

* Auto focus when shown

* Focus on add/remvoe filter

* close dialog when escape pressed

* Add node at fixed location

* nit

* Update litegraph

* nit

* Change theme

* Increase search limit

* Add node on event location

* Clear filter when dialog closed

* Enable/Disable new search bx

* Improve app loading

* Fix copy node

* Update test expectations

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-10 19:46:35 -04:00
pythongosssss
32d81c13ad Add testing for ComfyUI examples (#95)
* Add testing for ComfyUI examples

* Remove examples, add test to github action

* Create dir

* Update readme
2024-07-07 10:38:28 -04:00
Chenlei Hu
7dae2eb6ba Fix clipboard (#100)
* Fix clipboard

* Add clipboard tests

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-06 21:56:48 -04:00
Chenlei Hu
d1934f27c8 Use '@' path mapping (#94) 2024-07-05 22:04:29 -04:00
Chenlei Hu
e05a33cb17 Rename to ts (#92)
Rename

Remove ts-nocheck, fix errors

Update state when graph cleared via UI (#88)

Convert to ts, fix imports

Co-authored-by: pythongosssss <125205205+pythongosssss@users.noreply.github.com>
2024-07-05 21:18:32 -04:00
Chenlei Hu
84c939cf71 Rename ComfyWorkflow to ComfyWorkflowJSON (#91) 2024-07-05 21:04:32 -04:00
Chenlei Hu
d6b2d5fb4f Use npm package @ComfyOrg/litegraph (#89)
* Use npm to manage litegraph

* Fix merge issues caused by BetaUI change

* Switch to @comfyorg/litegraph

* Fix various import

* Fix css apply order bug

* Fix package lock

* Update litegraph

* Update litegraph

* Update browsertest expectations

* Update test expectations [skip ci]

* Fix default view screenshot

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-07-05 20:53:47 -04:00
bymyself
27c5bc1581 Update state when graph cleared via UI (#88) 2024-07-05 18:28:39 +01:00
Chenlei Hu
c4b6c9f63e [Sync] Skip state check hook on first load (#87) 2024-07-04 09:44:55 -04:00
Chenlei Hu
acdaa6a594 Format all code / Add pre-commit format hook (#81)
* Add format-guard

* Format code
2024-07-02 13:22:37 -04:00
Chenlei Hu
fc020e08c5 Replace \t with spaces (#80) 2024-07-02 12:29:17 -04:00
Chenlei Hu
5f979e844c Relands BetaUI (#77)
* PR1

* PR2

* pr3

* Fix

* Revert 3909

* Ignore/fix type errors

* Fix import
2024-07-01 18:07:12 -04:00
Chenlei Hu
b69f15e5d7 Revert "Beta UI by pythongosssss (#70)" (#72)
This reverts commit 0d084e2cb0.
2024-07-01 12:58:45 -04:00
Chenlei Hu
0d084e2cb0 Beta UI by pythongosssss (#70)
* PR1

* PR2

* pr3

* Fix

* Revert 3909

* Ignore/fix type errors
2024-07-01 12:55:16 -04:00
Chenlei Hu
3799100811 Fix workflow not importing from flac files on some systems. (#71) 2024-07-01 09:59:44 -04:00
Chenlei Hu
ee6788a35e Add object_info schema (#67) 2024-06-30 10:14:16 -04:00
Chenlei Hu
3238acd9c9 Sync flac metadata (#66) 2024-06-29 09:39:01 -04:00
Chenlei Hu
d4c8992356 Audio node widgets (#54)
* Add audio widgets

* Change rendering order

* Proper output node

* Change indent

* Fix param

* Hide audio widget when output is empty

* Load default value

* populate audio widget from history

* Prevent init if no audio selection
2024-06-27 09:11:31 -04:00
Chenlei Hu
8264eb4fee Add zod schema for TaskItem (#59)
* Add zod schema for TaskItem

* nit
2024-06-26 22:33:05 -04:00
Chenlei Hu
3ace859106 Revert "Use npm to manage litegraph dependency (#45)" (#47)
This reverts commit 4640eaf0ac.
2024-06-20 13:55:36 -04:00
Chenlei Hu
4640eaf0ac Use npm to manage litegraph dependency (#45)
* Add comfyui-litegraph dep

* remove static copy

* Remove litegraph impl

* Fix various issues

* LiteGraph import

* Fix test ref issue

* Change to stable version of litegraph

* update README
2024-06-19 23:08:43 -04:00
Chenlei Hu
3225d7cb6f Make dev server ready for use (#43)
* basic dev server

* nit

* Return empty extensions list for dev server

* Update readme
2024-06-18 21:07:45 -04:00
Chenlei Hu
584051b22f Migrate node templates (#40)
* rename

* Migrate node templates
2024-06-18 17:04:54 -04:00
Chenlei Hu
641c0fa01f Migrate groupNodeManage (#36)
* rename

* Migrate node manager
2024-06-18 15:24:28 -04:00
Chenlei Hu
681bb69217 Migrate Clipspace to ts (#30)
* rename

* Migrate to ts
2024-06-18 14:05:49 -04:00
Chenlei Hu
d7bf368cec Bundle all dynamically loaded css (#28)
* static css

* Fix css import in tests
2024-06-18 13:58:21 -04:00
Chenlei Hu
c064e2cc80 Fix extension script load timing (#29) 2024-06-18 13:55:27 -04:00
Chenlei Hu
eadcc5e72e Bundle all core extensions (#27) 2024-06-18 12:48:52 -04:00
Chenlei Hu
b11a12d925 Add workflow schema with zod (#22)
* Safe parse with zod

* Fix zod issue

* Fix all validation errors

* nit

* Add tests

* Add color fields

* Passthrough
2024-06-17 17:28:52 -04:00
Chenlei Hu
cc7ee23b91 Force import DraggableList (#24)
* Force import

* Fix circular import
2024-06-17 17:24:59 -04:00
huchenlei
d133d664b5 nit 2024-06-17 16:47:29 -04:00
Chenlei Hu
b794d96eff Bundle frontend app (#15)
* Add shim in vite build

* shim

* Move public back to src
2024-06-17 12:18:53 -04:00
Chenlei Hu
f85cb3d5e9 Migrate all tests to TypeScript (#19)
* Merge 2 npm repos

* Install ts-jest

* Update jestconfig

* Fix jest types

* jest fix

* Fix babel config ref issue

* Fix import

* Fix import meta issue

* fix generate

* Skip multi-user tests
2024-06-17 11:25:56 -04:00
Chenlei Hu
48d5870d9c Sync with upstream (#20) 2024-06-17 09:37:25 -04:00
Chenlei Hu
0ef74392ca Migrate ui/ (#14)
* Rename js to ts

* Fix all tsc errors
2024-06-14 20:53:25 -04:00
Chenlei Hu
1376459cd8 Migrate app.js (#12)
* Rename js to ts

* Fix all tsc errors

* nit
2024-06-14 17:11:19 -04:00
Chenlei Hu
23074eb823 Migrate api.js (#11)
* Rename file

* Migrate api.js
2024-06-14 15:11:09 -04:00
Chenlei Hu
42cf977ca1 Migrate pnginfo (#10) 2024-06-14 14:55:37 -04:00
Chenlei Hu
d85cff385d Migrate utils.js (#9)
* Rename js to ts

* Migrate utils
2024-06-14 14:38:49 -04:00
Chenlei Hu
bcf3a39de7 Migreate ui.js (#8)
* Rename js to ts

* Migrate ui.js
2024-06-14 14:28:39 -04:00