Commit Graph

2 Commits

  • refactor(ui): simplify AppSwitcher styles and migrate to local SVG icons
    - Replace complex gradient animations with clean, minimal tab design
    - Migrate from @lobehub/icons CDN to local SVG assets for better reliability
    - Fix clippy warning in error.rs (use inline format args)
    - Improve code formatting in skill service and commands
    - Reduce CSS complexity in AppSwitcher component (removed blur effects and gradients)
    - Update BrandIcons to use imported local SVG files instead of dynamic image loading
    
    This improves performance, reduces external dependencies, and provides a cleaner UI experience.
  • feat(skills): enhance error messages with i18n support
    - Add structured error format with error codes and context
    - Create skillErrorParser to format errors for user-friendly display
    - Add comprehensive i18n keys for all skill-related errors (zh/en)
    - Extend download timeout from 15s to 60s to reduce false positives
    - Fix: Pass correct error title based on operation context (load/install/uninstall)
    
    Error improvements:
    - SKILL_NOT_FOUND: Show skill directory name
    - DOWNLOAD_TIMEOUT: Display repo info and timeout duration with network suggestion
    - DOWNLOAD_FAILED: Show HTTP status code with specific suggestions (403/404/429)
    - SKILL_DIR_NOT_FOUND: Show full path with URL check suggestion
    - EMPTY_ARCHIVE: Suggest checking repository URL
    
    Users will now see detailed error messages instead of generic "Error".