Skip to content

Conversation

@snomiao
Copy link
Member

@snomiao snomiao commented Jul 21, 2025

Summary

  • Add new page at /nodes/[nodeId]/i18n for editing node translations
  • Implement comprehensive translation interface with language selection
  • Support for custom translation fields beyond default node metadata
  • Include authentication protection and error handling
  • Add Storybook stories and comprehensive documentation

Test plan

  • Test translation editor with existing translations
  • Test adding new custom fields for translation
  • Test language switching functionality
  • Test save functionality and error handling
  • Verify authentication protection works
  • Test Storybook stories render correctly

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 21, 2025 17:03
@vercel
Copy link

vercel bot commented Jul 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
registry-web Ready Ready Preview Comment Oct 26, 2025 8:25am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces a comprehensive node translation editor feature that enables authenticated users to manage translations for ComfyUI custom nodes. The implementation provides a user-friendly interface for translating node metadata into multiple supported languages with dynamic field management capabilities.

  • Adds new translation editor page at /nodes/[nodeId]/i18n with authentication protection
  • Implements comprehensive Storybook stories covering various states (loading, errors, existing translations)
  • Provides detailed documentation explaining the feature's functionality and technical implementation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
pages/nodes/[nodeId]/i18n.tsx Main translation editor component with language selection, field management, and save functionality
src/stories/pages/NodeTranslationEditor.stories.tsx Comprehensive Storybook stories demonstrating different editor states and scenarios
docs/node-translation-editor.md Complete feature documentation covering usage, technical implementation, and API integration

snomiao and others added 7 commits October 2, 2025 10:02
- Add /nodes/[nodeId]/i18n page for editing node translations
- Implement translation interface with language selection and field editing
- Support for adding custom translation fields beyond default ones
- Include comprehensive error handling and success feedback
- Add Storybook stories with various scenarios and mock data
- Document feature implementation and usage in docs/

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add /nodes/[nodeId]/i18n page for editing node translations
- Implement translation interface with language selection and field editing
- Support for adding custom translation fields beyond default ones
- Include comprehensive error handling and success feedback
- Add Storybook stories with various scenarios and mock data
- Document feature implementation and usage in docs/

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
snomiao and others added 3 commits October 17, 2025 00:13
Added translation management functionality for custom nodes:
- New translation editor pages at /nodes/[nodeId]/i18n and /nodes/[nodeId]/translations
- Edit translations button in NodeDetails component
- Support for multi-language node metadata editing
- Language selection with native and localized names
- Field-based translation editing with add/remove capabilities

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Updated NodeTranslationEditor stories to include permission endpoint mocks,
ensuring stories render correctly with edit permissions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Extract DEFAULT_FIELDS constant to reduce duplication
- Extract SUCCESS_MESSAGE_TIMEOUT_MS constant for hardcoded timeout
- Replace type assertions with String() conversion for better type safety
- Apply Biome formatter fixes to multiple files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add explicit return types for getCurrentTranslations function
- Extract DEFAULT_FIELDS and SUCCESS_MESSAGE_TIMEOUT_MS constants
- Create getFieldValue helper to properly handle string|string[] types
- Remove unsafe type assertions and use type-safe value extraction
- Address Copilot review comments for better type safety
- Merge with latest main branch and resolve conflicts
- Move Storybook files to new component-colocated structure
- Update translation files with new keys for all supported languages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
snomiao and others added 2 commits October 26, 2025 08:01
Resolved conflicts in:
- README.md: updated workflow documentation formatting
- components/nodes/NodeDetails.tsx: removed translation edit functionality
- components/publisher/CreatePublisherModal.tsx: updated to use CreatePublisherFormContent
- docs/update-pr-branches.md: fixed formatting inconsistencies
- pages/publishers/create.tsx: updated to use CreatePublisherFormContent
- src/constants.ts: kept LANGUAGE_NAMES as exported constant
- utils/comfyTheme.tsx: maintained consistent modal theming

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

2 participants