Alexander Brown
dbb0bd961f
Chore: TypeScript cleanup - remove 254 @ts-expect-error suppressions ( #7884 )
...
## Summary
Removes **254** `@ts-expect-error` suppressions through proper type
fixes rather than type assertions.
## Key Changes
### Type System Improvements
- Add `globalDefs` and `groupNodes` types to `ComfyAppWindowExtension`
- Extract interfaces for group node handling (`GroupNodeHandler`,
`InnerNodeOutput`, etc.)
- Add `getHandler()` helper to consolidate GROUP symbol access pattern
### Files Fixed
- **pnginfo.ts**: 39 suppressions removed via proper typing of
workflow/prompt data
- **app.ts**: 39 suppressions removed via interface extraction and type
narrowing
- **Tier 1 files**: 17 suppressions removed (maskeditor, imageDrawer,
groupNode, etc.)
- **groupNode.ts**: Major refactoring with proper interface organization
## Approach
Following established constraints:
- No `any` types
- No `as unknown as T` casts (except legacy API boundaries)
- Priority: Fix actual types > Type narrowing > Targeted suppressions as
last resort
- Prefix unused callback parameters with underscore
- Extract repeated inline types into named interfaces
## Validation
- ✅ `pnpm typecheck` passes
- ✅ `pnpm lint` passes
- ✅ `pnpm knip` passes
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7884-Chore-TypeScript-cleanup-remove-254-ts-expect-error-suppressions-2e26d73d3650812e9b48da203ce1d296 )
by [Unito](https://www.unito.io )
---------
Co-authored-by: Amp <amp@ampcode.com >
2026-01-10 21:17:31 -08:00
Alexander Brown
31e405abc8
Feat: Loading state while loading dropped workflows ( #6464 )
...
## Summary
Indicate to the user that we're hard at work parsing their JSON behind
the scenes.
## Changes
- **What**: Turn on the loading spinner while processing a workflow
- **What else**: Refactored the code around figuring out how to grab the
data from the file to make this easier
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6464-WIP-Loading-state-for-dropped-workflows-29c6d73d3650812dba66f2a7d27a777c )
by [Unito](https://www.unito.io )
---------
Co-authored-by: GitHub Action <action@github.com >
2025-11-01 22:50:29 -07:00
Benjamin Lu
fef02e5f56
[refactor] Migrate litegraph imports from npm package to local subtree
...
- Updated all imports from '@comfyorg/litegraph' to '@/lib/litegraph/src/'
- Replaced deep dist imports with direct source paths
- Updated CSS import in main.ts
- All imports now use the @ alias consistently
2025-08-03 22:06:29 -04:00
Ferrah Aiko
37bfc53616
Add the ability to parse workflows from AVIF images ( #4420 )
2025-07-23 23:20:39 -07:00
Chenlei Hu
a049e9ae2d
[TS] Enable strict mode ( #3136 )
2025-03-18 22:57:17 -04:00
Chenlei Hu
7af003fcab
[TS] Enable noUnusedParameters ( #3110 )
2025-03-17 16:47:45 -04:00
Chenlei Hu
7e66e99c3a
[TS] Enable noUnusedLocals ( #3108 )
2025-03-17 16:20:56 -04:00
Chenlei Hu
87c21b45d7
[nit] format fix ( #2913 )
2025-03-07 13:21:54 -05:00
nmvjhd
8718e20693
Use Built-in VAE for Workflow Generation from Images ( #2910 )
...
Co-authored-by: matengfei <matengfei@qiyi.com >
2025-03-07 09:43:31 -05:00
Chenlei Hu
d8f074fea0
[Lint] Sort imports ( #2104 )
2024-12-30 17:26:37 -05:00
Chenlei Hu
4e554503c0
[Refactor] Convert workflowService to composable ( #2057 )
2024-12-26 00:11:27 -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
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
06a05cb283
Fix loading large workflow embedded in webp ( #777 )
...
* Fix loading large workflow embedded in webp
* Update test expectations [skip ci]
* nit
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-09-11 10:12:01 +09:00
Chenlei Hu
023299cf1a
Fix loading workflow from of edited webp ( #764 )
...
* Fix loading workflow from of edited webp
* Update test expectations [skip ci]
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-09-09 16:07:15 +09:00
Chenlei Hu
e179f75387
Apply new code format standard ( #217 )
2024-07-25 10:10:18 -04:00
Chenlei Hu
cb9042f9f9
Sync #4061 ( #172 )
2024-07-19 19:08:42 -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
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
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
3238acd9c9
Sync flac metadata ( #66 )
2024-06-29 09:39:01 -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
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