Skip to content

[bugfix] Fix 591 TypeScript errors from Hanzo Studio rebrand#3

Open
zeekay wants to merge 4 commits intomainfrom
feat/hanzo-rebranding
Open

[bugfix] Fix 591 TypeScript errors from Hanzo Studio rebrand#3
zeekay wants to merge 4 commits intomainfrom
feat/hanzo-rebranding

Conversation

@zeekay
Copy link

@zeekay zeekay commented Feb 9, 2026

Summary

  • Fix hyphenated identifiers (hanzo-studio_xhanzo_studio_x) across schemas/types/stores
  • Fix space-in-identifier errors (Hanzo StudioPresetHanzoStudioPreset) in 16+ files
  • Update ~90 broken import paths after file renames (@/types/comfy@/types/hanzo, etc.)
  • Restore ElectronAPI type definitions that were 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 (ComfyPageStudioPage)

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 typecheck passes with 0 errors (verified via pre-commit hook)
  • pnpm lint passes (verified via lint-staged)
  • pnpm test:unit - 173/176 pass (3 pre-existing failures from missing SVG assets)
  • pnpm build completes successfully

Fixes #2

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant