filtered
2017b9016b
Add TS types - API ( #1736 )
...
* nit
* Add TS types - API events
* Replace all API event emits with type-safe variants
* Add missing API type
* nit
* Remove test code, nit
2024-11-29 13:15:25 -05:00
Chenlei Hu
9e565154a9
Rework user selection ( #1728 )
...
* Move to new route
* Convert to tailwind
* Basic style
* Add userStore
* nit
* nit
* nit
* Remove app.#setUser
* Route to user-select view
* Mock login
* Use primevue UI components
* handle create new user
* Remove legacy user selection
* Add logout button on side toolbar
* Add username to logout button tooltip
* Add playwright tests
* hide logout button in single user server
* nit
2024-11-28 23:36:41 -05:00
Chenlei Hu
df3fff5dbb
Remove migration logic (settings & templates storage location) ( #1732 )
...
* Remove isNewUserSession handling
* Remove writing of setting and templates to localStorage
2024-11-28 14:24:06 -05:00
Chenlei Hu
b0085114d7
Remove app.storageLocation handling ( #1731 )
2024-11-28 13:35:08 -05:00
Chenlei Hu
05fab91bda
Build comfyui-frontend-types library ( #1725 )
...
* Install vite-plugin-dts
* Explicitly type workflowStore
* Working rollup
* Hide diff type
* Inline primevue toast mesage types
* Add prepare-types script to generate package.json for type package
* Add global declaration
* Add publish types Github action
* Update litegraph
* Add @comfyorg to package name
2024-11-28 11:21:19 -05:00
Chenlei Hu
86fec820ac
Remove app.multiUserServer flag ( #1711 )
2024-11-26 16:06:58 -05:00
Chenlei Hu
d531bc34c4
Make ChangeTracker detect changes in workflow.extra (Except ds) ( #1692 )
...
* Compare workflow.extra content
* Add tests
2024-11-25 21:59:27 -05:00
Chenlei Hu
069dc67c30
Reland "Fix undo / redo filling with empty steps" ( #1653 )
...
* Revert "Revert "Fix undo / redo filling with empty steps (#1649 )" (#1652 )"
This reverts commit 7623810166 .
* Update test expectations
* Add dirty flag if workflow is not persisted
* Add dirty flag to other UI areas for new workflows
* Remove redundant code
* Fix regression: undo / redo steps lost on refresh
The history is still be cleared, but any changes made by issuing undo / redo comands prior to refresh are not lost.
* Update test expectations
Partially reverts f8cc2c0d67 - adds dirty flags back to unsaved workflows.
---------
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com >
2024-11-23 09:49:12 -05:00
Chenlei Hu
7623810166
Revert "Fix undo / redo filling with empty steps ( #1649 )" ( #1652 )
...
This reverts commit ad2c1a0d3e .
2024-11-22 22:02:56 -05:00
filtered
ad2c1a0d3e
Fix undo / redo filling with empty steps ( #1649 )
2024-11-22 21:49:13 -05:00
filtered
7e245ba1cf
Update Litegraph: Canvas Pointer ( #1556 )
...
* Litegraph: canvas.pointer
Clear @ts-expect-error
Fix exception thrown on slot double-click
Long-standing bug but has no real impact in prod - just logs an error.
Required for new connecting_link features.
Add settings: CanvasPointer options
Update litegraph 0.8.28
Fix regression in snap to grid render
Fix snap to grid marker always on
Update snap to grid to use Positionable API
Fix test clicks registering as double-click
Improve test precision
Current test proves it has changed to something smaller.
New test proves it is exactly what was specified.
Will need refinement when a limit is put on latent width.
Fix test expects collapse node to select node
Remove redundant code
Resolved by CanvasPointer
Fix flaky test - ContextMenu
Fix settings group
* Update litegraph
* Remove snapToGrid extension
* Update test expectations [skip ci]
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
Co-authored-by: github-actions <github-actions@github.com >
2024-11-18 10:50:51 -05:00
Chenlei Hu
545a990365
Disable debug logic in changeTracker ( #1577 )
2024-11-17 14:38:14 -05:00
Chenlei Hu
71e4a42cfe
Only persist workflow on workflow change/switch ( #1576 )
...
* Only persist workflow on workflow change/switch
* nit
* Add playwright test
* Add modify test
* nit
* Fix playwright tests
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-11-17 14:13:52 -05:00
filtered
dde0291add
Fix change tracker count desync on error ( #1555 )
...
* Add TS types
* Ensure changeTracker works after exceptions
Wraps all code between before/after change calls in try/finally blocks
2024-11-15 16:03:21 -05:00
filtered
b922aa5c7c
Add option to disable ctrl + shift + zoom ( #1545 )
...
* Add option to disable ctrl + shift + zoom
Minor change to default behaviour: zoom no longer triggers if alt key is also down.
* Update coreSettings.ts
Next release will be 1.4.0 to leave room for patches in 1.3 stable after today's main repo sync.
---------
Co-authored-by: Chenlei Hu <huchenlei@proton.me >
2024-11-15 09:10:09 -05:00
filtered
82d00a1bcf
Update Template copy & paste ( #1533 )
...
* Split original clipboard functions out
* Add version check for templates
* Fix regression in use template undo steps
2024-11-13 17:04:31 -05:00
Chenlei Hu
05ba526388
Type DOMWidget and DOMWidgetOptions ( #1517 )
...
* Type DOMWidget and DOMWidgetOptions
* Annotate widget value type
2024-11-12 13:35:24 -05:00
Chenlei Hu
4bc79181ae
Move DOMClippingEnabled to coreSettings.ts ( #1516 )
...
* Move DOMClippingEnabled to coreSettings.ts
* nit
2024-11-12 12:01:44 -05:00
filtered
59b555b448
Fix multiline text input alignment & clipping ( #1513 )
...
* Simplify multiline widget scaling
* Fix multiline widget clipping
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-11-12 10:38:03 -05:00
Chenlei Hu
1ff6e27d9c
Manage widget definitions with Pinia store ( #1510 )
...
* Fix compile
* nit
* Remove extensions.test
* nit
2024-11-11 17:23:52 -05:00
filtered
7bc79edf3d
Add back/forwards compatibility to schema validation ( #1501 )
...
* Allow future extensions of added schema objects
* Add explicit versioning to zod schemas
* Extend schema 0.4 with new fields in extras
- Allows Reroutes without using schema v1
- Reroute data is retained when using old versions - simply not displayed
* Add Reroute undo/redo support
2024-11-10 19:50:18 -05:00
Chenlei Hu
d9a34872c3
[Electron] Add basic welcome screen ( #1491 )
...
* WIP
* Add LogTerminal
* Modify server startup view
* Add installView
* Add basic welcome screen and dev server setup
* nit
* nit
* nit
* nit
* nit
2024-11-10 09:41:32 -05:00
Chenlei Hu
f8ec87ddea
Fix changeTracker modified state ( #1481 )
...
* Add jsondiffpatch
* Add logs
* Add graphDiff helper
* Fix changeTracker
* Add loglevel
* Add playwright test
* Fix jest test
* nit
* nit
* Fix test url
* nit
2024-11-08 22:24:35 -05:00
pythongosssss
7e0b87dd32
Live terminal output ( #1347 )
...
* Add live terminal output
* Fix scrolling
* Refactor loading
* Fallback to polling if endpoint fails
* Comment
* Move clientId to executionStore
Refactor types
* Remove polling
2024-11-08 15:38:21 -05:00
Zoltán Dócs
0161a670cf
Fit view to bounds ( #1474 )
...
* fit view:
- fit view to canvas selection
- fit view to whole graph when nothing is selected
- add button to graph canvas menu
- assign default keybinding '.'
* Adjust on changed APIs
* Update litegraph
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
2024-11-08 15:03:21 -05:00
Chenlei Hu
0eba49c536
Update litegraph (Animate to bounds) ( #1475 )
2024-11-08 14:12:58 -05:00
Chenlei Hu
073638672d
Fix ('STRING',) input node ( #1457 )
...
* Fix ('STRING',) input node
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-11-07 13:03:54 -05:00
Chenlei Hu
c56533bb23
Workflow Management Reworked ( #1406 )
...
* Merge temp userfile
Basic migration
Remove deprecated isFavourite
Rename
nit
nit
Rework open/load
Refactor save
Refactor delete
Remove workflow dep on manager
WIP
Change map to record
Fix directory
nit
isActive
Move
nit
Add unload
Add close workflow
Remove workflowManager.closeWorkflow
nit
Remove workflowManager.storePrompt
move from commandStore
move more from commandStore
nit
Use workflowservice
nit
nit
implement setWorkflow
nit
Remove workflows.ts
Fix strict errors
nit
nit
Resolves circular dep
nit
nit
Fix workflow switching
Add openworkflowPaths
Fix store
Fix key
Serialize by default
Fix proxy
nit
Update path
Proper sync
Fix tabs
WIP
nit
Resolve merge conflict
Fix userfile store tests
Update jest test
Update tabs
patch tests
Fix changeTracker init
Move insert to service
nit
Fix insert
nit
Handle bookmark rename
Refactor tests
Add delete workflow
Add test on deleting workflow
Add closeWorkflow tests
nit
* Fix path
* Move load next/previous
* Move logic from store to service
* nit
* nit
* nit
* nit
* nit
* Add ChangeTracker.initialState
* ChangeTracker load/unload
* Remove app.changeWorkflow
* Hook to app.ts
* Changetracker restore
* nit
* nit
* nit
* Add debug logs
* Remove unnecessary checkState on graphLoad
* nit
* Fix strict
* Fix temp workflow name
* Track ismodified
* Fix reactivity
* nit
* Fix graph equal
* nit
* update test
* nit
* nit
* Fix modified state
* nit
* Fix modified state
* Sidebar force close
* tabs force close
* Fix save
* Add load remote workflow test
* Force save
* Add save test
* nit
* Correctly handle delete last opened workflow
* nit
* Fix workflow rename
* Fix save
* Fix tests
* Fix strict
* Update playwright tests
* Fix filename conflict handling
* nit
* Merge temporary and persisted ref
* Update playwright expectations
* nit
* nit
* Fix saveAs
* Add playwright test
* nit
2024-11-05 11:03:27 -05:00
filtered
56b63ebab5
Update Litegraph API: Group move / select / titlebar ( #1418 )
...
* Litegraph: Group move / select
* Update litegraph
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
2024-11-03 18:45:20 -05:00
Chenlei Hu
00df7b428f
Animate goto node ( #1412 )
...
* Animate goto node
* Update litegraph (animateToNode)
2024-11-03 10:57:17 -05:00
Chenlei Hu
3a910f25e9
Track previous workflow name on Vue side ( #1404 )
2024-11-02 14:40:05 -04:00
Chenlei Hu
d719a4e0fb
Move exportWorkflow from menu to workflowService ( #1399 )
2024-11-01 19:44:21 -04:00
Chenlei Hu
d254559e20
[Refactor] Extract createTemporary ( #1398 )
...
* [Refactor] Extract createTemporary
* nit
2024-11-01 19:32:50 -04:00
pythongosssss
d701758663
Add support for hidden & advanced widgets ( #1389 )
...
* Add support for hidden & advanced widgets
* Fix
* Update package
* Remove ts-expect-error
* Fix test, tidy
2024-11-01 19:12:44 -04:00
Chenlei Hu
a11b78d1c3
Remove deprecated method isFavourite ( #1397 )
2024-11-01 19:12:04 -04:00
Chenlei Hu
dfb695be72
[Refactor] Rework userFileStore to match existing API on ComfyWorkflow ( #1394 )
...
* nit
* Move load
* nit
* nit
* Update store API
* nit
* nit
* Move api
* nit
* Update tests
* Add docs
* Add temp user file
* Implement save as
* Test saveAs
2024-10-31 21:58:00 -04:00
filtered
ed0592d6e0
Update litegraph API - add @ts-expect-error ( #1380 )
...
* Update litegraph API - add @ts-expect-error
LG update removes some implicit any, exposing existing errors
* Update litegraph
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
2024-10-30 20:05:04 -04:00
Chenlei Hu
94f4147f92
Fix double trigger of setting onChange callback ( #1385 )
...
* Fix onChange double trigger
* nit
* Add playwright test
2024-10-30 19:55:46 -04:00
Chenlei Hu
97c38583e9
Rename workspaceStateStore to workspaceStore ( #1374 )
2024-10-30 09:49:23 -04:00
Chenlei Hu
324eff93fd
Update Litegraph API - canvas.state ( #1372 )
...
* Update Litegraph API - canvas.state
* Update litegraph
---------
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com >
2024-10-29 22:07:04 -04:00
Chenlei Hu
35fab0bef3
Focus mode ( #1365 )
...
* Menu hamburger
* Focus
* nit
* nit
* nit
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-10-29 17:25:18 -04:00
Chenlei Hu
8dddffe840
Use browser download in missing model dialog ( #1362 )
...
* Remove custom backend download logic
* Add download hooks
* Download button
* Use browser download
* Update test
2024-10-29 14:07:16 -04:00
Chenlei Hu
4582c71583
[Refactor] Rework modelStore and ModelLibrarySidebarTab ( #1350 )
...
* nit
* Rename
* nit
* Move load model folders to app level
* Various fixes
* nit
* nit
* wip
* nit
* nit
* nit
* Split
* nit
* Add back spinner
* nit
* nit
* Add refresh button
* nit
* nit
* Preserve model folder order
* Avoid order change on folder open
2024-10-28 21:23:53 -04:00
Chenlei Hu
44b109a449
Add type annotation for missingNodeTypes ( #1349 )
...
* Add type annotation for missingNodeTypes
* nit
* nit
2024-10-28 17:26:52 -04:00
Chenlei Hu
229896a4b7
Restyle missing node warning dialog ( #1348 )
...
* nit
* Restyle missing node warning dialog
* nit
* nit
2024-10-28 16:45:47 -04:00
filtered
7d450adf93
Remove unused param - litegraph update ( #1335 )
2024-10-27 16:21:14 -04:00
Chenlei Hu
eed92864f2
Enable ts-strict for changeTracker ( #1338 )
...
* Fix app getter
* nit
* nit
* nit
* Fix rest of errors
* nit
2024-10-27 16:20:32 -04:00
Zoltán Dócs
7729611a2a
Bugfix node widgets wrongly being prepared for qeueing on saving the workflow ( #1331 )
...
- calling graphToPrompt() invokes beforeQueued() which should not happen when saving the workflow
2024-10-27 09:59:27 -04:00
Chenlei Hu
571386c061
Enable ts-strict for api.ts ( #1324 )
2024-10-26 18:08:24 -04:00
Chenlei Hu
44d886a18b
Enable ts-strict for ui/settings ( #1323 )
2024-10-26 17:25:15 -04:00