[bugfix] Fix 591 TypeScript errors from Hanzo Studio rebrand#3
Open
[bugfix] Fix 591 TypeScript errors from Hanzo Studio rebrand#3
Conversation
Normalize "Hanzo Studio" to "HanzoStudio" (PascalCase, no space) in variable names, class names, function names, comments, and user-facing strings across 6 files. Continuation of the rebrand started in main.
The ComfyUI → Hanzo Studio rename broke identifiers, imports, and types: - Fix hyphenated identifiers (hanzo-studio_x → hanzo_studio_x) across schemas/types/stores - Fix space-in-identifier errors (Hanzo StudioPreset → HanzoStudioPreset) in 16+ files - Update ~90 broken import paths after file renames (@/types/comfy → @/types/hanzo, etc.) - Restore ElectronAPI type definitions stripped to bare index signature - Fix display strings that were overcorrected (restore 'Hanzo Studio' with space for UI labels) - Update host whitelist regex for studio.hanzo.ai domain - Fix registry-types package.json exports path - Fix browser test fixture import (ComfyPage → StudioPage) - Adjust test expectations for new truncation limits Fixes #2
- LLM.md is now the canonical AI context file (tracked in git) - CLAUDE.md is a local symlink to LLM.md (gitignored)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hanzo-studio_x→hanzo_studio_x) across schemas/types/storesHanzo StudioPreset→HanzoStudioPreset) in 16+ files@/types/comfy→@/types/hanzo, etc.)ElectronAPItype definitions that were stripped to bare index signature'Hanzo Studio'with space for UI labels)studio.hanzo.aidomainregistry-typespackage.json exports pathComfyPage→StudioPage)Context
The ComfyUI → Hanzo Studio rename used a naive find-and-replace that broke JavaScript identifiers (inserting hyphens/spaces), broke import paths after file renames, and stripped typed ElectronAPI interfaces. This PR fixes all 591 TypeScript errors down to 0.
Test plan
pnpm typecheckpasses with 0 errors (verified via pre-commit hook)pnpm lintpasses (verified via lint-staged)pnpm test:unit- 173/176 pass (3 pre-existing failures from missing SVG assets)pnpm buildcompletes successfullyFixes #2