Chenlei Hu
6525ae7cf4
[Refactor] Rename hooks/ to composables/ ( #2437 )
2025-02-05 15:05:56 -05:00
Chenlei Hu
d8f074fea0
[Lint] Sort imports ( #2104 )
2024-12-30 17:26:37 -05:00
filtered
735153886f
Confirm delete workflow ( #1772 )
...
* Add confirm delete workflow prompt
* Add confirm delete workflow setting
* Add delete workflow tests
* Change dialog to modal, set default cancel
* Fix setting version key
* Rename for clarity
* Fix tests
- Move into correct section
- Add confirm control
* Export type: ShowDialogOptions
* Replace workflow overwrite with new dialog
* Add delete workflow confirmation dialog
* Update i18n
* Add item list support to confirmation dialog
* Prevent multiple dialogs for same action
* Add confirm close file when dirty
* Add i18n for overwrite dialog
* Fix regression: confirm dialog setting ignored
* Fix delete last workflow does not open replacement
* Update tests
2024-12-04 14:11:49 -05:00
Chenlei Hu
dabcd4741b
[Refactor] Extract command definitions to coreCommandHooks ( #1785 )
...
* [Refactor] Extract command definitions to coreCommandHooks
* Register core commands
* Fix rebase issue
2024-12-03 23:06:19 -05:00
Chenlei Hu
9cbcda20a7
[Refactor] Extract top menu bar command definitions ( #1778 )
2024-12-03 17:17:15 -08:00
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
filtered
abed0656af
Add Fit Group to Contents keybind ( #1658 )
...
* Add Fit Group to Nodes keyboard command
Fits all selected groups.
* nit - Rename
* Move to commandStore & Playwright test
* nit
* nit
* Update test expectations [skip ci]
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
Co-authored-by: github-actions <github-actions@github.com >
2024-11-23 17:15:52 -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
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
Chenlei Hu
2161ae4e5b
Pin selected items (Nodes + Groups) ( #1427 )
...
* Pin selected items (Nodes + Groups)
* Update litegraph
* Add playwright test
* nit
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-11-04 17:36:33 -05:00
filtered
3ba776e6ca
Add Litegraph multi-select & group nesting ( #1416 )
...
* Allow nested groups
Pass all selected items (new litegraph feature) instead of just selected nodes.
* Allow nested groups - context menus
* Update litegraph
* Update litegraph (Select all / Delete selected)
* Add playwright test
* nit
* Update test expectations [skip ci]
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
Co-authored-by: github-actions <github-actions@github.com >
2024-11-03 18:08:42 -05:00
Chenlei Hu
d719a4e0fb
Move exportWorkflow from menu to workflowService ( #1399 )
2024-11-01 19:44:21 -04:00
Chenlei Hu
97c38583e9
Rename workspaceStateStore to workspaceStore ( #1374 )
2024-10-30 09:49:23 -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
dc3dab4e1c
Enable ts-strict for commandStore ( #1321 )
2024-10-26 17:05:42 -04:00
Chenlei Hu
d142893244
Add bottom panel support ( #1294 )
...
* Add bottom panel
* Bottom panel store
* Extract ExtensionSlot component
* Tab rendering
* Add toggle button on top menu bar
* nit
* Add toggle button tooltip
* Add command
2024-10-24 15:15:19 -04:00
Chenlei Hu
5611e90fda
Add ts-strict-ignore plugin ( #1235 )
...
* Add ts-strict-ignore plugin
* nit
* Add to typecheck script
2024-10-12 11:56:49 -04:00
Chenlei Hu
a4e08f60fe
Extract theme toggle as command ( #1161 )
...
* Extract theme toggle as command
* nit
2024-10-07 21:54:58 -04:00
Chenlei Hu
cc17bee945
Manage app.ts litegraph keybindings ( #1151 )
...
* Manage app.ts litegraph keybindings
* nit
2024-10-07 16:50:58 -04:00
bymyself
3c70c1e463
Show keybinding on topbar dropdown menus ( #1127 )
...
* Show keybinding on topbar dropdown menus, resolve #1092
* Add text-muted to tailwind config
* Add Playwright test
* Preserve Primevue classes in menu item template
* Extend MenuItem
* Revert adding undo/redo to core keybindings
* Change test selector
* refactor
* Extract as component
* refactor
* nit
* fix extension API
---------
Co-authored-by: huchenlei <huchenlei@proton.me >
2024-10-06 12:08:16 -04:00
Chenlei Hu
4d5fbeff45
Add eslint-plugin-unused-imports ( #1121 )
2024-10-05 16:36:02 -04:00
Chenlei Hu
a852b8e6e1
[skip ci] Add ersionAdded to newly added commands ( #1110 )
2024-10-04 20:41:05 -04:00
Chenlei Hu
6deb994235
Add command to switch opened workflow tabs ( #1109 )
2024-10-04 20:33:16 -04:00
Chenlei Hu
b30d285025
Add toggle command for each sidebar tab registered ( #1108 )
...
* Add toggle command for each sidebar tab registered
* nit
2024-10-04 20:22:10 -04:00
Chenlei Hu
57a4cb9036
Add default toast error handling for command execution ( #1106 )
...
* Error handling execute command
* Cleanup
* Add playwright test
* Mock i18n in jest test
* Reduce test func timeout
2024-10-04 16:28:08 -04:00
Chenlei Hu
ebc71b0e46
Add PromptDialog to replace window.prompt ( #1104 )
...
* Save file prompt dialog
* Don't download if dialog dismissed
* refactor
* style dialog
* nit
* Autofocus
2024-10-04 15:33:27 -04:00
Chenlei Hu
1775d43d90
Support keybinding customization ( #1081 )
...
* Basic keybinding panel
nit
Make row selectable
Reduce padding
Better key seq render
Show actions on demand
Turn off autocomplete
nit
Persist keybindings
Autofocus
Fix set unsetted keybinding bug
Refactor
Add reset button
Add back default keybinding logic
Report key conflict error
Adjust style
fix bug
Highlight modified keybindings
* Set current editing command's id as dialog header
2024-10-03 16:58:56 -04:00
Chenlei Hu
142882a8ff
Move keybinds to coreKeybindings ( #1078 )
...
* Refactor core keybinds
* Prevent default
* Add playwright test
2024-10-03 11:25:53 -04:00
Chenlei Hu
77aaa38a92
[Extension API] Custom commands and keybindings ( #1075 )
...
* Add keybinding schema
* nit
* Keybinding store
* nit
* wip
* Bind condition on ComfyCommand
* Add settings
* nit
* Revamp keybinding store
* Add tests
* Add load keybinding
* load extension keybindings
* Load extension commands
* Handle keybindings
* test
* Keybinding playwright test
* Update README
* nit
* Remove log
* Remove system stats fromt logging.ts
2024-10-02 21:38:04 -04:00
Chenlei Hu
3a2b2f9e15
Add toggle link visibility button on canvas menu ( #1070 )
...
* Basic link visibility toggle
* Icon change
* nit
* Update litegraph
* nit
* Add playwright test
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-10-02 15:23:37 -04:00
pythongosssss
f75f774ddb
Graph canvas menu ( #1023 )
...
* add graph canvas menu
* Move to corner
* Remove action bar reset zoom button
* nit
* Add setting
---------
Co-authored-by: huchenlei <chenlei.hu@mail.utoronto.ca >
2024-09-30 16:06:43 -04:00
Chenlei Hu
3585cb69f5
Allow extension register custom topbar menu command ( #982 )
...
* Refactor command store
* Rename coreMenuStore to menuStore
* Extension API to register command
* Update README
* Add playwright test
2024-09-26 10:44:15 +09:00
Chenlei Hu
5ee0fd3519
Rework queue button ( #968 )
...
* Move queue button to right side
* Rework split button
* Group
* Remove unused code
* x2 buttons
* Use primevue divider
* adjust style
* Add tooltip
* Update test
* Add clearing pending tasks button to queue bar
* Fix state
* Dropdown list fix
2024-09-25 16:01:50 +09:00
Chenlei Hu
0d28c108d2
Add topbar dropdown menu ( #937 )
...
* Add basic menu
* Add workflows/edit to menu bar
* Add command store
* Fix z-index
* Fix beta menu setting switch
* nit
* Drop to center
* Fix command invocation
2024-09-25 16:01:50 +09:00