Skip to content

Conversation

@snomiao
Copy link
Member

@snomiao snomiao commented Jul 31, 2025

Summary

• Add ThemeProvider with system preference detection and localStorage persistence
• Create ThemeSwitcher component with sun/moon/desktop icons for auto/light/dark modes
• Update header styling to support dynamic theme switching
• Configure Tailwind CSS for class-based dark mode support
• Refactor existing theme configurations to use centralized themeConfig
• Update global styles for proper theme transitions across the application

Test plan

  • Verify theme switcher appears in header next to language switcher
  • Test all three theme modes (Auto, Light, Dark) work correctly
  • Verify system theme detection works when Auto mode is selected
  • Check theme preference persists across browser sessions
  • Ensure all UI components render properly in both light and dark modes
  • Test responsive behavior of theme switcher on mobile devices

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Jul 31, 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:34am

snomiao and others added 2 commits September 4, 2025 04:17
- Add ThemeProvider with system preference detection
- Create ThemeSwitcher component with sun/moon icons
- Update header styling to support theme switching
- Configure Tailwind CSS for dark mode support
- Refactor theme configurations for reusability
- Update global styles for proper theme transitions

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

Co-Authored-By: Claude <[email protected]>
snomiao and others added 3 commits October 15, 2025 20:26
This commit includes all changes for the light/dark mode feature:
- Updated theme configuration and switcher component
- Modified header components to support theme switching
- Updated all admin pages and node detail pages with theme support
- Added unified breadcrumb component
- Removed obsolete storybook stories
- Fixed Chinese translation for "Light" mode (轻量级 -> 浅色)
- Fixed linting errors in preempted-comfy-node-names and node-version-compatibility

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

Co-Authored-By: Claude <[email protected]>
Resolved conflicts by:
- Keeping light/dark mode implementation from sno-light-mode branch
- Accepting updated translations from main branch (includes new "Contribute" keys)
- Removed obsolete RegistryStory.tsx file
- Fixed linting errors in admin pages

The merge brings in translation improvements and new features from main
while preserving all light/dark mode theme switching functionality.

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

Co-Authored-By: Claude <[email protected]>
- Remove problematic CustomThemeBreadcrumb theme prop from UnifiedBreadcrumb
- Add named export for UnifiedBreadcrumb component
- Fix onClick event handler type to accept React.MouseEvent
- Update all admin pages to remove invalid router parameter from breadcrumb helper functions
- Fix useSearchParameter calls to return string instead of undefined
- Fix CreatePublisherModal prop name from openModal to open

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

Co-Authored-By: Claude <[email protected]>
snomiao and others added 2 commits October 25, 2025 13:00
Includes changes from:
- #222: Restructure Storybook for better organization
- #226: Add GitHub Actions workflow to update PR branches

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

Co-Authored-By: Claude <[email protected]>
- Resolved formatting conflicts in .storybook/main.ts and preview.tsx
- Combined theme globalTypes (Dark/Light/System) with locale globalTypes
- Merged locale files: kept theme translations (Auto, Dark, Light) and added "All Nodes" from main
- Resolved whitespace conflicts in README.md and docs/update-pr-branches.md
- Confirmed deletion of NodeList.stories.tsx and Registry.stories.tsx

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

Co-Authored-By: Claude <[email protected]>
snomiao and others added 2 commits October 26, 2025 07:59
Resolved merge conflicts while preserving light mode functionality:

## Key Resolutions:
- **Theme Configuration**: Preserved themeConfig.tsx with comprehensive light/dark mode support
- **Component Styling**: Maintained dynamic theming classes throughout all components
- **Tailwind Config**: Kept darkMode: 'class' configuration for proper theme switching
- **Global Styles**: Preserved light/dark mode body styles
- **Theme Provider**: Maintained ThemeProvider wrapper in _app.tsx
- **Storybook**: Kept enhanced theme configuration and removed obsolete story files
- **Locale Files**: Preserved light mode branch translations including theme-related keys
- **Pages**: Maintained consistent theming across all admin and node pages

## Changes from Main:
- Added new Storybook stories and publisher form components from main
- Updated .prettierrc configuration
- Integrated latest translations while preserving light mode specific keys

The merge maintains full light/dark mode functionality while incorporating
the latest changes from main branch.

🤖 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