mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[PR #839] [CLOSED] Centralize app state on store and comfy settings #1142
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#1142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/desktop/pull/839
Author: @christian-byrne
Created: 2/6/2025
Status: ❌ Closed
Base:
main← Head:cb-store📝 Commits (10+)
cc50c76Use electron store and comfy settings for app state57d75f6Fix unit testsb1ebaf8initialize settings on first access3bdc9d4Use store in install wizard and config manager9db9fb8make VirtualEnvironment use store5680557Remove injection of telemetry singleton565e317Fix telemetry test622442ause cloned defaultsba8f47ainline createComfyDirectories call5f8e273use async in settings, initialize explicitly on startup📊 Changes
18 files changed (+323 additions, -346 deletions)
View changed files
📝
src/config/comfySettings.ts(+20 -4)📝
src/desktopApp.ts(+7 -14)📝
src/install/installWizard.ts(+19 -31)📝
src/install/installationManager.ts(+13 -18)📝
src/main-process/comfyDesktopApp.ts(+13 -17)📝
src/main-process/comfyInstallation.ts(+13 -37)📝
src/main-process/comfyServer.ts(+11 -10)📝
src/main.ts(+8 -4)📝
src/models/DownloadManager.ts(+10 -10)📝
src/services/cmCli.ts(+3 -5)📝
src/services/telemetry.ts(+5 -7)📝
src/utils.ts(+3 -2)📝
src/virtualEnvironment.ts(+35 -53)📝
tests/unit/config/comfyConfigManager.test.ts(+23 -13)📝
tests/unit/config/comfySettings.test.ts(+45 -45)📝
tests/unit/desktopApp.test.ts(+10 -26)📝
tests/unit/install/installationManager.test.ts(+23 -27)📝
tests/unit/services/telemetry.test.ts(+62 -23)📄 Description
This PR centralizes application state management by:
General benefits of centralizing app state:
┆Issue is synchronized with this Notion page by Unito
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.