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

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 16, 2025 11:56pm

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]>
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